diff options
author | midipix <writeonce@midipix.org> | 2018-08-13 20:41:21 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-13 20:41:21 -0400 |
commit | 1016272717b9c992f66f56667e767f884f0645d3 (patch) | |
tree | b08795f64f50a7e3b4b50ca61b3da72f9e6bf631 | |
parent | 0263aa24fad4022beae5d3bc80a284750365e4f7 (diff) | |
download | slibtool-1016272717b9c992f66f56667e767f884f0645d3.tar.bz2 slibtool-1016272717b9c992f66f56667e767f884f0645d3.tar.xz |
utility: convenience symlinks: added rclibtool, rdlibtool, and rdclibtool.
-rw-r--r-- | project/extras.mk | 12 | ||||
-rw-r--r-- | src/driver/slbt_amain.c | 16 |
2 files changed, 28 insertions, 0 deletions
diff --git a/project/extras.mk b/project/extras.mk index b69dfbc..659d2dd 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -13,6 +13,9 @@ src/driver/slbt_driver_ctx.lo: CFLAGS += $(CFLAGS_MACHINE) install-app-extras: DBGNAME = dlibtool install-app-extras: LEGABITS = clibtool install-app-extras: RAPUNZEL = rlibtool +install-app-extras: RAPUNCEL = rclibtool +install-app-extras: RAPUNDEL = rdlibtool +install-app-extras: RAPUNJEL = rdclibtool install-app-extras: mkdir -p $(DESTDIR)$(BINDIR) @@ -29,6 +32,9 @@ install-app-extras: rm -f bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp rm -f bin/$(RAPUNZEL)$(OS_APP_SUFFIX).tmp + rm -f bin/$(RAPUNCEL)$(OS_APP_SUFFIX).tmp + rm -f bin/$(RAPUNDEL)$(OS_APP_SUFFIX).tmp + rm -f bin/$(RAPUNJEL)$(OS_APP_SUFFIX).tmp ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp @@ -42,6 +48,9 @@ install-app-extras: ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(RAPUNZEL)$(OS_APP_SUFFIX).tmp + ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(RAPUNCEL)$(OS_APP_SUFFIX).tmp + ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(RAPUNDEL)$(OS_APP_SUFFIX).tmp + ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(RAPUNJEL)$(OS_APP_SUFFIX).tmp mv bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME)-shared$(OS_APP_SUFFIX) mv bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME)-static$(OS_APP_SUFFIX) @@ -55,3 +64,6 @@ install-app-extras: mv bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(LEGABITS)-static$(OS_APP_SUFFIX) mv bin/$(RAPUNZEL)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(RAPUNZEL)$(OS_APP_SUFFIX) + mv bin/$(RAPUNCEL)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(RAPUNCEL)$(OS_APP_SUFFIX) + mv bin/$(RAPUNDEL)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(RAPUNDEL)$(OS_APP_SUFFIX) + mv bin/$(RAPUNJEL)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(RAPUNJEL)$(OS_APP_SUFFIX) diff --git a/src/driver/slbt_amain.c b/src/driver/slbt_amain.c index c060021..2e59849 100644 --- a/src/driver/slbt_amain.c +++ b/src/driver/slbt_amain.c @@ -158,6 +158,22 @@ int slbt_main(char ** argv, char ** envp, const struct slbt_fd_ctx * fdctx) if (!(strcmp(program,"rlibtool"))) flags |= SLBT_DRIVER_HEURISTICS; + /* heuristics + legabits */ + if (!(strcmp(program,"rclibtool"))) + flags |= (SLBT_DRIVER_HEURISTICS + | SLBT_DRIVER_LEGABITS); + + /* heuristics + debug */ + if (!(strcmp(program,"rdlibtool"))) + flags |= (SLBT_DRIVER_HEURISTICS + | SLBT_DRIVER_DEBUG); + + /* heuristics + debug + legabits */ + if (!(strcmp(program,"rdclibtool"))) + flags |= (SLBT_DRIVER_HEURISTICS + | SLBT_DRIVER_DEBUG + | SLBT_DRIVER_LEGABITS); + /* driver context */ if ((ret = slbt_get_driver_ctx(argv,envp,flags,fdctx,&dctx))) return (ret == SLBT_USAGE) |