home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / makefile2 < prev    next >
Text File  |  1997-10-25  |  2KB  |  89 lines

  1. Proj = CkyMunge
  2.  
  3. !ifdef PROCESSOR_ARCHITECTURE
  4. # We're on Windows NT
  5. CPU = $(PROCESSOR_ARCHITECTURE)
  6. ! if "$(CPU)" == "x86"
  7. CPU = i386
  8. ! endif
  9. !else  # !PROCESSOR_ARCHITECTURE
  10. # We're on Windows 95
  11. CPU = i386
  12. !endif # !PROCESSOR_ARCHITECTURE
  13.  
  14. # Build a retail version by default
  15.  
  16. !ifndef DEBUG
  17. NODEBUG = 1
  18. !endif
  19.  
  20.  
  21. !include <Win32.mak>
  22.  
  23.  
  24. cflags = $(cflags) -GX # enable exceptions for STL
  25.  
  26.  
  27. !ifdef NODEBUG
  28. cflags = $(cflags) -DNDEBUG
  29. msvcrtlib = msvcprt.lib msvcrt.lib
  30. !else
  31. cflags = $(cflags) -DDEBUG -D_DEBUG
  32. msvcrtlib = msvcprtd.lib msvcrtd.lib
  33. !endif
  34.  
  35. all: $(Proj).Dll
  36.  
  37. OBJ = CkyMunge.obj Debug.obj Filter.obj Keyword.obj Notify.obj \
  38.       Token.obj Utils.obj
  39.  
  40. Messages.rc Messages.h: Messages.mc
  41.   mc Messages.mc
  42.  
  43. Messages.res: Messages.rc
  44.   $(rc) Messages.rc
  45.  
  46. $(Proj).Obj: $(Proj).cpp Messages.h
  47.   $(cc) $(cdebug) $(cflags) $(cvarsdll) $(Proj).cpp
  48.  
  49. Debug.Obj: Debug.cpp
  50.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Debug.cpp
  51.  
  52. Filter.Obj: Filter.cpp
  53.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Filter.cpp
  54.  
  55. Keyword.Obj: Keyword.cpp
  56.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Keyword.cpp
  57.  
  58. Notify.Obj: Notify.cpp
  59.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Notify.cpp
  60.  
  61. Token.Obj: Token.cpp
  62.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Token.cpp
  63.  
  64. Utils.Obj: Utils.cpp
  65.   $(cc) $(cdebug) $(cflags) $(cvarsdll) Utils.cpp
  66.  
  67. $(Proj).Dll: $(OBJ) Messages.res $(Proj).Exp
  68.      $(link) $(linkdebug) $(dlllflags) -base:0x1C080000 -out:$(Proj).dll  \
  69.       $(OBJ) Messages.res $(Proj).Exp  $(msvcrtlib) $(guilibsdll)
  70.  
  71. $(Proj).Exp: $(Proj).Obj
  72.   $(implib) -machine:$(CPU) -nologo -Def:$(Proj).Def -Out:$(Proj).Lib \
  73.     $(Proj).Obj 
  74.  
  75.  
  76. Clean:
  77.     del *.obj
  78.  
  79. Cleanall:
  80.     del *.obj
  81.     del *.exp
  82.     del *.dll
  83.     del *.lib
  84.     del messages.rc
  85.     del messages.res
  86.     del messages.h
  87.     del msg000*.bin
  88.  
  89.