Blob


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