blob: bddf012a00ff7896f066ef14ff3e953f50fd32f1 [file] [log] [blame]
wdenkbc01dd52004-01-02 16:05:07 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2001-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de
wdenkbc01dd52004-01-02 16:05:07 +00004#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkbc01dd52004-01-02 16:05:07 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkbc01dd52004-01-02 16:05:07 +000012
Sebastien Carliera8d426f2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkbc01dd52004-01-02 16:05:07 +000014
David Müller379f3b72011-12-22 13:38:22 +010015COBJS := $(BOARD).o cmd_pati.o \
16 ../common/common_util.o
wdenkbc01dd52004-01-02 16:05:07 +000017
Marian Balakowiczd62379d2006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenkbc01dd52004-01-02 16:05:07 +000024
wdenkbc01dd52004-01-02 16:05:07 +000025#########################################################################
26
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenkbc01dd52004-01-02 16:05:07 +000029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenkbc01dd52004-01-02 16:05:07 +000031
32#########################################################################