4 # Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com>
6 # SPDX-License-Identifier: GPL-2.0+
9 include $(TOPDIR)/config.mk
11 LIB = $(obj)lib$(BOARD).o
15 SRCS := $(COBJS:.o=.c) h2200-header.S
16 OBJS := $(addprefix $(obj),$(COBJS))
18 all: $(LIB) $(obj)h2200-header.bin
20 $(obj)h2200-header.o: h2200-header.S
21 $(CC) $(CFLAGS) -c -o $@ $<
23 $(obj)h2200-header.bin: $(obj)h2200-header.o
24 $(OBJCOPY) -O binary $< $@
26 $(LIB): $(obj).depend $(OBJS)
27 $(call cmd_link_o_target, $(OBJS))
29 #########################################################################
31 # defines $(obj).depend target
32 include $(SRCTREE)/rules.mk
34 sinclude $(obj).depend
36 #########################################################################