diff options
author | Daniel Mierswa <impulze@impulze.org> | 2009-02-15 14:22:50 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-02-15 14:22:50 +0200 |
commit | d94d4bafbb43699d323d6f6e3e404000b3f0a7b4 (patch) | |
tree | 003511ebea00f48463bf04f9f98d5c7521533a8c /wpa_supplicant | |
parent | 6301cc5d385ae4e3b4aa74ca863e034b8d91c326 (diff) | |
download | external_wpa_supplicant_8_ti-d94d4bafbb43699d323d6f6e3e404000b3f0a7b4.zip external_wpa_supplicant_8_ti-d94d4bafbb43699d323d6f6e3e404000b3f0a7b4.tar.gz external_wpa_supplicant_8_ti-d94d4bafbb43699d323d6f6e3e404000b3f0a7b4.tar.bz2 |
Improved 'make install' (use BINDIR/LIBDIR, install shared objects)
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index d4ad424..47d8489 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 |