home *** CD-ROM | disk | FTP | other *** search
- ## Smltpl - Windows small memory model template.
- # Written by Michael Babcock and Bill Hall, Olivetti ATC.
-
- ## some macros
- # no debug compile
- cp=cl -d -c -AS -Gw -Ox -Zp
-
- # debug compile
- cpd=cl -d -c -AS -Gw -Zpd
-
- # Microsoft C 5.x compiler with OS2 libraries
- LIBOS2=slibw slibc slibc3 libh/NOD/NOE
-
- # Microsoft C 5.x compiler with PM libraries
- LIBPM=slibw slibcr libh/NOD/NOE
-
- # Microsoft C 5.0 compiler for MS-DOS
- LIB5=slibw slibc libh/NOD/NOE
-
- # Microsoft C 4.0 compiler for MS-DOS
- LIB4=slibw slibc libh/NOD
-
- ## make the .RES file
- smltpl.res : smltpl.rc smltpl.h
- rc -r smltpl.rc
-
- ## make the .OBJ files
- smltpl.obj : smltpl.c smltpl.h
- $(cp) -NT _TEXT smltpl.c
-
- smltplnt.obj : smltplnt.c smltpl.h
- $(cp) -NT _INIT smltplnt.c
-
- ## create the .EXE file, add resources, and make a map file
- smltpl.exe : smltpl smltpl.def smltpl.res smltpl.obj smltplnt.obj
- link4 smltpl smltplnt,smltpl/align:16,smltpl/m/li,$(LIBOS2),smltpl
- rc smltpl.res
- mapsym smltpl