Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # $Header$
  2. PROF=
  3. LLOPT=-vvv -x
  4. CFLAGS=$(PROF) -O -DNDEBUG # -R
  5. LDFLAGS=-i
  6. OBJECTS = main.o gencode.o compute.o LLgen.o tokens.o check.o reach.o global.o name.o sets.o Lpars.o alloc.o machdep.o
  7. CFILES = main.c gencode.c compute.c LLgen.c tokens.c check.c reach.c global.c name.c sets.c Lpars.c alloc.c machdep.c
  8. FILES =types.h tunable.h extern.h io.h sets.h assert.h tokens.g LLgen.g main.c name.c compute.c sets.c gencode.c global.c check.c reach.c alloc.c machdep.c Makefile
  9. GFILES = tokens.g LLgen.g
  10. LINT = lint -b -DNDEBUG
  11. all:
  12. @make parser "LLOPT=$(LLOPT)"
  13. @make LLgen "LDFLAGS=$(LDFLAGS)" "CC=$(CC)" "PROF=$(PROF)" "CFLAGS=$(CFLAGS)"
  14. parser: $(GFILES)
  15. LLgen $(LLOPT) $(GFILES)
  16. @touch parser
  17. LLgen: $(OBJECTS)
  18. $(CC) $(PROF) $(LDFLAGS) $(OBJECTS) -o LLgen
  19. @size LLgen
  20. pr :
  21. @pr $(FILES) ../lib/rec ../lib/incl
  22. lint:
  23. $(LINT) $(CFILES)
  24. clean:
  25. -rm -f *.o LL.temp LL.xxx LL.output LLgen
  26. depend:
  27. ./makedepend `grep -v '\.h' sources`
  28. # The next lines are generated automatically
  29. # AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
  30. LLgen.o: Lpars.h
  31. LLgen.o: assert.h
  32. LLgen.o: extern.h
  33. LLgen.o: io.h
  34. LLgen.o: tunable.h
  35. LLgen.o: types.h
  36. Lpars.o: Lpars.h
  37. alloc.o: extern.h
  38. alloc.o: types.h
  39. check.o: assert.h
  40. check.o: extern.h
  41. check.o: io.h
  42. check.o: sets.h
  43. check.o: tunable.h
  44. check.o: types.h
  45. compute.o: assert.h
  46. compute.o: extern.h
  47. compute.o: io.h
  48. compute.o: sets.h
  49. compute.o: tunable.h
  50. compute.o: types.h
  51. gencode.o: assert.h
  52. gencode.o: extern.h
  53. gencode.o: io.h
  54. gencode.o: sets.h
  55. gencode.o: tunable.h
  56. gencode.o: types.h
  57. global.o: io.h
  58. global.o: tunable.h
  59. global.o: types.h
  60. machdep.o: types.h
  61. main.o: assert.h
  62. main.o: extern.h
  63. main.o: io.h
  64. main.o: sets.h
  65. main.o: types.h
  66. name.o: assert.h
  67. name.o: extern.h
  68. name.o: io.h
  69. name.o: tunable.h
  70. name.o: types.h
  71. reach.o: assert.h
  72. reach.o: extern.h
  73. reach.o: io.h
  74. reach.o: tunable.h
  75. reach.o: types.h
  76. sets.o: assert.h
  77. sets.o: extern.h
  78. sets.o: sets.h
  79. sets.o: types.h
  80. tokens.o: Lpars.h
  81. tokens.o: assert.h
  82. tokens.o: extern.h
  83. tokens.o: io.h
  84. tokens.o: tunable.h
  85. tokens.o: types.h