update makefile

This commit is contained in:
Kelvin Sherlock 2012-04-24 23:55:24 -04:00
parent c5253c6ce3
commit 4dc81d82af

View File

@ -1,5 +1,5 @@
CFLAGS += $(DEFINES) -v -w
OBJS = gopher.o url.o connection.o readline2.o scheme.o ftype.o setftype.o
OBJS = main.o gopher.o url.o connection.o readline2.o scheme.o ftype.o setftype.o s16debug.o
gopher: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
@ -10,12 +10,14 @@ utest: utest.o url.o scheme.o
dtest: dtest.o dictionary.o
$(CC) $(LDFLAGS) dtest.o dictionary.o -o $@
main.o: main.c url.h
gopher.o: gopher.c url.h connection.h
url.o: url.c url.h
connection.o: connection.c connection.h
readline2.o: readline2.c readline2.h
http.0.9.o: http.0.9.c
data.o: data.c data.h
dictionary.o: dictionary.c dictionary.h
@ -23,6 +25,8 @@ setftype.o: setftype.c
scheme.o: scheme.c url.h
ftype.o: ftype.c
s16debug.o: s16debug.c s16debug.h
# tests
utest.o: utest.c
dtest.o: dtest.c