home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / zoomin / makefile next >
Makefile  |  1995-11-15  |  874b  |  33 lines

  1. # some NT Win32 nmake macros
  2. # for now this resides in samples\inc
  3.  
  4. !include <ntwin32.mak>
  5.  
  6. cvars=-DNT -DWIN -DWIN32
  7. obj=obj
  8. mycflag = -Fo.\$(obj)\\
  9.  
  10. all: zoomin.exe
  11.  
  12. # Update the object file if necessary
  13.  
  14. $(obj)\zoomin.obj: zoomin.c zoomin.h
  15.     IF NOT EXIST $(obj) md obj
  16.     $(cc) $(cdebug) $(cflags) $(mycflag) $(cvars) zoomin.c
  17.  
  18. # Update the resources if necessary
  19.  
  20. $(obj)\zoomin.res: zoomin.rc zoomin.h
  21.     rc -r -fo .\$(obj)\zoomin.res zoomin.rc
  22.  
  23. # Update the executable file if necessary, and if so, add the resource back in.
  24.  
  25. zoomin.exe: $(obj)\zoomin.obj \
  26.          $(obj)\zoomin.res
  27.     $(link) $(linkdebug) $(guiflags) -out:zoomin.exe     \
  28.     $(obj)\zoomin.obj \
  29.     $(obj)\zoomin.res $(guilibs) shell32.lib
  30. !IF ("$(TARGETLANG)" == "LANG_JAPANESE") && ("$(OS)" == "Windows_NT")
  31.     rlman -p 932 -n 17 1 -a $*.exe $*.tok $*.exe
  32. !ENDIF
  33.