From 5a8735fdc5905c5188a2e4b994c8aca70c5725cc Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Thu, 4 Aug 2011 00:12:11 +0200 Subject: [PATCH] Also standalone l0dables allowed --- firmware/applications/Makefile | 15 +++++++++++++++ firmware/applications/mkwrapper | 3 +++ 2 files changed, 18 insertions(+) diff --git a/firmware/applications/Makefile b/firmware/applications/Makefile index 82b69df..d8be88a 100644 --- a/firmware/applications/Makefile +++ b/firmware/applications/Makefile @@ -71,6 +71,21 @@ $(LOBJ): OBJS += $(LOBJ) 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)" ifndef TYPE TYPE=$(APP) diff --git a/firmware/applications/mkwrapper b/firmware/applications/mkwrapper index 4c65d03..7bb27fc 100755 --- a/firmware/applications/mkwrapper +++ b/firmware/applications/mkwrapper @@ -3,6 +3,7 @@ for a in $* ; do case $a in loadable_*) continue;; + l0dable_*) continue;; */*) continue;; esac base=${a%.o} @@ -16,6 +17,7 @@ echo "void wrapper(void){" for a in $* ; do case $a in loadable_*) continue;; + l0dable_*) continue;; */*) continue;; esac base=${a%.o} @@ -29,6 +31,7 @@ echo "void tick_wrapper(void){" for a in $* ; do case $a in loadable_*) continue;; + l0dable_*) continue;; */*) continue;; esac base=${a%.o}