]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/wireless-tools/patches/wireless_tools.29-makefile.patch
Change file layout of the makefiles.
[people/amarx/ipfire-3.x.git] / pkgs / wireless-tools / patches / wireless_tools.29-makefile.patch
1 --- wireless_tools.29/Makefile.makefile 2007-04-19 19:42:23.000000000 -0400
2 +++ wireless_tools.29/Makefile 2007-05-22 17:31:53.000000000 -0400
3 @@ -101,12 +101,15 @@ ifdef BUILD_WE_ESSENTIAL
4 WEDEF_FLAG= -DWE_ESSENTIAL=y
5 endif
6
7 +ifndef OPT_FLAGS
8 + OPT_FLAGS=
9 +endif
10 # Other flags
11 CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
12 -Wpointer-arith -Wcast-qual -Winline -I.
13 #CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
14 DEPFLAGS=-MMD
15 -XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
16 +XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG) $(OPT_FLAGS)
17 PICFLAG=-fPIC
18
19 # Standard compilation targets
20 @@ -146,6 +149,7 @@ wireless.h:
21 # Compilation of the dynamic library
22 $(DYNAMIC): $(OBJS:.o=.so)
23 $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^
24 + ln -s $@ $(DYNAMIC_LINK)
25
26 # Compilation of the static library
27 $(STATIC): $(OBJS:.o=.so)