]> git.sur5r.net Git - u-boot/blob - board/freescale/p1023rds/Makefile
powerpc/85xx: Add basic support for P1023RDS board
[u-boot] / board / freescale / p1023rds / Makefile
1 #
2 # Copyright 2010-2011 Freescale Semiconductor, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the Free
6 # Software Foundation; either version 2 of the License, or (at your option)
7 # any later version.
8 #
9
10 include $(TOPDIR)/config.mk
11
12 LIB     = $(obj)lib$(BOARD).o
13
14 COBJS-y += $(BOARD).o
15 COBJS-y += law.o
16 COBJS-y += tlb.o
17
18 SRCS    := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19 OBJS    := $(addprefix $(obj),$(COBJS-y))
20 SOBJS   := $(addprefix $(obj),$(SOBJS))
21
22 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
23         $(AR) $(ARFLAGS) $@ $(OBJS)
24
25 clean:
26         rm -f $(OBJS) $(SOBJS)
27
28 distclean:      clean
29         rm -f $(LIB) core *.bak .depend
30
31 #########################################################################
32
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
35
36 sinclude $(obj).depend
37
38 #########################################################################