summaryrefslogtreecommitdiffstats
path: root/board/h2200/Makefile
blob: 26bf14483f1d21086ae528c9804742c3d03ffa3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
# h2200 Support
#
# Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com>
#
# SPDX-License-Identifier:	GPL-2.0+
#

include $(TOPDIR)/config.mk

LIB	= $(obj)lib$(BOARD).o

COBJS	:= h2200.o

SRCS	:= $(COBJS:.o=.c) h2200-header.S
OBJS	:= $(addprefix $(obj),$(COBJS))

all: $(LIB) $(obj)h2200-header.bin

$(obj)h2200-header.o: h2200-header.S
	$(CC) $(CFLAGS) -c -o $@ $<

$(obj)h2200-header.bin: $(obj)h2200-header.o
	$(OBJCOPY) -O binary $< $@

$(LIB):	$(obj).depend $(OBJS)
	$(call cmd_link_o_target, $(OBJS))

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################
OpenPOWER on IntegriCloud