aboutsummaryrefslogtreecommitdiffstats
path: root/x-loader/drivers/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x-loader/drivers/Makefile')
-rw-r--r--x-loader/drivers/Makefile38
1 files changed, 20 insertions, 18 deletions
diff --git a/x-loader/drivers/Makefile b/x-loader/drivers/Makefile
index c581817..da3feda 100644
--- a/x-loader/drivers/Makefile
+++ b/x-loader/drivers/Makefile
@@ -25,58 +25,60 @@ include $(TOPDIR)/config.mk
# CFLAGS += -DET_DEBUG -DDEBUG
-LIB = libdrivers.a
-OBJS = serial.o ns16550.o onenand.o omap24xx_i2c.o
+LIB = $(obj)libdrivers.a
+COBJS = serial.o ns16550.o omap24xx_i2c.o
ifeq ($(BOARD), omap3430sdp)
-OBJS += k9f1g08r0a.o
+COBJS += k9f1g08r0a.o
endif
ifeq ($(BOARD), omap3430labrador)
-OBJS += k9f1g08r0a.o
+COBJS += k9f1g08r0a.o
endif
ifeq ($(BOARD), omap3530beagle)
-OBJS += k9f1g08r0a.o
+COBJS += k9f1g08r0a.o
+endif
+
+ifeq ($(BOARD), omap3530gta04)
+COBJS += k9f1g08r0a.o
endif
ifeq ($(BOARD), omap3evm)
-OBJS += k9f1g08r0a.o
+COBJS += k9f1g08r0a.o onenand.o
endif
ifeq ($(BOARD), overo)
-OBJS += k9f1g08r0a.o
+COBJS += k9f1g08r0a.o
endif
ifeq ($(BOARD), omap2420h4)
-OBJS += k9k1216.o
+COBJS += k9k1216.o
endif
ifeq ($(BOARD), omap2430sdp)
-OBJS += k9k1216.o
-endif
-
-ifeq ($(BOARD), omap1710h3)
-OBJS += k9f5616.o
+COBJS += k9k1216.o
endif
-
## Disabled for now:
## cs8900.o ct69000.o dataflash.o dc2114x.o ds1722.o \
## lan91c96.o mw_eeprom.o natsemi.o \
## smc91111.o smiLynxEM.o spi_eeprom.o sym53c8xx.o \
##
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
all: $(LIB)
-$(LIB): $(OBJS)
+$(LIB): $(obj).depend $(OBJS)
$(AR) crv $@ $(OBJS)
#########################################################################
-.depend: Makefile $(OBJS:.o=.c)
- $(CC) -M $(CFLAGS) $(OBJS:.o=.c) > $@
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
-sinclude .depend
+sinclude $(obj).depend
#########################################################################