home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
mag&info
/
msjv7_5.zip
/
WINCPP.ARJ
/
CPP3.ARJ
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1992-09-01
|
1KB
|
85 lines
##### Module Macros ####
NAME = generic
SRCS = $(NAME).cpp WinApp.cpp
OBJS =
##### C7 Macro #####
C7 = 1
##### Library Macros #####
LIBS = libw slibcew
MOD = -AS
##### Include Macro #####
INCLS = $(NAME).h WinApp.h
##### Resource Macro #####
RCFILES = $(NAME).rc
##### DEBUG Macro Defined #####
DEBUG = 0
##### Build Option Macros #####
!if $(DEBUG)
DDEF = -DDEBUG
CLOPT = -Zid -Od
MOPT = -Zi
LOPT = /CO /LI /MAP
!else
DDEF =
CLOPT = -Os
LOPT =
!endif
##### General Macros #####
DEF =
##### Tool Macros #####
ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
CC = cl -nologo -c -G2sw -Zp -W4 $(MOD) $(CLOPT) $(DDEF) $(DEF)
LINK = link /NOI /NOD $(LOPT)
RC = rc $(DDEF) $(DEF)
HC = hc
##### Inference Rules #####
.cpp.obj:
$(CC) $*.cpp
.asm.obj:
$(ASM) $*.asm
.rc.res:
$(RC) -r $*.rc
##### Main (default) Target #####
goal: $(NAME).exe
##### Dependents For Goal and Command Line #####
$(NAME).exe: $(SRCS:.cpp=.obj) $(NAME).def $(NAME).res
$(LINK) @<<
$(SRCS:.cpp=.obj) $(OBJS),
$(NAME).exe,
$(NAME).map,
$(LIBS),
$(NAME).def
<<
$(RC) -T $(NAME).res
!if $(DEBUG)
!if !$(C7)
cvpack -p $(NAME).exe
!endif
mapsym $(NAME).map
!endif
##### Dependents #####
$(SRCS:.cpp=.obj): $(INCLS)
$(NAME).res: $(RCFILES)
##### Clean Directory #####
clean:
-del *.obj
-del *.res
-del *.exe
-del *.map
-del *.sym