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