home *** CD-ROM | disk | FTP | other *** search
- # these are compile flags
- # -c means compile without linking
- # -AS means compile for small model
- # -Zp1 means pack structure members on specified byte boundary
- # -Ox means maximized optimization
- # -W2 means set output level for compiler warning messages
- CFLAGS= -c -AS -Zp1 -Ox -W2
-
- # these are link flags
- # /NOD means ignore default libraries
- # /NOE means prevent linker from searching extended dictionary
- LFLAGS= /NOD /NOE
-
- # slibce is the small Microsoft library with math emulation
- LIBS= slibce
-
- # makefile name
- MKFL= crdprt
-
- # path to Microsoft C libraries (drive: & directory path)
- LIBPATH=c:\msc\lib
-
- # compile step
- $(MKFL).obj: $(MKFL).c $(MKFL)
- cl $(CFLAGS) $(MKFL).c
-
- # link step
- $(MKFL).exe: $(MKFL).obj
- link $(LFLAGS) $(MKFL) $(LIBPATH)\setargv,,,$(LIBS)
-
-