vp-build/lib/Makefile
Juan RP 1105f4f278 libxbps: add humanize_number.
--HG--
extra : convert_revision : 145c77f32b58f9013a677ebac3f8ed030a1c07a9
2008-12-22 07:00:01 +01:00

31 lines
596 B
Makefile

include ../vars.mk
# The shared library.
MAJOR = 0
MINOR = 0
MICRO = 0
LIBXBPS_SO = $(LIBXBPS).$(MAJOR).$(MINOR).$(MICRO)
LIBXBPS = libxbps.so
LIBXBPS_LDFLAGS = -lprop -shared -Wl,-soname,$(LIBXBPS).$(MAJOR)
all: $(LIBXBPS)
.PHONY: all
$(LIBXBPS): sha256.o plist.o humanize_number.o
$(CC) $(LIBXBPS_LDFLAGS) $^ -o $(LIBXBPS_SO)
-ln -sf $(LIBXBPS_SO) $(LIBXBPS).$(MAJOR)
-ln -sf $(LIBXBPS_SO) $(LIBXBPS)
install: $(LIBXBPS)
install -d $(LIBDIR)
install -m 644 $(LIBXBPS_SO) $(LIBDIR)
.PHONY: clean
clean: clean-lib clean-objs
clean-lib:
-rm -f $(LIBXBPS)*
clean-objs:
-rm -f *.o