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
11 CFLAGS = -MMD -O2 -Wall -g
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
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
27 - $(CC) -o hostapd $(OBJS) $(LIBS)
28 + $(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
30 driver_conf.c: Makefile .config