List Info

Thread: Minor change for cross compiling




Minor change for cross compiling
user name
2007-07-18 19:19:38

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)

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )