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