1# 2# h2200 Support 3# 4# Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com> 5# 6# SPDX-License-Identifier: GPL-2.0+ 7# 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######################################################################### 37