Redfoxmoon / cross / slibtool

Forked from cross/slibtool 10 months ago
Clone

Blame project/extras.mk

9ca8c4
CFLAGS_SHARED_ATTR	+= -DSLBT_PRE_ALPHA -DSLBT_BUILD
9ca8c4
CFLAGS_STATIC_ATTR	+= -DSLBT_PRE_ALPHA -DSLBT_STATIC
9ca8c4
CFLAGS_APP_ATTR		+= -DSLBT_APP
8fab10
8fab10
CFLAGS_MACHINE		:= -DSLBT_MACHINE=\"$(shell $(CC) $(CFLAGS) -dumpmachine)\"
8fab10
741f6f
src/driver/slbt_driver_ctx.o:	version.tag
741f6f
src/driver/slbt_driver_ctx.lo:	version.tag
741f6f
8fab10
src/driver/slbt_driver_ctx.o:	CFLAGS += $(CFLAGS_MACHINE)
8fab10
src/driver/slbt_driver_ctx.lo:	CFLAGS += $(CFLAGS_MACHINE)
daae2d
99b63d
install-app-extras:	DBGNAME  = dlibtool
60f67c
install-app-extras:	LEGABITS = clibtool
daae2d
daae2d
install-app-extras:
daae2d
	mkdir -p $(DESTDIR)$(BINDIR)
daae2d
1fbd10
	rm -f bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp
1fbd10
	rm -f bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp
daae2d
f7acc1
	rm -f bin/$(DBGNAME)$(OS_APP_SUFFIX).tmp
f7acc1
	rm -f bin/$(DBGNAME)-shared$(OS_APP_SUFFIX).tmp
f7acc1
	rm -f bin/$(DBGNAME)-static$(OS_APP_SUFFIX).tmp
f7acc1
60f67c
	rm -f bin/$(LEGABITS)$(OS_APP_SUFFIX).tmp
60f67c
	rm -f bin/$(LEGABITS)-shared$(OS_APP_SUFFIX).tmp
60f67c
	rm -f bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp
60f67c
1fbd10
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp
1fbd10
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp
daae2d
f7acc1
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(DBGNAME)$(OS_APP_SUFFIX).tmp
f7acc1
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(DBGNAME)-shared$(OS_APP_SUFFIX).tmp
f7acc1
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(DBGNAME)-static$(OS_APP_SUFFIX).tmp
f7acc1
60f67c
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(LEGABITS)$(OS_APP_SUFFIX).tmp
60f67c
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(LEGABITS)-shared$(OS_APP_SUFFIX).tmp
60f67c
	ln -s ./$(NICKNAME)$(OS_APP_SUFFIX) bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp
60f67c
1fbd10
	mv bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME)-shared$(OS_APP_SUFFIX)
1fbd10
	mv bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(NICKNAME)-static$(OS_APP_SUFFIX)
60f67c
f7acc1
	mv bin/$(DBGNAME)$(OS_APP_SUFFIX).tmp         $(DESTDIR)$(BINDIR)/$(DBGNAME)$(OS_APP_SUFFIX)
f7acc1
	mv bin/$(DBGNAME)-shared$(OS_APP_SUFFIX).tmp  $(DESTDIR)$(BINDIR)/$(DBGNAME)-shared$(OS_APP_SUFFIX)
f7acc1
	mv bin/$(DBGNAME)-static$(OS_APP_SUFFIX).tmp  $(DESTDIR)$(BINDIR)/$(DBGNAME)-static$(OS_APP_SUFFIX)
f7acc1
99b63d
	mv bin/$(LEGABITS)$(OS_APP_SUFFIX).tmp        $(DESTDIR)$(BINDIR)/$(LEGABITS)$(OS_APP_SUFFIX)
60f67c
	mv bin/$(LEGABITS)-shared$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(LEGABITS)-shared$(OS_APP_SUFFIX)
60f67c
	mv bin/$(LEGABITS)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(LEGABITS)-static$(OS_APP_SUFFIX)