gopher/makefile.mk

44 lines
873 B
Makefile
Raw Normal View History

2012-04-05 22:55:57 +00:00
CFLAGS += $(DEFINES) -v -w
2012-04-28 01:19:56 +00:00
OBJS = main.o gopher.o url.o connection.o readline2.o scheme.o ftype.o setftype.o \
s16debug.o common.o http.0.9.o http.1.0.o dictionary.o
2012-04-05 22:55:57 +00:00
gopher: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
2012-04-20 00:45:35 +00:00
utest: utest.o url.o scheme.o
$(CC) $(LDFLAGS) utest.o url.o scheme.o -o $@
2012-04-07 00:14:06 +00:00
dtest: dtest.o dictionary.o
$(CC) $(LDFLAGS) dtest.o dictionary.o -o $@
2012-04-25 03:55:24 +00:00
main.o: main.c url.h
2012-04-05 22:55:57 +00:00
url.o: url.c url.h
connection.o: connection.c connection.h
2012-04-16 01:49:04 +00:00
readline2.o: readline2.c readline2.h
2012-04-28 01:19:56 +00:00
common.o: common.c
2012-04-16 01:49:04 +00:00
2012-04-28 01:19:56 +00:00
gopher.o: gopher.c url.h connection.h
2012-04-25 03:55:24 +00:00
http.0.9.o: http.0.9.c
2012-04-28 01:19:56 +00:00
http.1.0.o: http.1.0.c
2012-04-25 03:55:24 +00:00
2012-04-05 22:55:57 +00:00
data.o: data.c data.h
dictionary.o: dictionary.c dictionary.h
2012-04-16 01:49:04 +00:00
setftype.o: setftype.c
scheme.o: scheme.c url.h
ftype.o: ftype.c
2012-04-25 03:55:24 +00:00
s16debug.o: s16debug.c s16debug.h
2012-04-07 00:14:06 +00:00
# tests
utest.o: utest.c
dtest.o: dtest.c
2012-04-05 22:55:57 +00:00
clean:
$(RM) *.o *.root
clobber: clean
$(RM) gopher