]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/pic/makefile
cc: use 7 octal digits for 21 bit runes
[plan9front.git] / sys / src / cmd / pic / makefile
1 CC = cc     # the usual situation
2 CFLAGS =    # the usual situation
3
4 CC = lcc        # you will probably want to remove this 
5 CFLAGS = -g -N -I/usr/include/lcc -I/usr/include       # and this
6
7 YFLAGS = -d
8
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
16
17 pic:    picy.o $(OFILES) pic.h
18         $(CC) $(CFLAGS) picy.o $(OFILES) -lm
19
20 $(OFILES):      pic.h prevy.tab.h
21
22 picy.o: pic.h
23
24 prevy.tab.h:    y.tab.h
25         -cmp -s y.tab.h prevy.tab.h || cp y.tab.h prevy.tab.h
26
27 bundle:
28         @bundle $(SRCFILES) 
29
30 bowell:  $(SRCFILES)  pictest.a 
31         push bowell $? /usr/src/cmd/pic
32         touch bowell
33
34 clean:
35         rm *.o a.out *y.tab.h
36
37 install:
38         cp a.out /usr/bin/pic
39         strip /usr/bin/pic