21 lines
554 B
Makefile
21 lines
554 B
Makefile
include $(TOPDIR)/config.mk
|
|
|
|
LIB = lib$(BOARD).a
|
|
|
|
OBJS = $(BOARD).o flash.o ../common/ar7240_flash.o ../common/ar7240_s26_phy.o
|
|
OBJS += ../common/watchdog.o
|
|
SOBJS = ../common/lowlevel_init.o
|
|
SOBJS += hornet_pll_init.o
|
|
|
|
$(LIB): .depend $(OBJS) $(SOBJS)
|
|
$(AR) crv $@ $(OBJS) $(SOBJS)
|
|
|
|
#########################################################################
|
|
|
|
.depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
|
|
$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@
|
|
|
|
sinclude .depend
|
|
|
|
#########################################################################
|