Files
wireless-tools/wireless_tools.dif

24 lines
710 B
Plaintext

Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -93,7 +93,7 @@ endif
# Other flags
CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
- -Wpointer-arith -Wcast-qual -Winline -I.
+ -Wpointer-arith -Wcast-qual -Winline -I. $(RPM_OPT_FLAGS) -fno-strict-aliasing
#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
DEPFLAGS=-MMD
XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG)
@@ -109,6 +109,9 @@ all:: $(IWLIB) $(PROGS)
%.so: %.c wireless.h
$(CC) $(XCFLAGS) $(PICFLAG) -c -o $@ $<
+iwlib.o: iwlib.c
+ $(CC) $(XCFLAGS) $(PICFLAG) -c -o $@ $<
+
iwconfig: iwconfig.o $(IWLIB)
iwlist: iwlist.o $(IWLIB)