Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
81ad011a
Commit
81ad011a
authored
Apr 06, 2002
by
rswindell
Browse files
Added support for Microsoft C++ command-line compilers.
parent
f748060b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
18 deletions
+42
-18
src/xpdev/Makefile
src/xpdev/Makefile
+42
-18
No files found.
src/xpdev/Makefile
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)$@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment