home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
ikony
/
animart
/
makefile.
< prev
next >
Wrap
Makefile
|
1995-12-09
|
2KB
|
94 lines
##### Module Macro #####
NAME = animator
SRCS = main.c frame.c about.c child.c timer.c fileio.c \
statbar.c externs.c settings.c showtask.c
OBJS =
MODEL = M
##### C7/Display Compatibility Test #####
C7 = 1
##### Library Macro #####
!if $(C7)
LIBS = libw $(MODEL)libcew commdlg oldnames toolhelp shell
!else
LIBS = libw $(MODEL)libcew commdlg toolhelp shell
!endif
MOD = -A$(MODEL)
##### Include Macro #####
INCLS = $(NAME).h rc.h
##### Resource Macro #####
RCFILES = animator.ico child.ico
##### DEBUG 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 $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
LINK = link /NOD /NOE $(LOPT)
RC = rc $(DDEF) $(DEF)
HC = hc
##### Inference Rules #####
.c.obj:
$(CC) -NT _$* $*.c
.asm.obj:
$(ASM) $*.asm;
.rc.res:
$(RC) -r $*.rc
##### Main (default) Target #####
goal: $(NAME).exe
##### Dependents For Goal and Command Line #####
#main.obj: main.c $(INCLS)
# $(CC) -NT _TEXT $*.c
##### Dependents For Goal and Command Line #####
$(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
$(LINK) @<<
$(SRCS:.c=.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:.c=.obj): $(INCLS)
$(NAME).res: $(RCFILES) $(INCLS)
##### Clean Directory #####
clean:
-del *.obj
-del *.res
-del *.exe
-del *.map
-del *.sym