-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.mk
55 lines (37 loc) · 1.02 KB
/
makefile.mk
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
CFLAGS += $(DEFINES) -v -w
OBJS = main.o gopher.o url.o connection.o readline2.o scheme.o ftype.o \
mime.o setftype.o s16debug.o common.o http.o http.utils.o \
dictionary.o options.o time.o
gopher: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
utest: utest.o url.o scheme.o
$(CC) $(LDFLAGS) -o $@ $<
dtest: dtest.o dictionary.o
$(CC) $(LDFLAGS) -o $@ $<
htest: htest.o http.utils.o
$(CC) $(LDFLAGS) -o $@ $<
main.o: main.c url.h
url.o: url.c url.h
connection.o: connection.c connection.h
readline2.o: readline2.c readline2.h
common.o: common.c
options.o: options.c options.h
gopher.o: gopher.c url.h connection.h options.h
http.o: http.c url.h connection.h options.h
http.utils.o: http.utils.c
data.o: data.c data.h
dictionary.o: dictionary.c dictionary.h
setftype.o: setftype.c
scheme.o: scheme.c url.h
ftype.o: ftype.c
mime.o: mime.c
time.o: time.c
s16debug.o: s16debug.c s16debug.h
# tests
utest.o: utest.c
dtest.o: dtest.c
htest.o: htest.c
clean:
$(RM) *.o *.root
clobber: clean
$(RM) gopher