summaryrefslogtreecommitdiff
path: root/package/maradns/patches/patch-deadwood-3_2_09_src_Makefile
blob: b61b368ddbf1a3b029f3bbe110e2406a00f80f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- maradns-2.0.13.orig/deadwood-3.2.09/src/Makefile	2015-01-24 09:09:04.000000000 +0100
+++ maradns-2.0.13/deadwood-3.2.09/src/Makefile	2015-10-22 15:56:39.000000000 +0200
@@ -1,4 +1,4 @@
-# Makefile for Deadwood-2 (CentOS 5; may work with other other Linux and
+# Makefile for Deadwood-3 (CentOS 5; may work with other other Linux and
 # *NIX systems)
 
 # The compiler that makes programs designed to run on the machine 
@@ -41,31 +41,31 @@ version.h:
 	./make.version.h
 	
 DwStr.o:	DwStr.c DwStr.h
-	$(CC) $(FLAGS) -Wall -c -o DwStr.o DwStr.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwStr.o DwStr.c
 
 DwCompress.o:	DwCompress.c DwStr.h
-	$(CC) $(FLAGS) -Wall -c -o DwCompress.o DwCompress.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwCompress.o DwCompress.c
 
 DwDnsStr.o:	DwDnsStr.c DwStr.h DwRecurse.h
-	$(CC) $(FLAGS) -Wall -c -o DwDnsStr.o DwDnsStr.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwDnsStr.o DwDnsStr.c
 
 DwMararc.o:	DwMararc.c DwMararc.h 
-	$(CC) $(FLAGS) -Wall -c -o DwMararc.o DwMararc.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwMararc.o DwMararc.c
 
 DwRadioGatun.o:	DwRadioGatun.c DwRadioGatun.h DwStr.h
-	$(CC) $(FLAGS) -Wall -c -o DwRadioGatun.o DwRadioGatun.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwRadioGatun.o DwRadioGatun.c
 
 DwTcpSocket.o:	DwTcpSocket.c DwStr.h DwSocket.h
-	$(CC) $(FLAGS) -Wall -c -o DwTcpSocket.o DwTcpSocket.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwTcpSocket.o DwTcpSocket.c
 
 DwUdpSocket.o:	DwUdpSocket.c DwStr.h DwSocket.h
-	$(CC) $(FLAGS) -Wall -c -o DwUdpSocket.o DwUdpSocket.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwUdpSocket.o DwUdpSocket.c
 
 DwSocket.o:	DwSocket.c DwStr.h DwSocket.h
-	$(CC) $(FLAGS) -Wall -c -o DwSocket.o DwSocket.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwSocket.o DwSocket.c
 
-DwSys.o:	DwSys.c DwStr.h version.h
-	$(CC) $(FLAGS) -Wall -c -o DwSys.o DwSys.c
+DwSys.o:	DwSys.c DwStr.h
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwSys.o DwSys.c
 
 RandomPrime:	RandomPrime.c
 	$(CC) -O3 -o RandomPrime RandomPrime.c
@@ -74,17 +74,17 @@ DwRandPrime.h: RandomPrime
 	if [ -e /dev/urandom ] ; then ./RandomPrime > DwRandPrime.h ; fi
 
 DwHash.o:	DwHash.c DwStr.h DwRandPrime.h DwHash.h
-	$(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwHash.o DwHash.c
 
 DwRecurse.o:	DwRecurse.c DwRecurse.h
-	$(CC) $(FLAGS) -Wall -c -o DwRecurse.o DwRecurse.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwRecurse.o DwRecurse.c
 
 DwDict.o:	DwDict.c DwStr.h DwRandPrime.h DwDict.h
-	$(CC) $(FLAGS) -Wall -c -o DwDict.o DwDict.c
+	$(CC) $(FLAGS) -DIPV6 -Wall -c -o DwDict.o DwDict.c
 
 Test:		Test.c DwStr.o DwStr.h DwStr_functions.h $(OBJS)
 	$(CC) $(FLAGS) -Wall -o Test Test.c $(OBJS)
 
 Deadwood:	DwMain.c $(OBJS) DwStr_functions.h version.h
-	$(CC) $(FLAGS) -Wall -o Deadwood DwMain.c $(OBJS) -lrt
+	$(CC) $(FLAGS) -DIPV6 -Wall -o Deadwood DwMain.c $(OBJS) -lrt