blob: 619e43f94db1637140508587c49db20772d83973 [file] [log] [blame]
wdenk64519362004-07-11 17:40:54 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2003-2006
wdenk64519362004-07-11 17:40:54 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk64519362004-07-11 17:40:54 +00006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
wdenk64519362004-07-11 17:40:54 +000011
Marian Balakowiczcfae4892006-10-03 20:28:38 +020012COBJS := $(BOARD).o cmd_stk52xx.o cmd_tb5200.o cam5200_flash.o
wdenk64519362004-07-11 17:40:54 +000013
Marian Balakowiczd62379d2006-09-01 19:49:50 +020014SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
15OBJS := $(addprefix $(obj),$(COBJS))
16SOBJS := $(addprefix $(obj),$(SOBJS))
17
18$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010019 $(call cmd_link_o_target, $(OBJS))
wdenk64519362004-07-11 17:40:54 +000020
Marian Balakowiczcfae4892006-10-03 20:28:38 +020021cam5200_flash.o: cam5200_flash.c
Kumar Galac1563952009-09-01 11:24:44 -050022 $(CC) $(CFLAGS) -c -o $@ $<
Marian Balakowiczcfae4892006-10-03 20:28:38 +020023
wdenk64519362004-07-11 17:40:54 +000024#########################################################################
25
Marian Balakowiczd62379d2006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenk64519362004-07-11 17:40:54 +000028
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenk64519362004-07-11 17:40:54 +000030
31#########################################################################