Fix up some issues for building shared/static bins.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091030162345-2so2ejfvvqr29s7v
This commit is contained in:
parent
4e83deb0cc
commit
5b6724b550
24
Makefile
24
Makefile
@ -4,27 +4,9 @@ SUBDIRS = lib bin
|
||||
|
||||
.PHONY: all
|
||||
all:
|
||||
@echo
|
||||
@echo "********************************"
|
||||
@echo "*** Building shared libxbps ***"
|
||||
@echo "********************************"
|
||||
@echo
|
||||
$(MAKE) -C lib
|
||||
@echo
|
||||
@echo "********************************"
|
||||
@echo "*** Building shared binaries ***"
|
||||
@echo "********************************"
|
||||
@echo
|
||||
$(MAKE) -C bin
|
||||
@echo
|
||||
@echo "********************************"
|
||||
@echo "*** Building static binaries ***"
|
||||
@echo "********************************"
|
||||
@echo
|
||||
$(MAKE) -C lib clean
|
||||
$(MAKE) -C bin clean
|
||||
$(MAKE) STATIC=1 -C lib
|
||||
$(MAKE) STATIC=1 -C bin
|
||||
for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir; \
|
||||
done
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
|
@ -44,7 +44,9 @@ libxbps.a: $(OBJS)
|
||||
.PHONY: install
|
||||
install: all
|
||||
install -d $(LIBDIR)
|
||||
ifdef STATIC
|
||||
install -m 644 libxbps.a $(LIBDIR)
|
||||
endif
|
||||
install -m 644 $(LIBXBPS_SHLIB) $(LIBDIR)
|
||||
cp -a libxbps.so $(LIBDIR)
|
||||
cp -a libxbps.so.$(LIBMAJOR) $(LIBDIR)
|
||||
|
Loading…
Reference in New Issue
Block a user