1
0
This repository has been archived on 2024-07-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2022-11-27 10:16:14 +00:00

40 lines
729 B
Makefile

include $(TOPDIR)/config.mk
LIB = $(obj)lib$(SOC).a
COBJS-y = meminit.o
ifeq ($(BOARD), ap121)
COBJS-y += hornet_serial.o
SOBJS += hornet_ddr_init.o
else
COBJS-y += ar7240_serial.o
endif
ifneq ($(BUILD_EMU), )
COBJS-y += hornet_ag7240.o
else
ifneq ($(CONFIG_SOC_AG934X),)
COBJS-y += ag934x.o
else
COBJS-y += ag7240.o
endif
endif
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
all: $(obj).depend $(LIB)
$(LIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
#########################################################################
# defines $(obj).depend target
include $(SRCTREE)/rules.mk
sinclude $(obj).depend
#########################################################################