revert autotools files touching: it has side effects (closes: #918)
[openwrt/svn-archive/archive.git] / ipv6 / dhcp6 / patches / 01-opt_flags.patch
1 diff -urN orig/dhcp6-1.0/client/Makefile dhcp6-1.0/client/Makefile
2 --- orig/dhcp6-1.0/client/Makefile 2025-06-28 23:21:40.000000000 +0200
3 +++ dhcp6-1.0/client/Makefile 2005-12-13 13:43:11.000000000 +0100
4 @@ -3,40 +3,40 @@
5 STD_HEADERS = stdhead.h head.h struct.h options_type.h message_type.h states.h timer_val.h constants.h macros.h status_codes.h
6 OBJECT_FILES = client.o solicit.o clilib.o parse.o request.o decline.o renew.o rebind.o release.o
7 HEADER_FILES = solicit.h clilib.h parse.h request.h decline.h renew.h rebind.h release.h
8 -
9 +CFLAGS = -g3
10
11 dhcpv6_client : dhcpv6_client.c cli
12 - $(CC) -g3 dhcpv6_client.c -o dhcpv6_client
13 + $(CC) $(CFLAGS) $(LDFLAGS) dhcpv6_client.c -o dhcpv6_client
14
15 cli : $(OBJECT_FILES)
16 - $(CC) -g3 $(OBJECT_FILES) -o cli -lncurses
17 + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECT_FILES) -o cli -lncurses
18
19 client.o : client.c $(STD_HEADERS) $(HEADER_FILES)
20 - $(CC) -g3 -c client.c -o client.o
21 + $(CC) $(CFLAGS) -c client.c -o client.o
22
23 release.o : release.c release.h clilib.h
24 - $(CC) -g3 -c release.c -o release.o
25 + $(CC) $(CFLAGS) -c release.c -o release.o
26
27 rebind.o : rebind.c rebind.h clilib.h
28 - $(CC) -g3 -c rebind.c -o rebind.o
29 + $(CC) $(CFLAGS) -c rebind.c -o rebind.o
30
31 renew.o : renew.c renew.h clilib.h
32 - $(CC) -g3 -c renew.c -o renew.o
33 + $(CC) $(CFLAGS) -c renew.c -o renew.o
34
35 request.o : request.c request.h clilib.h
36 - $(CC) -g3 -c request.c -o request.o
37 + $(CC) $(CFLAGS) -c request.c -o request.o
38
39 decline.o : decline.c decline.h clilib.h parse.h solicit.h
40 - $(CC) -g3 -c decline.c -o decline.o
41 + $(CC) $(CFLAGS) -c decline.c -o decline.o
42
43 solicit.o : solicit.c solicit.h clilib.h parse.h
44 - $(CC) -g3 -c solicit.c -o solicit.o
45 + $(CC) $(CFLAGS) -c solicit.c -o solicit.o
46
47 clilib.o : clilib.c clilib.h parse.h
48 - $(CC) -g3 -c clilib.c -o clilib.o
49 + $(CC) $(CFLAGS) -c clilib.c -o clilib.o
50
51 parse.o : parse.c parse.h clilib.h
52 - $(CC) -g3 -c parse.c -o parse.o
53 + $(CC) $(CFLAGS) -c parse.c -o parse.o
54
55 clean :
56 rm -f *.o cli dhcpv6_client
57 --- orig/dhcp6-1.0/server/Makefile 2002-06-28 14:50:04.000000000 +0200
58 +++ dhcp6-1.0/server/Makefile 2005-12-13 11:35:53.000000000 +0100
59 @@ -1,27 +1,28 @@
60 CC = gcc
61 STD_HEADERS = stdhead.h head.h struct.h options_type.h message_type.h macros.h status_codes.h constants.h
62 OBJECT_FILES = server.o lib.o advertise.o parse.o leases.o reply.o
63 +CFLAGS = -g3
64
65 serv: $(OBJECT_FILES)
66 - $(CC) -g3 $(OBJECT_FILES) -o serv
67 + $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECT_FILES) -o serv
68
69 lib.o: lib.c lib.h $(STD_HEADERS)
70 - $(CC) -g3 -c lib.c -o lib.o
71 + $(CC) $(CFLAGS) -c lib.c -o lib.o
72
73 parse.o: parse.c parse.h $(STD_HEADERS)
74 - $(CC) -g3 -c parse.c -o parse.o
75 + $(CC) $(CFLAGS) -c parse.c -o parse.o
76
77 leases.o: leases.c leases.h $(STD_HEADERS)
78 - $(CC) -g3 -c leases.c -o leases.o
79 + $(CC) $(CFLAGS) -c leases.c -o leases.o
80
81 advertise.o: advertise.c advertise.h $(STD_HEADERS)
82 - $(CC) -g3 -c advertise.c -o advertise.o
83 + $(CC) $(CFLAGS) -c advertise.c -o advertise.o
84
85 reply.o: reply.c reply.h $(STD_HEADERS)
86 - $(CC) -g3 -c reply.c -o reply.o
87 + $(CC) $(CFLAGS) -c reply.c -o reply.o
88
89 server.o: server.c lib.h advertise.h reply.h leases.h parse.h $(STD_HEADERS)
90 - $(CC) -g3 -c server.c -o server.o
91 + $(CC) $(CFLAGS) -c server.c -o server.o
92
93 clean:
94 rm -f *.o serv