home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tcp30tkt.zip
/
PGMG1.ZIP
/
SAMPLES
/
SAMPDLL
/
MYPROG.MAK
< prev
next >
Wrap
Text File
|
1995-12-04
|
1KB
|
49 lines
# Compiler options:
#
# /Ti : Generate debugger information
# /Sm : Allow migration extensions
# /Ss : Allow '//' for comments
# /Q : Do not display logo
# /Kb : Produce basic diagnostic message
# /W2 : Produce severe errors, errors and warnings
# /Gm : Link with the multithread version of library
# /Gt : Enavle all variables to be passed to 16-bit function.
# Static & external variables are mapped into 16-bit segment.
# Variables larger then 64k will be alligned on, but will still
# cross, 64k boundary.
# /C : Compile only
#
#
# Linker options:
#
# /De : Prepare for Debugging
# /NOI : Preserve the case sensitivity
#
# To clean up the directory and go back to just the original files
# issue: nmake -f myprog.mak clean
# Define the Compiler program to use
CC =icc
# Define the Linker program to use
# link386 is replaced by ilink for VisualAge C++ compiler. Check for
# VACPP_SHARED environment variable to see which linker to use.
!if defined(VACPP_SHARED)
LINK =ilink /NOFREEFORMAT /NOLOGO
!else
LINK =link386
!endif
ALL : myprog.exe
myprog.obj : myprog.c
$(CC) /Ti /DOS2 /Sm /Ss /Q /W2 /Gm /Gt /C myprog.c
myprog.exe: myprog.obj
$(LINK) /De myprog,myprog.exe,NUL,os2386 sampdll.lib ,myprog.def;
# Clean rule to clean up all of the extra generated files and
clean:
-del myprog.obj
-del *.exe