Install the static libxbps library.
--HG-- extra : convert_revision : ff19e2c3f10ac330c4364d40b036ea0bd50b87a8
This commit is contained in:
parent
f0bbfad2ae
commit
d0d45c2ea9
1 changed files with 7 additions and 1 deletions
|
@ -6,13 +6,14 @@ MINOR = 0
|
|||
MICRO = 0
|
||||
LIBXBPS_SO = $(LIBXBPS).$(MAJOR).$(MINOR).$(MICRO)
|
||||
LIBXBPS = libxbps.so
|
||||
LIBXBPS_STATIC = libxbps.a
|
||||
LIBXBPS_LDFLAGS = -larchive -lprop -shared -Wl,-soname,$(LIBXBPS).$(MAJOR)
|
||||
|
||||
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 += sha256.o sortdeps.o unpack.o util.o
|
||||
|
||||
all: $(LIBXBPS)
|
||||
all: $(LIBXBPS) $(LIBXBPS_STATIC)
|
||||
.PHONY: all
|
||||
|
||||
$(LIBXBPS): $(OBJECTS)
|
||||
|
@ -20,8 +21,12 @@ $(LIBXBPS): $(OBJECTS)
|
|||
-ln -sf $(LIBXBPS_SO) $(LIBXBPS).$(MAJOR)
|
||||
-ln -sf $(LIBXBPS_SO) $(LIBXBPS)
|
||||
|
||||
$(LIBXBPS_STATIC): $(OBJECTS)
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
install: $(LIBXBPS)
|
||||
install -d $(LIBDIR)
|
||||
install -m 644 $(LIBXBPS_STATIC) $(LIBDIR)
|
||||
install -m 644 $(LIBXBPS_SO) $(LIBDIR)
|
||||
cp -a $(LIBXBPS) $(LIBDIR)
|
||||
cp -a $(LIBXBPS).$(MAJOR) $(LIBDIR)
|
||||
|
@ -31,6 +36,7 @@ clean: clean-lib clean-objs
|
|||
|
||||
clean-lib:
|
||||
-rm -f $(LIBXBPS)*
|
||||
-rm -f $(LIBXBPS_STATIC)
|
||||
|
||||
clean-objs:
|
||||
-rm -f *.o
|
||||
|
|
Loading…
Reference in a new issue