Install the static libxbps library.
--HG-- extra : convert_revision : ff19e2c3f10ac330c4364d40b036ea0bd50b87a8
This commit is contained in:
@@ -6,13 +6,14 @@ MINOR = 0
|
|||||||
MICRO = 0
|
MICRO = 0
|
||||||
LIBXBPS_SO = $(LIBXBPS).$(MAJOR).$(MINOR).$(MICRO)
|
LIBXBPS_SO = $(LIBXBPS).$(MAJOR).$(MINOR).$(MICRO)
|
||||||
LIBXBPS = libxbps.so
|
LIBXBPS = libxbps.so
|
||||||
|
LIBXBPS_STATIC = libxbps.a
|
||||||
LIBXBPS_LDFLAGS = -larchive -lprop -shared -Wl,-soname,$(LIBXBPS).$(MAJOR)
|
LIBXBPS_LDFLAGS = -larchive -lprop -shared -Wl,-soname,$(LIBXBPS).$(MAJOR)
|
||||||
|
|
||||||
OBJECTS = cmpver.o depends.o fexec.o findpkg.o humanize_number.o
|
OBJECTS = cmpver.o depends.o fexec.o findpkg.o humanize_number.o
|
||||||
OBJECTS += orphans.o plist.o register.o remove.o repository.o requiredby.o
|
OBJECTS += orphans.o plist.o register.o remove.o repository.o requiredby.o
|
||||||
OBJECTS += sha256.o sortdeps.o unpack.o util.o
|
OBJECTS += sha256.o sortdeps.o unpack.o util.o
|
||||||
|
|
||||||
all: $(LIBXBPS)
|
all: $(LIBXBPS) $(LIBXBPS_STATIC)
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
$(LIBXBPS): $(OBJECTS)
|
$(LIBXBPS): $(OBJECTS)
|
||||||
@@ -20,8 +21,12 @@ $(LIBXBPS): $(OBJECTS)
|
|||||||
-ln -sf $(LIBXBPS_SO) $(LIBXBPS).$(MAJOR)
|
-ln -sf $(LIBXBPS_SO) $(LIBXBPS).$(MAJOR)
|
||||||
-ln -sf $(LIBXBPS_SO) $(LIBXBPS)
|
-ln -sf $(LIBXBPS_SO) $(LIBXBPS)
|
||||||
|
|
||||||
|
$(LIBXBPS_STATIC): $(OBJECTS)
|
||||||
|
$(AR) rcs $@ $^
|
||||||
|
|
||||||
install: $(LIBXBPS)
|
install: $(LIBXBPS)
|
||||||
install -d $(LIBDIR)
|
install -d $(LIBDIR)
|
||||||
|
install -m 644 $(LIBXBPS_STATIC) $(LIBDIR)
|
||||||
install -m 644 $(LIBXBPS_SO) $(LIBDIR)
|
install -m 644 $(LIBXBPS_SO) $(LIBDIR)
|
||||||
cp -a $(LIBXBPS) $(LIBDIR)
|
cp -a $(LIBXBPS) $(LIBDIR)
|
||||||
cp -a $(LIBXBPS).$(MAJOR) $(LIBDIR)
|
cp -a $(LIBXBPS).$(MAJOR) $(LIBDIR)
|
||||||
@@ -31,6 +36,7 @@ clean: clean-lib clean-objs
|
|||||||
|
|
||||||
clean-lib:
|
clean-lib:
|
||||||
-rm -f $(LIBXBPS)*
|
-rm -f $(LIBXBPS)*
|
||||||
|
-rm -f $(LIBXBPS_STATIC)
|
||||||
|
|
||||||
clean-objs:
|
clean-objs:
|
||||||
-rm -f *.o
|
-rm -f *.o
|
||||||
|
|||||||
Reference in New Issue
Block a user