aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorDaniel Mierswa <impulze@impulze.org>2009-02-15 12:22:50 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-15 13:14:03 (GMT)
commitf2b9939e51cdc83f0f1bc9e01704a5bf3b105696 (patch)
tree4854b49a15f8bb12a66e9cdae57ac85f86822109 /wpa_supplicant
parent160e9e1de483a1c89b16a56a96eef5b37e3826ed (diff)
downloadhostap-06-f2b9939e51cdc83f0f1bc9e01704a5bf3b105696.zip
hostap-06-f2b9939e51cdc83f0f1bc9e01704a5bf3b105696.tar.gz
hostap-06-f2b9939e51cdc83f0f1bc9e01704a5bf3b105696.tar.bz2
Improved 'make install' (use BINDIR/LIBDIR, install shared objects)
(cherry picked from commit d94d4bafbb43699d323d6f6e3e404000b3f0a7b4)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 11ad13a..0a50cee 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -6,6 +6,9 @@ ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
+export LIBDIR ?= /usr/local/lib/
+export BINDIR ?= /usr/local/sbin/
+
CFLAGS += -I../src
CFLAGS += -I../src/crypto
CFLAGS += -I../src/utils
@@ -35,8 +38,9 @@ mkconfig:
echo CONFIG_WIRELESS_EXTENSION=y >> .config
install: all
- mkdir -p $(DESTDIR)/usr/local/sbin/
- for i in $(ALL); do cp $$i $(DESTDIR)/usr/local/sbin/$$i; done
+ mkdir -p $(DESTDIR)$(BINDIR)
+ for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done
+ $(MAKE) -C ../src install
OBJS = config.o
OBJS += ../src/utils/common.o