Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
CC = cc     # the usual situation
2
CFLAGS =    # the usual situation
3
 
4
CFLAGS = -g -N -I/usr/include/lcc -I/usr/include       # and this
5
 
6
YFLAGS = -d
7
 
8
OFILES = 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)
11
CFILES = 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
14
SRCFILES = picy.y picl.l pic.h $(CFILES) makefile FIXES README PS-PEmacros
15
 
16
pic:	picy.o $(OFILES) pic.h
17
	$(CC) $(CFLAGS) picy.o $(OFILES) -lm
18
 
19
$(OFILES):	pic.h prevy.tab.h
20
 
21
picy.o:	pic.h
22
 
23
prevy.tab.h:	y.tab.h
24
	-cmp -s y.tab.h prevy.tab.h || cp y.tab.h prevy.tab.h
25
 
26
bundle:
27
	@bundle $(SRCFILES) 
28
 
29
bowell:	 $(SRCFILES)  pictest.a 
30
	push bowell $? /usr/src/cmd/pic
31
	touch bowell
32
 
33
clean:
34
	rm *.o a.out *y.tab.h
35
 
36
install:
37
	cp a.out /usr/bin/pic
38
	strip /usr/bin/pic