hello-dns/tdns/Makefile
bert hubert 51f97d17a3 C API
2018-10-11 14:01:42 +02:00

29 lines
971 B
Makefile

CXXFLAGS:=-std=gnu++14 -Wall -O2 -MMD -MP -ggdb -Iext/simplesocket -Iext/catch -pthread
CFLAGS:= -Wall -O2 -MMD -MP -ggdb
PROGRAMS = tdns tdig tdns-c-test
all: $(PROGRAMS)
clean:
rm -f *~ *.o *.d test $(PROGRAMS)
check: testrunner tdns tdig
./testrunner
cd tests ; ./basic
-include *.d
tdns: tdns.o record-types.o dns-storage.o dnsmessages.o contents.o ext/simplesocket/comboaddress.o ext/simplesocket/sclasses.o ext/simplesocket/swrappers.o tdnssec.o
g++ -std=gnu++14 $^ -o $@ -pthread
tdig: tdig.o record-types.o dns-storage.o dnsmessages.o ext/simplesocket/comboaddress.o ext/simplesocket/sclasses.o ext/simplesocket/swrappers.o
g++ -std=gnu++14 $^ -o $@ -pthread
tdns-c-test: tdns-c-test.o tdns-c.o record-types.o dns-storage.o dnsmessages.o ext/simplesocket/comboaddress.o ext/simplesocket/sclasses.o ext/simplesocket/swrappers.o
g++ -std=gnu++14 $^ -o $@
testrunner: tests.o record-types.o dns-storage.o dnsmessages.o
g++ -std=gnu++14 $^ -o $@