altomaltes / cross / slibtool

Forked from cross/slibtool 2 years 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
8fab10
src/driver/slbt_driver_ctx.o:	CFLAGS += $(CFLAGS_MACHINE)
8fab10
src/driver/slbt_driver_ctx.lo:	CFLAGS += $(CFLAGS_MACHINE)
daae2d
daae2d
install-app-extras:	app
daae2d
daae2d
install-app-extras:
daae2d
	mkdir -p $(DESTDIR)$(BINDIR)
daae2d
daae2d
	rm -f bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp
daae2d
	rm -f bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp
daae2d
daae2d
	ln -s ./$(PACKAGE)$(OS_APP_SUFFIX) bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp
daae2d
	ln -s ./$(PACKAGE)$(OS_APP_SUFFIX) bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp
daae2d
daae2d
	mv bin/$(PACKAGE)-shared$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(PACKAGE)-shared$(OS_APP_SUFFIX)
daae2d
	mv bin/$(PACKAGE)-static$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(PACKAGE)-static$(OS_APP_SUFFIX)