summaryrefslogtreecommitdiff
path: root/apps/plugins/plugins.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugins.make')
-rw-r--r--apps/plugins/plugins.make15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make
index 30cf26f621..3271c57303 100644
--- a/apps/plugins/plugins.make
+++ b/apps/plugins/plugins.make
@@ -8,7 +8,18 @@
8# 8#
9 9
10# single-file plugins: 10# single-file plugins:
11is_app_build =
12ifdef APP_TYPE
13ifneq ($(APP_TYPE),sdl-sim)
14 is_app_build = yes
15endif
16endif
17
18ifdef is_app_build
19PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES.app_build)
20else
11PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES) 21PLUGINS_SRC = $(call preprocess, $(APPSDIR)/plugins/SOURCES)
22endif
12OTHER_SRC += $(PLUGINS_SRC) 23OTHER_SRC += $(PLUGINS_SRC)
13ROCKS1 := $(PLUGINS_SRC:.c=.rock) 24ROCKS1 := $(PLUGINS_SRC:.c=.rock)
14ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1)) 25ROCKS1 := $(subst $(ROOTDIR),$(BUILDDIR),$(ROCKS1))
@@ -36,7 +47,11 @@ endif
36OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c 47OTHER_SRC += $(ROOTDIR)/apps/plugins/plugin_crt0.c
37PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o 48PLUGIN_CRT0 := $(BUILDDIR)/apps/plugins/plugin_crt0.o
38# multifile plugins (subdirs): 49# multifile plugins (subdirs):
50ifdef is_app_build
51PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS.app_build)
52else
39PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS) 53PLUGINSUBDIRS := $(call preprocess, $(APPSDIR)/plugins/SUBDIRS)
54endif
40 55
41# include <dir>.make from each subdir (yay!) 56# include <dir>.make from each subdir (yay!)
42$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make)) 57$(foreach dir,$(PLUGINSUBDIRS),$(eval include $(dir)/$(notdir $(dir)).make))