home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
netds
/
sna
/
aping
/
makeping.mak
< prev
Wrap
Makefile
|
1997-04-09
|
2KB
|
52 lines
!include <ntwin32.MAK>
!if "$(ISVLIBS)"==""
!error "Set ISVLIBS to the directory containing WAPPC32.LIB and WCPIC32.LIB"
!endif
!if "$(ISVINCS)"==""
!error "Set ISVINCS to the directory containing WINCPIC.H and WINAPPC.H"
!endif
!if "$(SAMPLEROOT)"==""
!error "Set SAMPLEROOT to the root directory of the sample code tree"
!endif
snalibs = $(ISVLIBS)\wappc32.lib $(ISVLIBS)\wcpic32.lib
shared = $(SAMPLEROOT)\shared
headers = $(shared)\cpicerrs.h \
$(shared)\cpicdefs.h \
$(shared)\cpicport.h \
$(shared)\cpicinit.h \
$(shared)\getopt.h \
$(ISVINCS)\wincpic.h \
$(ISVINCS)\winappc.h
INCLUDE = $(INCLUDE);$(ISVINCS);$(shared);
all: aping.exe apingd.exe
# Update the object files if necessary
apingd.obj: apingd.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) apingd.c
aping.obj: aping.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) aping.c
cpicport.obj: $(shared)\cpicport.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicport.c
cpicerr.obj: $(shared)\cpicerr.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicerr.c
getopt.obj: $(shared)\getopt.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\getopt.c
cpicinit.obj: $(shared)\cpicinit.c $(headers)
$(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicinit.c
aping.exe: aping.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs)
$(link) $(linkdebug) $(conflags) aping.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs) $(conlibsdll) -out:aping.exe
apingd.exe: apingd.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs)
$(link) $(linkdebug) $(conflags) apingd.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs) $(conlibsdll) advapi32.lib -out:apingd.exe