home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / windiff / makefile < prev    next >
Makefile  |  1997-10-15  |  3KB  |  97 lines

  1. !include <ntwin32.mak>
  2.  
  3. !if "$(CPU)" == "i386"
  4. cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
  5. !else
  6. cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2=
  7. !endif
  8.  
  9. all: windiff.exe gutils.dll
  10.  
  11. # Update GUTILS.DLL
  12. # Update the resources for GUTILS.DLL if necessary
  13.  
  14. OBJS = gutils.obj gbit.obj gmem.obj gdate.obj status.obj list.obj table.obj tprint.obj tpaint.obj tscroll.obj tree.obj utils.obj gutils.res
  15.  
  16. gutils.obj: gutils.c
  17.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  18.  
  19. gbit.obj: gbit.c
  20.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  21.  
  22. gmem.obj: gmem.c
  23.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  24.  
  25. gdate.obj: gdate.c
  26.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  27.  
  28. status.obj: status.c
  29.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  30.  
  31. table.obj: table.c
  32.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  33.  
  34. tprint.obj: tprint.c
  35.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  36.  
  37. tpaint.obj: tpaint.c
  38.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  39.  
  40. tscroll.obj: tscroll.c
  41.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  42.  
  43. list.obj: list.c
  44.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  45.  
  46. tree.obj: tree.c
  47.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  48.  
  49. utils.obj: utils.c
  50.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(scall) $*.c
  51.  
  52.  
  53. gutils.res: gutils.rc gutils.dlg gutilsrc.h horzline.cur vertline.cur
  54.     rc $(rcvars) -r gutils.rc
  55.  
  56. gutils.lib: $(OBJS) gutils.def
  57.     $(implib) -machine:$(CPU) \
  58.         -def:gutils.def \
  59.         $(OBJS) \
  60.         -out:gutils.lib
  61.  
  62. gutils.dll: $(OBJS) gutils.def gutils.lib
  63.     $(link) $(linkdebug) $(dlllflags) \
  64.     -base:0x1c000000 \
  65.     -out:gutils.dll \
  66.     gutils.exp $(OBJS) $(guilibsdll)
  67. !IF ("$(TARGETLANG)" == "LANG_JAPANESE") && ("$(OS)" == "Windows_NT")
  68.     rlman -p 932 -n 17 1 -a $*.dll $*.tok $*.dll
  69. !ENDIF
  70.  
  71. # Update WINDIFF.EXE
  72. # Update the resources for WINDIFF.EXE if necessary
  73.  
  74. WINOBJS = windiff.obj  \
  75.         bar.obj \
  76.         view.obj \
  77.         complist.obj \
  78.         scandir.obj \
  79.         compitem.obj \
  80.         section.obj \
  81.         line.obj \
  82.         file.obj
  83.  
  84. windiff.res: windiff.rc windiff.h windiff.ico windiff.dlg
  85.     rc $(rcvars) -r windiff.rc
  86.  
  87. windiff.exe: $(WINOBJS)  \
  88.         windiff.res \
  89.         gutils.lib
  90.   $(link) $(linkdebug) $(guiflags) -out:$*.exe $(WINOBJS) gutils.lib windiff.res $(guilibs)
  91. !IF ("$(TARGETLANG)" == "LANG_JAPANESE") && ("$(OS)" == "Windows_NT")
  92.     rlman -p 932 -n 17 1 -a $*.exe $*.tok $*.exe
  93. !ENDIF
  94.  
  95. .c.obj:
  96.   $(cc) $(cdebug) $(cflags) $(cvars) $(scall) $*.c
  97.