72474fe22fd148257a715d37c71f4fee1152af57
[oweals/u-boot_mod.git] / u-boot / board / ar7240 / db12x / Makefile
1 include $(TOPDIR)/config.mk
2
3 LIB     = lib$(BOARD).a
4
5 OBJS    = $(BOARD).o ../common/ar7240_pci.o ../common/spi_flash.o ../common/common.o
6
7 ifeq ($(ETH_CONFIG), _s17)
8 OBJS    += ../common/athrs17_phy.o
9 endif
10
11 ifeq ($(ETH_CONFIG), _s27)
12 OBJS    += ../common/athrs27_phy.o
13 endif
14
15 $(LIB): .depend $(OBJS) $(SOBJS)
16         $(AR) crv $@ $(OBJS) $(SOBJS)
17
18 #########################################################################
19
20 .depend:        Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
21                 $(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
22
23 sinclude .depend
24
25 #########################################################################