1 libcap: split install into install-shared/install-static
3 In order to support static only builds, split the install target into
4 install-shared and install-static targets.
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Index: b/libcap/Makefile
9 ===================================================================
13 cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
14 $(CC) $(CFLAGS) $(IPATH) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
17 +install: install-shared install-static
20 mkdir -p -m 0755 $(INCDIR)/sys
21 install -m 0644 include/sys/capability.h $(INCDIR)/sys
22 mkdir -p -m 0755 $(LIBDIR)
24 +install-static: install-common
25 install -m 0644 $(STALIBNAME) $(LIBDIR)/$(STALIBNAME)
27 +install-shared: install-common
28 install -m 0755 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME)
29 ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME)
30 ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME)