home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tcp30tkt.zip
/
PGMG1.ZIP
/
SAMPLES
/
SAMPDLL
/
SAMPDLL.MAK
< prev
Wrap
Text File
|
1995-12-04
|
2KB
|
60 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 sampdll.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
!else
LINK =link386
!endif
ALL : sampdll.dll sampdll.lib
sampdll.OBJ: sampdll.C
$(CC).EXE /Ti /DOS2 /Sm /Ss /Q /W2 /Gm /Ge- /Gt /Gd- /C sampdll.c
sampdll.dll: sampdll.obj
if exist sampdll.dll erase sampdll.dll
$(LINK) @sampdll.lrf
sampdll.lib: sampdll.def
if exist sampdll.lib erase sampdll.lib
implib /NOI sampdll.lib sampdll.def
# Clean rule to clean up all of the extra generated files and
clean:
-del *.map
-del sampdll.obj
-del *.lib
-del *.dll