Helmut Raiger | e5ecbb7 | 2011-10-27 01:31:15 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2009 HALE electronic <helmut.raiger@hale.at> |
| 3 | # (C) Copyright 2000-2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Helmut Raiger | e5ecbb7 | 2011-10-27 01:31:15 +0000 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)lib$(BOARD).o |
| 12 | COBJS := tt01.o |
| 13 | SOBJS := lowlevel_init.o |
| 14 | |
| 15 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 17 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 18 | |
| 19 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 20 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 21 | |
| 22 | clean: |
| 23 | rm -f $(SOBJS) $(OBJS) |
| 24 | |
| 25 | distclean: clean |
| 26 | rm -f $(LIB) core *.bak $(obj).depend |
| 27 | |
| 28 | ######################################################################### |
| 29 | |
| 30 | # defines $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |