Improved 'make install' (use BINDIR/LIBDIR, install shared objects)
This commit is contained in:
parent
6301cc5d38
commit
d94d4bafbb
16 changed files with 54 additions and 2 deletions
|
@ -6,3 +6,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done
|
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done
|
||||||
rm -f *~
|
rm -f *~
|
||||||
|
|
||||||
|
install:
|
||||||
|
for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d install; done
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,9 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.so *.d
|
rm -f *~ *.o *.so *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
if ls *.so >/dev/null 2>&1; then \
|
||||||
|
install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
|
||||||
|
cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
|
||||||
|
; fi
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -4,3 +4,6 @@ all:
|
||||||
clean:
|
clean:
|
||||||
for d in $(SUBDIRS); do make -C $$d clean; done
|
for d in $(SUBDIRS); do make -C $$d clean; done
|
||||||
rm -f *~ *.o *.d
|
rm -f *~ *.o *.d
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Nothing to be made.
|
||||||
|
|
|
@ -6,6 +6,9 @@ ifndef CFLAGS
|
||||||
CFLAGS = -MMD -O2 -Wall -g
|
CFLAGS = -MMD -O2 -Wall -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
export LIBDIR ?= /usr/local/lib/
|
||||||
|
export BINDIR ?= /usr/local/sbin/
|
||||||
|
|
||||||
CFLAGS += -I../src
|
CFLAGS += -I../src
|
||||||
CFLAGS += -I../src/crypto
|
CFLAGS += -I../src/crypto
|
||||||
CFLAGS += -I../src/utils
|
CFLAGS += -I../src/utils
|
||||||
|
@ -35,8 +38,9 @@ mkconfig:
|
||||||
echo CONFIG_WIRELESS_EXTENSION=y >> .config
|
echo CONFIG_WIRELESS_EXTENSION=y >> .config
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)/usr/local/sbin/
|
mkdir -p $(DESTDIR)$(BINDIR)
|
||||||
for i in $(ALL); do cp $$i $(DESTDIR)/usr/local/sbin/$$i; done
|
for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done
|
||||||
|
$(MAKE) -C ../src install
|
||||||
|
|
||||||
OBJS = config.o
|
OBJS = config.o
|
||||||
OBJS += ../src/utils/common.o
|
OBJS += ../src/utils/common.o
|
||||||
|
|
Loading…
Reference in a new issue