summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 68ecf22998..23c911948d 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -31,6 +31,9 @@ AFLAGS += -small -relax
# Check if this is a kind of Recorder
ANYREC = $(findstring RECORDER, $(TARGET))
+# Check if this is an Ondio model
+ANYONDIO = $(findstring ONDIO, $(TARGET))
+
# scramble tool
TOOL = scramble
@@ -59,6 +62,12 @@ endif
ifeq ($(TARGET), -DARCHOS_RECORDERV2)
TOOL_OPT = -v2
endif
+ifeq ($(TARGET), -DARCHOS_ONDIOSP)
+ TOOL_OPT = -osp
+endif
+ifeq ($(TARGET), -DARCHOS_ONDIOFM)
+ TOOL_OPT = -ofm
+endif
ifeq ($(ANYREC), RECORDER)
@@ -73,6 +82,12 @@ ifeq ($(TARGET), -DARCHOS_PLAYER)
CFLAGS += -Iplayer
OUTNAME = archos.mod
else
+ifeq ($(ANYONDIO), ONDIO)
+# use the recorder tree for now
+ SRC += $(wildcard recorder/*.c)
+ CFLAGS += -Irecorder
+ OUTNAME = ajbrec.ajz
+else
# some kind of Neo
SRC += $(wildcard neo/*.c)
CFLAGS += -Ineo
@@ -80,6 +95,7 @@ else
TOOL_OPT = -neo
endif
endif
+endif
OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o)
@@ -223,10 +239,15 @@ else
ifeq ($(TARGET), -DARCHOS_PLAYER)
DEPDIRS += $(DEPS)/player
else
+ifeq ($(ANYONDIO), ONDIO)
+# use the recorder tree for now
+ DEPDIRS += $(DEPS)/recorder
+else
# some kind of Neo
DEPDIRS += $(DEPS)/neo
endif
endif
+endif
DIRS = $(subst $(DEPS),".",$(DEPDIRS))