Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
81ad011a
Commit
81ad011a
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added support for Microsoft C++ command-line compilers.
parent
f748060b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/Makefile
+42
-18
42 additions, 18 deletions
src/xpdev/Makefile
with
42 additions
and
18 deletions
src/xpdev/Makefile
+
42
−
18
View file @
81ad011a
...
...
@@ -2,52 +2,76 @@
#########################################################################
# Makefile for cross-platform development "wrappers" test #
# For use with Borland
C++ Builder 5+ or Borland C++ 5.5
for Win32
#
# For use with Borland
or Microsoft C++ Compilers
for Win32
#
# @format.tab-size 4 #
# #
# usage: make
#
# usage: make
[msc=1]
#
#########################################################################
# $Id$
# Macros
DEBUG
=
1
# Comment out for release
(
non-debug
)
version
CC
=
bcc32
LD
=
ilink32
SLASH
=
\
\
# OS-specific
SLASH
=
\
# This comment is necessary
OFILE
=
obj
LIBFILE
=
.dll
EXEFILE
=
.exe
ODIR
=
bcc.win32
# Output directory
CFLAGS
=
-M
LFLAGS
=
-m
-s
-c
-Tpd
-Gi
-I
$(
LIBODIR
)
DELETE
=
echo
y | del
# Optional compile flags (disable banner, warnings and such)
CFLAGS
=
$(
CFLAGS
)
-q
-d
-H
-X-
-w-csu
-w-pch
-w-ccc
-w-rch
-w-par
# Compiler-specific
!
ifdef
msc
# Microsoft Visual C++
CC
=
cl
LD
=
link
ODIR
=
msvc.win32
OUTPUT
=
-Fo
LOUTPUT
=
-Fe
CFLAGS
=
-nologo
-MTd
LFLAGS
=
$(
CFLAGS
)
!
ifdef
DEBUG
CFLAGS
=
$(
CFLAGS
)
-Yd
!
endif
!
else
# Borland C++
CC
=
bcc32
LD
=
ilink32
ODIR
=
bcc.win32
# Output directory
OUTPUT
=
-o
LOUTPUT
=
$(
OUTPUT
)
CFLAGS
=
-n
$(
ODIR
)
-WM
-q
LFLAGS
=
$(
CFLAGS
)
CLFAGS
=
$(
CFLAGS
)
-M
-WD
-WM
-X-
!
ifdef
DEBUG
CFLAGS
=
$(
CFLAGS
)
-v
!
endif
!
endif
# Common compiler flags
!
ifdef
DEBUG
CFLAGS
=
$(
CFLAGS
)
-Od
-D_DEBUG
!
endif
# Debug or release build?
!
ifdef
DEBUG
CFLAGS
=
$(
CFLAGS
)
-v
-Od
-D_DEBUG
LFLAGS
=
$(
LFLAGS
)
-v
ODIR
=
$(
ODIR
)
.debug
!
else
CFLAGS
=
$(
CFLAGS
)
-g1
ODIR
=
$(
ODIR
)
.release
!
endif
!
include
objects.mk
# defines $(OBJS)
all
:
$(ODIR) $(ODIR)/wraptest.exe
!
include
targets.mk
# Implicit C Compile Rule
{.}.c.$(OFILE)
:
@$(
CC
)
$(
CFLAGS
)
-
WD
-WM
-n
$(
ODIR
)
-c
$<
@$(
CC
)
$(
CFLAGS
)
-
c
$<
$(
OUTPUT
)
$@
# Create output directories if they don't exist
$(ODIR)
:
@
if
not exist
$(
ODIR
)
mkdir
$(
ODIR
)
# Executable Build Rule
$(ODIR)/wraptest.exe
:
$(ODIR)
\w
raptest.obj $(OBJS)
@$(
CC
)
$(
CFLAGS
)
-WM
-n
$(
ODIR
)
$*
*
$(WRAPTEST)
:
$(ODIR)
\w
raptest.obj $(OBJS)
@
echo
Linking
$@
@$(
CC
)
$(
LFLAGS
)
$*
*
$(
LOUTPUT
)
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment