gopher/makefile.mk

56 lines
1.0 KiB
Makefile
Raw Normal View History

2012-04-05 22:55:57 +00:00
CFLAGS += $(DEFINES) -v -w
2013-08-11 00:25:15 +00:00
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 \
2013-08-11 17:55:41 +00:00
dictionary.o options.o time.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
2012-04-30 02:46:43 +00:00
$(CC) $(LDFLAGS) -o $@ $<
2012-04-07 00:14:06 +00:00
dtest: dtest.o dictionary.o
2012-04-30 02:46:43 +00:00
$(CC) $(LDFLAGS) -o $@ $<
htest: htest.o http.utils.o
$(CC) $(LDFLAGS) -o $@ $<
2012-04-07 00:14:06 +00:00
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
2013-08-11 17:55:41 +00:00
options.o: options.c options.h
2012-04-30 02:46:43 +00:00
2013-08-11 17:55:41 +00:00
gopher.o: gopher.c url.h connection.h options.h
http.o: http.c url.h connection.h options.h
2012-04-30 02:46:43 +00:00
http.utils.o: http.utils.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
2013-08-11 00:25:15 +00:00
mime.o: mime.c
2012-04-16 01:49:04 +00:00
time.o: time.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-30 02:46:43 +00:00
htest.o: htest.c
2012-04-07 00:14:06 +00:00
2012-04-05 22:55:57 +00:00
clean:
$(RM) *.o *.root
clobber: clean
$(RM) gopher