DlgDDK.mak 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # PCCTS directory
  2. # You will need to set the LIB variable similar to this.
  3. # LIB="C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib;c:/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib"
  4. # PCCTS_HOME=<your PCCTS_HOME>
  5. PCCTS_HOME=$(WORKSPACE)\Tools\CCode\Source\Pccts
  6. DLG_SRC=$(PCCTS_HOME)\dlg
  7. PCCTS_H=$(PCCTS_HOME)\h
  8. # Support directories
  9. SET=$(PCCTS_HOME)\support\set
  10. # Compiler stuff
  11. CC = cl
  12. CFLAGS = /nologo -I "." -I "$(PCCTS_H)" -I "$(SET)" -D "USER_ZZSYN" -D "PC" \
  13. -D "ZZLEXBUFSIZE=65536" /D "LONGFILENAMES" /W3 /Z7
  14. DLG_OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \
  15. output.obj relabel.obj automata.obj
  16. SUPPORT_OBJS = set.obj
  17. # Dependencies
  18. dlg.exe: $(DLG_OBJS) $(SUPPORT_OBJS)
  19. $(CC) $(CFLAGS) -o dlg.exe bufferoverflowu.lib $(DLG_OBJS) $(SUPPORT_OBJS)
  20. del *.obj
  21. del *.ilk
  22. del *.pdb
  23. move dlg.exe $(WORKSPACE)\Tools\bin\.
  24. dlg_p.obj: $(DLG_SRC)\dlg_p.c \
  25. $(PCCTS_H)\antlr.h \
  26. $(PCCTS_H)\config.h \
  27. $(PCCTS_H)\dlgdef.h \
  28. $(SET)\set.h \
  29. $(DLG_SRC)\dlg.h \
  30. $(DLG_SRC)\mode.h \
  31. $(DLG_SRC)\tokens.h \
  32. $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_p.c
  33. dlg_a.obj: $(DLG_SRC)\dlg_a.c \
  34. $(PCCTS_H)\antlr.h \
  35. $(PCCTS_H)\config.h \
  36. $(PCCTS_H)\dlgauto.h \
  37. $(PCCTS_H)\dlgdef.h \
  38. $(SET)\set.h \
  39. $(DLG_SRC)\dlg.h \
  40. $(DLG_SRC)\mode.h \
  41. $(DLG_SRC)\tokens.h \
  42. $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_a.c
  43. main.obj: $(DLG_SRC)\main.c \
  44. $(PCCTS_H)\antlr.h \
  45. $(PCCTS_H)\config.h \
  46. $(PCCTS_H)\dlgdef.h \
  47. $(SET)\set.h \
  48. $(DLG_SRC)\dlg.h \
  49. $(DLG_SRC)\mode.h \
  50. $(DLG_SRC)\stdpccts.h \
  51. $(DLG_SRC)\tokens.h \
  52. $(CC) -c $(CFLAGS) $(DLG_SRC)\main.c
  53. err.obj: $(DLG_SRC)\err.c \
  54. $(PCCTS_H)\antlr.h \
  55. $(PCCTS_H)\config.h \
  56. $(PCCTS_H)\dlgdef.h \
  57. $(PCCTS_H)\err.h \
  58. $(SET)\set.h \
  59. $(DLG_SRC)\dlg.h \
  60. $(DLG_SRC)\tokens.h \
  61. $(CC) -c $(CFLAGS) $(DLG_SRC)\err.c
  62. support.obj: $(DLG_SRC)\support.c \
  63. $(PCCTS_H)\config.h \
  64. $(SET)\set.h \
  65. $(DLG_SRC)\dlg.h \
  66. $(CC) -c $(CFLAGS) $(DLG_SRC)\support.c
  67. output.obj: $(DLG_SRC)\output.c \
  68. $(PCCTS_H)\config.h \
  69. $(SET)\set.h \
  70. $(DLG_SRC)\dlg.h \
  71. $(CC) -c $(CFLAGS) $(DLG_SRC)\output.c
  72. relabel.obj: $(DLG_SRC)\relabel.c \
  73. $(PCCTS_H)\config.h \
  74. $(SET)\set.h \
  75. $(DLG_SRC)\dlg.h \
  76. $(CC) -c $(CFLAGS) $(DLG_SRC)\relabel.c
  77. automata.obj: $(DLG_SRC)\automata.c \
  78. $(PCCTS_H)\config.h \
  79. $(SET)\set.h \
  80. $(DLG_SRC)\dlg.h \
  81. $(CC) -c $(CFLAGS) $(DLG_SRC)\automata.c
  82. set.obj: $(SET)\set.c \
  83. $(PCCTS_H)\config.h \
  84. $(SET)\set.h \
  85. $(CC) -c $(CFLAGS) $(SET)\set.c
  86. clean:
  87. del *.obj
  88. distclean:
  89. del *.obj
  90. del $(WORKSPACE)\Tools\bin\dlg.exe