summaryrefslogtreecommitdiff
path: root/packages/hostap/hostap-daemon/makefile-cross.diff
diff options
context:
space:
mode:
Diffstat (limited to 'packages/hostap/hostap-daemon/makefile-cross.diff')
-rw-r--r--packages/hostap/hostap-daemon/makefile-cross.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/hostap/hostap-daemon/makefile-cross.diff b/packages/hostap/hostap-daemon/makefile-cross.diff
new file mode 100644
index 0000000000..25d2ca34bb
--- /dev/null
+++ b/packages/hostap/hostap-daemon/makefile-cross.diff
@@ -0,0 +1,26 @@
+--- Makefile.orig 2005-03-18 14:34:27.274376504 +0100
++++ Makefile 2005-03-18 14:35:56.609795456 +0100
+@@ -1,7 +1,9 @@
+-CC=gcc
++CC?=gcc
+ DIR_WPA_SUPPLICANT=.
+ DIR_HOSTAP=.
+
++TARGET_PREFIX ?= /usr/local/bin/
++
+ ifndef CFLAGS
+ CFLAGS = -MMD -O2 -Wall -g
+ endif
+@@ -170,10 +172,10 @@
+ fi
+
+ install: all
+- for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
++ for i in $(ALL); do cp $$i $(TARGET_PREFIX)/$$i; done
+
+ hostapd: $(OBJS)
+- $(CC) -o hostapd $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
+
+ driver_conf.c: Makefile .config
+ rm -f driver_conf.c