mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -45,6 +45,7 @@
|
|
|
|
OBJECTS=unibilium.lo uninames.lo uniutil.lo
|
|
LIBRARY=libunibilium.la
|
|
+LIBSTATIC=libunibilium.a
|
|
|
|
PODS=$(wildcard doc/*.pod)
|
|
MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3.gz)))
|
|
@@ -54,7 +55,7 @@
|
|
TESTS=$(wildcard t/*.c)
|
|
|
|
.PHONY: all
|
|
-all: $(LIBRARY) build-man build-tools build-test
|
|
+all: $(LIBRARY) $(LIBSTATIC) build-man build-tools build-test
|
|
|
|
%.lo: %.c unibilium.h
|
|
$(LIBTOOL) --mode=compile --tag=CC $(CC) -I. -Wall -std=c99 $(CFLAGS) $(CFLAGS_DEBUG) -o $@ -c $<
|
|
@@ -65,6 +66,9 @@
|
|
$(LIBRARY): $(OBJECTS)
|
|
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -rpath '$(LIBDIR)' -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -o $@ $^
|
|
|
|
+$(LIBSTATIC): $(OBJECTS)
|
|
+ $(LIBTOOL) --mode=link $(CC) -o $@ $^
|
|
+
|
|
tools/%: $(LIBRARY) tools/%.lo
|
|
$(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
@@ -102,6 +106,7 @@
|
|
install-lib:
|
|
mkdir -p '$(DESTDIR)$(LIBDIR)'
|
|
$(LIBTOOL) --mode=install cp $(LIBRARY) '$(DESTDIR)$(LIBDIR)/$(LIBRARY)'
|
|
+ $(LIBTOOL) --mode=install install $(LIBSTATIC) $(DESTDIR)$(LIBDIR)/$(LIBSTATIC)
|
|
|
|
.PHONY: install-man
|
|
install-man: build-man
|