home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
graphics
/
audio
/
mcipuzzl
/
makefile
next >
Wrap
Makefile
|
1995-11-16
|
1KB
|
54 lines
# Nmake macros for building Windows 32-Bit apps
!include <win32.mak>
!if "$(CPU)" == "i386" # .syms are useful for Win95
SYM = mcipuzzl.sym
!endif
all: mcipuzzl.exe $(SYM)
OBJS= mcipuzzl.obj puzzproc.obj puzzle.obj
OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I. -I..\include
OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I. -I..\include
# Update the resource if necessary
mcipuzzl.res: mcipuzzl.rc mcipuzzl.h mcipuzzl.rcv mcipuzzl.ico
$(rc) -r -DWIN32 $(OTHERRCOPTS) mcipuzzl.rc
# Update the object file if necessary
mcipuzzl.obj: mcipuzzl.c mcipuzzl.h puzzle.h puzzproc.h
$(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) mcipuzzl.c
puzzle.obj: puzzle.c puzzle.h
$(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) puzzle.c
puzzproc.obj: puzzproc.c puzzproc.h puzzle.h
$(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) puzzproc.c
# Update the executable file if necessary, and if so, add the resource back in.
mcipuzzl.exe mcipuzzl.map: $(OBJS) mcipuzzl.res
$(link) $(linkdebug) $(guilflags) -out:mcipuzzl.exe $(OBJS) mcipuzzl.res $(guilibs) \
winmm.lib vfw32.lib -map:$*.map
mcipuzzl.sym: $*.map
mapsym $*.map
clean:
@if exist mcipuzzl.exe del mcipuzzl.exe
@if exist *.obj del *.obj
@if exist *.map del *.map
@if exist *.sym del *.sym
@if exist *.res del *.res
@if exist *.pdb del *.pdb
@if exist *.exp del *.exp
@if exist *.lib del *.lib