mirror of
https://github.com/ksherlock/gopher.git
synced 2025-01-18 03:30:00 +00:00
31 lines
519 B
Makefile
31 lines
519 B
Makefile
CFLAGS += $(DEFINES) -v -w
|
|
OBJS = gopher.o url.o connection.o
|
|
|
|
gopher: $(OBJS)
|
|
$(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
|
|
|
|
utest: utest.o url.o
|
|
$(CC) $(LDFLAGS) utest.o url.o -o $@
|
|
|
|
dtest: dtest.o dictionary.o
|
|
$(CC) $(LDFLAGS) dtest.o dictionary.o -o $@
|
|
|
|
|
|
gopher.o: gopher.c url.h connection.h
|
|
url.o: url.c url.h
|
|
connection.o: connection.c connection.h
|
|
data.o: data.c data.h
|
|
dictionary.o: dictionary.c dictionary.h
|
|
|
|
# tests
|
|
utest.o: utest.c
|
|
dtest.o: dtest.c
|
|
|
|
|
|
clean:
|
|
$(RM) *.o *.root
|
|
|
|
clobber: clean
|
|
$(RM) gopher
|
|
|