Minor change for cross compiling
Smith, Bruce
bsmith
Wed Jul 18 17:19:38 PDT 2007
I compiled this for a power pc machine and thought it could use a couple
of additions for easy integration. For what its worth, here it is...
Cheers,
Bruce
diff -Naur hostapd.orig/Makefile hostapd-0.5.8/Makefile
--- hostapd.orig/Makefile 2007-05-28 19:08:50.000000000 -0700
+++ hostapd-0.5.8/Makefile 2007-07-18 17:00:21.000000000 -0700
@@ -1,6 +1,11 @@
-CC=gcc
+CC=$(CROSS_COMPILE)gcc
DIR_WPA_SUPPLICANT=.
+#where to install the software
+ifndef PREFIX
+PREFIX = /usr/local/bin
+endif
+
ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
@@ -333,7 +340,7 @@
fi
install: all
- for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
+ for i in $(ALL); do cp $$i $(PREFIX)/$$i; done
hostapd: $(OBJS)
$(CC) -o hostapd $(OBJS) $(LIBS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20070718/240b8b01/attachment.htm
More information about the Hostap
mailing list