mirror of
https://github.com/ksherlock/gopher.git
synced 2024-12-28 04:31:44 +00:00
43 lines
827 B
Makefile
43 lines
827 B
Makefile
CFLAGS += $(DEFINES) -v -w
|
|
OBJS = main.o gopher.o url.o connection.o readline2.o scheme.o ftype.o setftype.o \
|
|
s16debug.o common.o http.o dictionary.o
|
|
|
|
gopher: $(OBJS)
|
|
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
|
|
|
|
utest: utest.o url.o scheme.o
|
|
$(CC) $(LDFLAGS) utest.o url.o scheme.o -o $@
|
|
|
|
dtest: dtest.o dictionary.o
|
|
$(CC) $(LDFLAGS) dtest.o dictionary.o -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
|
|
|
|
gopher.o: gopher.c url.h connection.h
|
|
http.o: http.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
|
|
|
|
s16debug.o: s16debug.c s16debug.h
|
|
|
|
# tests
|
|
utest.o: utest.c
|
|
dtest.o: dtest.c
|
|
|
|
|
|
clean:
|
|
$(RM) *.o *.root
|
|
|
|
clobber: clean
|
|
$(RM) gopher
|
|
|