Also standalone l0dables allowed

This commit is contained in:
Stefan `Sec` Zehl 2011-08-04 00:12:11 +02:00
parent d490211d92
commit 5a8735fdc5
2 changed files with 18 additions and 0 deletions

View File

@ -71,6 +71,21 @@ $(LOBJ):
OBJS += $(LOBJ) OBJS += $(LOBJ)
endif endif
ifeq "$(APP)" "l0dable"
ifndef LAPP
LAPP=blinktest
endif
LSRC=../l0dable/$(LAPP).c
LOBJ=l0dable_$(LAPP).o
.PHONY: $(LOBJ)
$(LOBJ):
$(CC) $(CFLAGS) -o $@ $(LSRC)
OBJS += $(LOBJ)
endif
ifeq "$(wildcard $(APP))" "$(APP)" ifeq "$(wildcard $(APP))" "$(APP)"
ifndef TYPE ifndef TYPE
TYPE=$(APP) TYPE=$(APP)

View File

@ -3,6 +3,7 @@
for a in $* ; do for a in $* ; do
case $a in case $a in
loadable_*) continue;; loadable_*) continue;;
l0dable_*) continue;;
*/*) continue;; */*) continue;;
esac esac
base=${a%.o} base=${a%.o}
@ -16,6 +17,7 @@ echo "void wrapper(void){"
for a in $* ; do for a in $* ; do
case $a in case $a in
loadable_*) continue;; loadable_*) continue;;
l0dable_*) continue;;
*/*) continue;; */*) continue;;
esac esac
base=${a%.o} base=${a%.o}
@ -29,6 +31,7 @@ echo "void tick_wrapper(void){"
for a in $* ; do for a in $* ; do
case $a in case $a in
loadable_*) continue;; loadable_*) continue;;
l0dable_*) continue;;
*/*) continue;; */*) continue;;
esac esac
base=${a%.o} base=${a%.o}