summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-05 17:25:48 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-05 17:25:48 +0000
commita3b571996ea5cb0227b36a20f3fc0986f7ab1b7d (patch)
tree4e20b8c423fb9ed8db4dd75fbe5af4101c70f479 /Makefile
parentc1e61a10b499660ecf3bc33d09ad66eb407cb049 (diff)
move nss-mdns/* to trunk/
git-svn-id: file:///home/lennart/svn/public/nss-mdns/trunk@49 0ee8848e-81ea-0310-a63a-f631d1a40d77
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4c1d3a0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+CFLAGS=-Wall -fPIC -g -O0 -W -pipe '-DDEBUG_TRAP=__asm__("int $$3")'
+
+all: query nsstest libnss_mdns.so.2 libnss_mdns6.so.2 libnss_mdns4.so.2
+
+query: query.o dns.o util.o main.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
+
+nsstest: nsstest.o
+
+libnss_mdns.so.2: query.o dns.o util.o nss.o
+ $(CC) -shared -o $@ -Wl,-soname,$@ $^
+
+libnss_mdns4.so.2: query.o dns.o util.o nss4.o
+ $(CC) -shared -o $@ -Wl,-soname,$@ $^
+
+libnss_mdns6.so.2: query.o dns.o util.o nss6.o
+ $(CC) -shared -o $@ -Wl,-soname,$@ $^
+
+nss6.o: nss.c
+ $(CC) $(CFLAGS) -DNSS_IPV6_ONLY=1 -c -o $@ $<
+
+nss4.o: nss.c
+ $(CC) $(CFLAGS) -DNSS_IPV4_ONLY=1 -c -o $@ $<
+
+*.o: *.h
+
+clean:
+ rm -f *.o query *.so.2 nsstest