-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.SCO
59 lines (41 loc) · 1.01 KB
/
Makefile.SCO
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
52
53
54
55
56
57
58
59
# Makefile for MEX on UnixWare 1.1
CFLAGS= -O
LFLAGS= -s
LIBS= -lcurses
OBJ= buffer.o cursor.o display.o files.o help.o line.o main.o random.o \
search.o term.o window.o word.o
mex: $(OBJ)
cc -o mex $(LFLAGS) $(OBJ) $(LIBS)
buffer.o: buffer.c ed.h
cc $(CFLAGS) -c buffer.c
cursor.o: cursor.c ed.h
cc $(CFLAGS) -c cursor.c
display.o: display.c ed.h
cc $(CFLAGS) -c display.c
files.o: files.c ed.h
cc $(CFLAGS) -c files.c
help.o: help.c ed.h
cc $(CFLAGS) -c help.c
line.o: line.c ed.h
cc $(CFLAGS) -c line.c
curkeys.h:
grep 'define[^K]*KEY_' </usr/include/tinfo.h >$@
main.o: main.c ed.h curkeys.h
cc $(CFLAGS) -c main.c
random.o: random.c ed.h
cc $(CFLAGS) -c random.c
search.o: search.c ed.h
cc $(CFLAGS) -c search.c
term.o: term.c ed.h
cc $(CFLAGS) -DCURSES -c term.c
window.o: window.c ed.h
cc $(CFLAGS) -c window.c
word.o: word.c ed.h
cc $(CFLAGS) -c word.c
help.c: help_c.eng
-ln -f $? $@
install: mex
strip mex
su bin -c "cp mex /usr/local/bin"
clean:
rm -f *.o core mex curkeys.h help.c