blob: 0abe5bc6ddbb8e019c634e6f1ed00b9dfcaebffb (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
TARG=rc
OFILES=\
code.o\
exec.o\
getflags.o\
glob.o\
here.o\
io.o\
lex.o\
pcmd.o\
pfnc.o\
simple.o\
subr.o\
trap.o\
tree.o\
var.o\
havefork.o\
unix.o\
syn.o\
HFILES=rc.h\
y.tab.h\
io.h\
exec.h\
fns.h\
getflags.h\
YFILES=syn.y
YFLAGS=-d
PREFIX=/usr/local
all: $(TARG)
install: $(TARG) rcmain.unix
cp $(TARG) $(PREFIX)/bin/
cp rcmain.unix $(PREFIX)/lib/rcmain
$(TARG): $(OFILES)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARG) $(OFILES)
y.tab.h: syn.c
unix.o: unix.c
$(CC) $(CFLAGS) '-DPREFIX="$(PREFIX)"' -c unix.c
$(OFILES): $(HFILES)
clean:
rm -f $(OFILES) $(TARG) syn.c y.tab.? y.debug
|