home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
DMAKE35X.ZIP
/
CONFIG.MK
< prev
next >
Wrap
Makefile
|
1990-08-15
|
1KB
|
57 lines
# This is an OS specific configuration file
# It assumes that OBJDIR, TARGET and DEBUG are previously defined.
# It defines CFLAGS, LDARGS, CPPFLAGS, STARTUPFILE, LDOBJS
# It augments SRC, OBJDIR, TARGET, CFLAGS, LDLIBS
#
STARTUPFILE = $(OS)/startup.mk
CPPFLAGS = $(CFLAGS)
LDOBJS = $(CSTARTUP) $(OBJECTS)
LDARGS = @<+$(LDOBJS:s,/,\\,:t"+\n")\n+>,$(TARGET),NUL.MAP,@<+$(LDLIBS:s,/,\\,:t"+\n")\n+>$(LDFLAGS)
# Debug flags
DB_CFLAGS = -DDBUG -v
DB_LDFLAGS = /v
DB_LDLIBS =
# NO Debug flags
NDB_CFLAGS =
NDB_LDFLAGS =
NDB_LDLIBS =
# Local configuration modifications for CFLAGS.
CFLAGS += -I$(OS)
# Common MSDOS source files.
SRC += ruletab.c dirbrk.c runargv.c arlib.c _chdir.c switchar.c rmprq.c
# Set source dirs so that we can find files named in this
# config file.
.SOURCE.c : $(OS)
.SOURCE.h : $(OS)
# See if we modify anything in the lower levels.
.IF $(OSRELEASE) != $(NULL)
.INCLUDE .IGNORE : $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)config.mk
.END
# Set the proper macros based on whether we are making the debugging version
# or not.
.IF $(DEBUG)
CFLAGS += $(DB_CFLAGS)
LDFLAGS += $(DB_LDFLAGS)
LDLIBS += $(DB_LDLIBS)
SILENT := $(.SILENT)
.SILENT := yes
TARGET := db$(TARGET)
OBJDIR := $(OBJDIR).dbg
.SILENT := $(SILENT)
SRC += dbug.c malloc.c
HDR += db.h
.ELSE
CFLAGS += $(NDB_CFLAGS)
LDFLAGS += $(NDB_LDFLAGS)
LDLIBS += $(NDB_LDLIBS)
.END