treewide: drop executable file attrib for non-executable files
[oweals/u-boot_mod.git] / u-boot / cpu / mips / ar7240 / Makefile
1 include $(TOPDIR)/config.mk
2
3 LIB     = lib$(SOC).a
4
5 START   =
6 #OBJS   = ar7240_serial.o ag7240.o ar7240_flash.o meminit.o
7
8 OBJS    = meminit.o 
9
10 ifeq ($(BOARD), ap121)
11 OBJS    += hornet_serial.o
12 SOBJS   += hornet_ddr_init.o
13 else
14 OBJS    += ar7240_serial.o
15 endif
16
17 ifeq ($(BOARD), db12x)
18 OBJS    += ag934x.o
19 else
20 OBJS    += ag7240.o
21 endif
22
23 SOBJS   += 
24
25 all:    .depend $(START) $(LIB)
26
27 $(LIB): $(OBJS) $(SOBJS) $(OBJS-0)
28         $(AR) crv $@ $(OBJS) $(SOBJS)
29
30 #########################################################################
31
32 .depend:        Makefile $(START:.o=.S) $(OBJS:.o=.c)
33                 $(CC) -M $(CFLAGS) $(START:.o=.S) $(OBJS:.o=.c) > $@
34
35 sinclude .depend
36
37 #########################################################################