home *** CD-ROM | disk | FTP | other *** search
- #======================================================================
- #
- # Makefile for Microsoft C/C++ 7.0 WINDOS app using NMK
- #
- # from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
- #
- # Copyright (c) David Maxey 1992
- # Modified for Microsoft C/C++ 7.0
- # ARGCARGV hack to get around QuickWin library main!
- #
- # Definitions on NMK command line, or in environment variables
- # when NMK is invoked with /E:
- #
- # APP = application filename without extension - REQUIRED
- # MODEL = model (Should be capital S or M)
- # DEPEND = Additional link time dependencies
- # EXTRAOBJS = Additional object files
- # RES = Override default WINDOS.RES file
- # DEF = Override default WINDOS.DEF file
- #
- # Notes:
- # If you want to use a custom .RES file, it should contain an icon
- # resource named WINIO_ICON in order for the app to have a class icon.
- #
- #======================================================================
-
- all: $(APP).exe
-
- # Macros
-
- !IFNDEF MODEL
- MODEL = S
- !ENDIF
- !IFNDEF RES
- RES = windos.res
- !ENDIF
- !IFNDEF DEF
- DEF = windos.def
- !ENDIF
- LIBS = $(MODEL)windos $(MODEL)libcew libw
-
- # Rules/commands
-
- $(APP).obj: $(APP).c winio.h wmhandlr.h
- cl -G2sw -Oais -Zpe -Zi -W3 -A$(MODEL) -c $(APP).c
-
- .c.obj:
- cl -G2sw -Oais -Zpe -Zi -W3 -A$(MODEL) -c $<
-
- $(APP).exe: $(APP).obj argcargv.obj $(DEPEND)
- link /CO /nod/noe/align:16 $(APP) $(EXTRAOBJS),$(APP),nul, $(LIBS), $(DEF)
- rc -t $(RES) $(APP).exe
-
-
-
-