Imakefile 740 B

12345678910111213141516171819202122232425262728293031
  1. /* cparser
  2. AUIS parser
  3. */
  4. NormalObjectRule()
  5. OBJS=cparser.o
  6. LibraryTarget(libcparser.a, $(OBJS))
  7. InstallLibrary(libcparser.a, $(DESTDIR)/lib)
  8. InstallShScript(mkparser, $(DESTDIR)/bin)
  9. InstallFile(cparser.h, $(INSTINCFLAGS), $(DESTDIR)/include)
  10. /* Building and executing 'testparse' gives a rudimentary sanity check */
  11. /* the following affects only foo.c (built from foo.y) */
  12. foo.h foo.c: foo.y
  13. ExecuteFromDESTDIR(bison -k foo.y)
  14. ./mkparser foo
  15. testparse.o: foo.h
  16. ClassTestProgramTarget(testparse, testparse.o foo.o cparser.o, , )
  17. CleanTarget(foo.c foo.h foo.act *.tab.*)
  18. dist: clean
  19. rm -f Imakefile Makefile RCS cp.tmp
  20. sed -e '/andrewos/d' cparser.c > cp.tmp
  21. rm -f cparser.c
  22. mv cp.tmp cparser.c
  23. mv Makefile.dist Makefile