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