libtool-cross 2.2.6[ab]: Drop legacy staging, taken from poky
[openembedded.git] / recipes / hostap / hostap-daemon-0.5.10 / makefile-cross.diff
blob43b275c67bf0bb44d3265ffe7b4414f676941a33
1 diff -urN hostapd-0.5.10.orig/Makefile hostapd-0.5.10/Makefile
2 --- hostapd-0.5.10.orig/Makefile 2008-02-20 01:08:54.000000000 +0100
3 +++ hostapd-0.5.10/Makefile 2008-04-28 17:01:36.000000000 +0200
4 @@ -1,10 +1,14 @@
5 +ifndef CC
6 CC=gcc
7 +endif
8 DIR_WPA_SUPPLICANT=.
10 ifndef CFLAGS
11 CFLAGS = -MMD -O2 -Wall -g
12 endif
14 +TARGET_PREFIX ?= /usr/local/bin/
16 # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
17 # a file (undefine it, if you want to save in binary size)
18 CFLAGS += -DHOSTAPD_DUMP_STATE
19 @@ -333,10 +337,10 @@
22 install: all
23 - for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
24 + for i in $(ALL); do cp $$i $(TARGET_PREFIX)/$$i; done
26 hostapd: $(OBJS)
27 - $(CC) -o hostapd $(OBJS) $(LIBS)
28 + $(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
30 driver_conf.c: Makefile .config
31 rm -f driver_conf.c