12345678910111213141516171819202122232425262728293031 |
- /* cparser
- AUIS parser
- */
- NormalObjectRule()
- OBJS=cparser.o
- LibraryTarget(libcparser.a, $(OBJS))
- InstallLibrary(libcparser.a, $(DESTDIR)/lib)
- InstallShScript(mkparser, $(DESTDIR)/bin)
- InstallFile(cparser.h, $(INSTINCFLAGS), $(DESTDIR)/include)
- /* Building and executing 'testparse' gives a rudimentary sanity check */
- /* the following affects only foo.c (built from foo.y) */
- foo.h foo.c: foo.y
- ExecuteFromDESTDIR(bison -k foo.y)
- ./mkparser foo
- testparse.o: foo.h
- ClassTestProgramTarget(testparse, testparse.o foo.o cparser.o, , )
- CleanTarget(foo.c foo.h foo.act *.tab.*)
- dist: clean
- rm -f Imakefile Makefile RCS cp.tmp
- sed -e '/andrewos/d' cparser.c > cp.tmp
- rm -f cparser.c
- mv cp.tmp cparser.c
- mv Makefile.dist Makefile
|