blob: 26bf14483f1d21086ae528c9804742c3d03ffa3f [file] [log] [blame]
Łukasz Dałek34cda7a2012-10-15 07:46:54 +00001#
2# h2200 Support
3#
4# Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com>
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Łukasz Dałek34cda7a2012-10-15 07:46:54 +00007#
8
9include $(TOPDIR)/config.mk
10
11LIB = $(obj)lib$(BOARD).o
12
13COBJS := h2200.o
14
15SRCS := $(COBJS:.o=.c) h2200-header.S
16OBJS := $(addprefix $(obj),$(COBJS))
17
18all: $(LIB) $(obj)h2200-header.bin
19
20$(obj)h2200-header.o: h2200-header.S
21 $(CC) $(CFLAGS) -c -o $@ $<
22
23$(obj)h2200-header.bin: $(obj)h2200-header.o
24 $(OBJCOPY) -O binary $< $@
25
26$(LIB): $(obj).depend $(OBJS)
27 $(call cmd_link_o_target, $(OBJS))
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################