diff options
Diffstat (limited to 'backends/platform/gp2x/module.mk')
-rw-r--r-- | backends/platform/gp2x/module.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/backends/platform/gp2x/module.mk b/backends/platform/gp2x/module.mk index 362611da9c..837ad99d7b 100644 --- a/backends/platform/gp2x/module.mk +++ b/backends/platform/gp2x/module.mk @@ -6,8 +6,7 @@ MODULE_OBJS := \ gp2x-mem.o \ gp2x.o -MODULE_DIRS += \ - backends/platform/gp2x/ - -# We don't use the rules.mk here on purpose -OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS) +# We don't use rules.mk but rather manually update OBJS and MODULE_DIRS. +MODULE_OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) +OBJS := $(MODULE_OBJS) $(OBJS) +MODULE_DIRS += $(sort $(dir $(MODULE_OBJS))) |