wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 1 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 2 | # (C) Copyright 2002-2006 |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Yuri Tikhonov | bdfd302 | 2008-03-31 10:51:37 +0200 | [diff] [blame] | 10 | COBJS := $(COBJS-y) |
| 11 | AOBJS := $(AOBJS-y) |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 12 | SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c) |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 13 | OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS)) |
| 14 | LIB := $(obj)$(LIB) |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 15 | |
| 16 | CPPFLAGS += -I$(TOPDIR) |
| 17 | |
| 18 | all: $(LIB) |
| 19 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 20 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 21 | $(call cmd_link_o_target, $(OBJS)) |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 22 | |
| 23 | ######################################################################### |
| 24 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 25 | # defines $(obj).depend target |
| 26 | include $(SRCTREE)/rules.mk |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 27 | |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 28 | sinclude $(obj).depend |
wdenk | b6a6460 | 2002-08-27 17:36:41 +0000 | [diff] [blame] | 29 | |
| 30 | ######################################################################### |