source: freewrt/package/dhcp6/patches/patch-client_Makefile@ ecb5fbe

freewrt_1_0 freewrt_2_0
Last change on this file since ecb5fbe was ecb5fbe, checked in by Thorsten Glaser <tg@…>, 19 years ago

two examples of regenerated patches,
one "normal" (zlib), one with WRKSRC=WRKDIR (dhcp6)

note: if there are object files and stuff like that
in WRKSRC, it goes ka-boom ;) so always do it like this:

TOPDIR=../.. gmake V=99 prepare
# patch the files
TOPDIR=../.. gmake update-patches
# review the patch files
TOPDIR=../.. gmake V=99 compile install

git-svn-id: svn://www.freewrt.org/trunk/freewrt@405 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.9 KB
Line 
1$FreeWRT$
2--- w-dhcp6-1.0-1.orig/client/Makefile Sat Jun 28 23:21:17 2025
3+++ w-dhcp6-1.0-1/client/Makefile Tue Jul 25 10:37:06 2006
4@@ -1,42 +1,40 @@
5-
6-CC = gcc
7 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
8 OBJECT_FILES = client.o solicit.o clilib.o parse.o request.o decline.o renew.o rebind.o release.o
9 HEADER_FILES = solicit.h clilib.h parse.h request.h decline.h renew.h rebind.h release.h
10+IFLAGS = -I$(STAGING_DIR)/usr/include
11
12-
13 dhcpv6_client : dhcpv6_client.c cli
14- $(CC) -g3 dhcpv6_client.c -o dhcpv6_client
15+ $(CC) $(IFLAGS) dhcpv6_client.c -o dhcpv6_client
16
17 cli : $(OBJECT_FILES)
18- $(CC) -g3 $(OBJECT_FILES) -o cli -lncurses
19+ $(CC) $(IFLAGS) $(OBJECT_FILES) -o cli -L$(STAGING_DIR)/usr/lib -lncurses
20
21 client.o : client.c $(STD_HEADERS) $(HEADER_FILES)
22- $(CC) -g3 -c client.c -o client.o
23+ $(CC) $(IFLAGS) -c client.c -o client.o
24
25 release.o : release.c release.h clilib.h
26- $(CC) -g3 -c release.c -o release.o
27+ $(CC) $(IFLAGS) -c release.c -o release.o
28
29 rebind.o : rebind.c rebind.h clilib.h
30- $(CC) -g3 -c rebind.c -o rebind.o
31+ $(CC) $(IFLAGS) -c rebind.c -o rebind.o
32
33 renew.o : renew.c renew.h clilib.h
34- $(CC) -g3 -c renew.c -o renew.o
35+ $(CC) $(IFLAGS) -c renew.c -o renew.o
36
37 request.o : request.c request.h clilib.h
38- $(CC) -g3 -c request.c -o request.o
39+ $(CC) $(IFLAGS) -c request.c -o request.o
40
41 decline.o : decline.c decline.h clilib.h parse.h solicit.h
42- $(CC) -g3 -c decline.c -o decline.o
43+ $(CC) $(IFLAGS) -c decline.c -o decline.o
44
45 solicit.o : solicit.c solicit.h clilib.h parse.h
46- $(CC) -g3 -c solicit.c -o solicit.o
47+ $(CC) $(IFLAGS) -c solicit.c -o solicit.o
48
49 clilib.o : clilib.c clilib.h parse.h
50- $(CC) -g3 -c clilib.c -o clilib.o
51+ $(CC) $(IFLAGS) -c clilib.c -o clilib.o
52
53 parse.o : parse.c parse.h clilib.h
54- $(CC) -g3 -c parse.c -o parse.o
55+ $(CC) $(IFLAGS) -c parse.c -o parse.o
56
57 clean :
58 rm -f *.o cli dhcpv6_client
Note: See TracBrowser for help on using the repository browser.