Max Horn d22ebd358d BUILD: Unify how MODULE_DIRS is computed for backends
This should help avoid situations where MODULE_DIRS is not set to a
complete list of build dirs (which causes troubles with the automatic
header dependency detection logic).

On the long run, we should replace the relevant code by a macro or also
use rules.mk for this (with yet another if/else case add to it).

svn-id: r51467
2010-07-29 13:03:21 +00:00

25 lines
496 B
Makefile

MODULE := backends/platform/ps2
MODULE_OBJS := \
DmaPipe.o \
Gs2dScreen.o \
irxboot.o \
ps2input.o \
ps2pad.o \
savefilemgr.o \
fileio.o \
asyncfio.o \
icon.o \
cd.o \
eecodyvdfs.o \
rpckbd.o \
systemps2.o \
ps2mutex.o \
ps2time.o \
ps2debug.o
# 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)))