From daae2d3a4014d5d18c1939bae1e9349ff15f72ae Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 23 2016 21:00:21 +0000 Subject: project: support static-only and shared-only installed utility via symlinks. --- diff --git a/project/extras.mk b/project/extras.mk index caf26a3..f65c526 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -6,3 +6,17 @@ CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(shell $(CC) $(CFLAGS) -dumpmachine)\" src/driver/slbt_driver_ctx.o: CFLAGS += $(CFLAGS_MACHINE) src/driver/slbt_driver_ctx.lo: CFLAGS += $(CFLAGS_MACHINE) + +install-app-extras: app + +install-app-extras: + mkdir -p $(DESTDIR)$(BINDIR) + + rm -f bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp + rm -f bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp + + ln -s ./$(PACKAGE)$(OS_APP_SUFFIX) bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp + ln -s ./$(PACKAGE)$(OS_APP_SUFFIX) bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp + + mv bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(PACKAGE)-shared$(OS_APP_SUFFIX) + mv bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(PACKAGE)-static$(OS_APP_SUFFIX)