home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
muglog.zip
/
NMAKE386.INC
< prev
Wrap
Text File
|
1994-10-03
|
3KB
|
97 lines
# ╔═══════════════════════════════════════════════════════════════════════╗
# ║ NMAKE Common Definitions ║
# ╚═══════════════════════════════════════════════════════════════════════╝
# ┌───────────────────────────────────────────────────────────────────────┐
# │ Pseudo targets │
# └───────────────────────────────────────────────────────────────────────┘
.SUFFIXES:
.SUFFIXES: .rc .res .obj .c .hlp .ipf .lib .def .l .mak .msg .txt .cpp .rex .cmd
# ┌───────────────────────────────────────────────────────────────────────┐
# │ Default compilation macros │
# └───────────────────────────────────────────────────────────────────────┘
CC = ICC
CCFLAGS = /Gm+ /G4 /Kb+ /Q+ /Tl90 /Weff-
LFLAGS = /BATCH
LINK = link386
LIBS = os2386.lib
# Add the additional debugging parameters, if requested.
!if "$(DEBUG)" == "Y"
LFLAGS = $(LFLAGS) /DEBUG
CCFLAGS = $(CCFLAGS) /Ti+ /Gh+ /Tm
!else
CCFLAGS = $(CCFLAGS) /O+
!endif
# Add the flag for DLL construction
!if "$(DLL)" == "Y"
CCFLAGS = $(CCFLAGS) /Ge-
!endif
# Add the flags for 32 to 16 bit thunking for use with the OS/2 16-bit DBMgr
!if "$(DBM)" == "Y"
CCFLAGS = $(CCFLAGS) /Sm /DES32TO16
!endif
# Change the compile/link options for TCPIP use
!if "$(TCP)" == "Y"
CCFLAGS = $(CCFLAGS) /Sp2 /Ss+
LFLAGS = $(LFLAGS) /NOI
LIBS = $(LIBS) TCP32DLL.LIB SO32DLL.LIB
!endif
# Add REXX to the library list if requested
!if "$(REXX)" == "Y"
LIBS = $(LIBS) rexx.lib
!endif
# ┌───────────────────────────────────────────────────────────────────────┐
# │ Default Implicit macros │
# └───────────────────────────────────────────────────────────────────────┘
.txt.msg:
mkmsgf $*.txt $*.msg >> $(SOURCEPATH)\$(BASE).tmp
.cpp.obj:
$(CC) /C $(CCFLAGS) -Fo$*.obj $*.cpp >> $(SOURCEPATH)\$(BASE).tmp
.c.obj:
$(CC) /C $(CCFLAGS) -Fo$*.obj $*.c >> $(SOURCEPATH)\$(BASE).tmp
.ipf.hlp:
ipfcprep $*.ipf $*._pf >> $(SOURCEPATH)\$(BASE).tmp
ipfc $(SOURCEPATH)\$*.ipf >> $(SOURCEPATH)\$(BASE).tmp
.ipf.inf:
ipfcprep $*.ipf $*._pf >> $(SOURCEPATH)\$(BASE).tmp
ipfc /INF $(SOURCEPATH)\$*._pf >> $(SOURCEPATH)\$(BASE).tmp
.rc.res:
rc -r $*.rc >> $(SOURCEPATH)\$(BASE).tmp
.def.lib:
implib $*.lib $*.def >> $(SOURCEPATH)\$(BASE).tmp
.res.exe:
rc $*.res >> $(SOURCEPATH)\$(BASE).tmp
.res.dll:
rc $*.res $*.dll >> $(SOURCEPATH)\$(BASE).tmp
.rex.cmd:
preproc $*.rex $*.cmd
# ┌───────────────────────────────────────────────────────────────────────┐
# │ Default Pseudo targets │
# └───────────────────────────────────────────────────────────────────────┘