gopher/makefile.mk

37 lines
681 B
Makefile
Raw Normal View History

2012-04-05 22:55:57 +00:00
CFLAGS += $(DEFINES) -v -w
2012-04-16 01:49:04 +00:00
OBJS = gopher.o url.o connection.o readline2.o scheme.o ftype.o setftype.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-05 22:55:57 +00:00
gopher.o: gopher.c url.h connection.h
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-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-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