X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=Makefile;h=ff3977ebcf6c3e626d52a080e79f94d081b3a58e;hb=f081d098f67561bdcfedf5002335fa32d45e0442;hp=f5af6241cda64dc89e0b3a441db9a58a012c100a;hpb=33ccd714ea9469b5b7d3b36bbe468ba1b0f31dfc;p=catta diff --git a/Makefile b/Makefile index f5af624..ff3977e 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,28 @@ -CFLAGS=-g -O0 -Wall -W -pipe $(shell pkg-config --cflags glib-2.0) +#CC=gcc-2.95 +CFLAGS=-g -O1 -Wall -W -pipe $(shell pkg-config --cflags glib-2.0) -Wno-unused LIBS=$(shell pkg-config --libs glib-2.0) -flexmdns: main.o iface.o netlink.o server.o address.o util.o local.o +all: strlst-test prioq-test domain-test dns-test flexmdns + +flexmdns: timeeventq.o main.o iface.o netlink.o server.o address.o util.o prioq.o cache.o rr.o dns.o socket.o psched.o announce.o subscribe.o strlst.o + $(CC) -o $@ $^ $(LIBS) + +#test-llist: test-llist.o +# $(CC) -o $@ $^ $(LIBS) + +prioq-test: prioq-test.o prioq.o + $(CC) -o $@ $^ $(LIBS) + +strlst-test: strlst-test.o strlst.o + $(CC) -o $@ $^ $(LIBS) + +domain-test: domain-test.o util.o + $(CC) -o $@ $^ $(LIBS) + +dns-test: dns-test.o util.o dns.o rr.o strlst.o $(CC) -o $@ $^ $(LIBS) *.o: *.h clean: - rm -f *.o flexmdns + rm -f *.o flexmdns prioq-test strlst-test domain-test dns-test