chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work on harness is progressing.
[adns.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index 317af60dbed2376bd59bbdff49433eed828172d9..39f49fa88077e81ab49276090511e3289c3c97f3 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-21,15
+21,29
@@
WARNS= -Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes \
-Wcast-qual -Wpointer-arith
WERROR=-Werror
-Wcast-qual -Wpointer-arith
WERROR=-Werror
+HCPPFLAGS:= $(foreach F, \
+ gettimeofday select \
+ socket fcntl connect close \
+ sendto recvfrom read write \
+, -D$F=H$F)
+
LIBOBJS= types.o event.o query.o reply.o general.o setup.o transmit.o parse.o
LIBOBJS= types.o event.o query.o reply.o general.o setup.o transmit.o parse.o
-ALLOBJS= $(LIBOBJS) dtest.o
+HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS)))
+ALLOBJS= $(LIBOBJS) $(HARNLOBJS) dtest.o hrecord.o hplayback.o hcommon.o
+
+all: dtest hrecord
+# hplayback
+
+hrecord: dtest.o hrecord.o hcommon.o $(HARNLOBJS)
-all: dtest
+dtest: dtest.o $(LIBOBJS)
-dtest: $(ALLOBJS)
+%_d.o: %.c
+ $(CC) $(HCPPFLAGS) -c -g -o $@ $<
clean:
rm -f dtest *.o
clean:
rm -f dtest *.o
+$(HARNLOBJS): adns.h internal.h
$(LIBOBJS): adns.h internal.h
dtest.o: adns.h
$(LIBOBJS): adns.h internal.h
dtest.o: adns.h