home *** CD-ROM | disk | FTP | other *** search
- #======================================================================
- #
- # Makefile for Borland C++ 3.0 WINDOS app using MAKE
- #
- # from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
- #
- # Copyright (c) David Maxey 1992
- #
- # Definitions on MAKE command line:
- #
- # APP = application filename without extension - REQUIRED
- # MODEL = model (Should be lowercase 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.
- #
- #======================================================================
-
- .AUTODEPEND
-
- # Macros
-
- !IF !$d(MODEL)
- MODEL = s
- !ENDIF
- !IFNDEF RES
- RES = windos.res
- !ENDIF
- !IFNDEF DEF
- DEF = windos.def
- !ENDIF
-
- # Rules/commands
-
- .c.obj:
- bcc -2 -K -d -O -v -WS -m$(MODEL) -I$(INCLUDE) -c -P-.C $*
-
- .asm.obj:
- tasm -zi $<;
-
- $(APP).exe: $(APP).obj $(DEPEND)
- tlink /v /Twe /L$(LIB) @&&!
- c0w$(MODEL)+$* $(EXTRAOBJS)
- $*
- $*
- $(MODEL)windos.lib+cw$(MODEL).lib+import.lib+math$(MODEL).lib
- $(DEF)
- !
- rc -t $(RES) $&.exe
-
-
- $(APP).obj: $(APP).c winio.h wmhandlr.h
- bcc -2 -K -d -O -v -WS -w-par -m$(MODEL) -I$(INCLUDE) -c -P-.C $*
-
-
-