]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/hostap/hostap-daemon-0.3.7/makefile-cross.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / hostap / hostap-daemon-0.3.7 / makefile-cross.diff
1 --- Makefile.orig       2005-03-18 14:34:27.274376504 +0100
2 +++ Makefile    2005-03-18 14:35:56.609795456 +0100
3 @@ -1,7 +1,9 @@
4 -CC=gcc
5 +CC?=gcc
6  DIR_WPA_SUPPLICANT=.
7  DIR_HOSTAP=.
8  
9 +TARGET_PREFIX ?= /usr/local/bin/
10 +
11  ifndef CFLAGS
12  CFLAGS = -MMD -O2 -Wall -g
13  endif
14 @@ -170,10 +172,10 @@
15         fi
16  
17  install: all
18 -       for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
19 +       for i in $(ALL); do cp $$i $(TARGET_PREFIX)/$$i; done
20  
21  hostapd: $(OBJS)
22 -       $(CC) -o hostapd $(OBJS) $(LIBS)
23 +       $(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
24  
25  driver_conf.c: Makefile .config
26         rm -f driver_conf.c