orbea / cross / slibtool

Forked from cross/slibtool 3 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
1fbd10
	rm -f bin/$(NICKNAME)-shared$(OS_APP_SUFFIX).tmp
1fbd10
	rm -f bin/$(NICKNAME)-static$(OS_APP_SUFFIX).tmp
daae2d
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
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)