1CC = cc # the usual situation 2CFLAGS = # the usual situation 3 4CFLAGS = -g -N -I/usr/include/lcc -I/usr/include # and this 5 6YFLAGS = -d 7 8OFILES = picl.o main.o print.o misc.o symtab.o blockgen.o boxgen.o \ 9 circgen.o arcgen.o linegen.o movegen.o textgen.o \ 10 input.o for.o pltroff.o $(ALLOC) 11CFILES = main.c print.c misc.c symtab.c blockgen.c boxgen.c circgen.c \ 12 arcgen.c linegen.c movegen.c textgen.c \ 13 input.c for.c pltroff.c 14SRCFILES = picy.y picl.l pic.h $(CFILES) makefile FIXES README PS-PEmacros 15 16pic: picy.o $(OFILES) pic.h 17 $(CC) $(CFLAGS) picy.o $(OFILES) -lm 18 19$(OFILES): pic.h prevy.tab.h 20 21picy.o: pic.h 22 23prevy.tab.h: y.tab.h 24 -cmp -s y.tab.h prevy.tab.h || cp y.tab.h prevy.tab.h 25 26bundle: 27 @bundle $(SRCFILES) 28 29bowell: $(SRCFILES) pictest.a 30 push bowell $? /usr/src/cmd/pic 31 touch bowell 32 33clean: 34 rm *.o a.out *y.tab.h 35 36install: 37 cp a.out /usr/bin/pic 38 strip /usr/bin/pic 39