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

74 lines
1.4 KiB
Makefile

include $(TOPDIR)/config.mk
LIB = lib$(BOARD).a
OBJS = \
$(BOARD).o \
flash.o \
../common/init-955x.o \
../common/serial.o \
../common/ath_pci.o \
../common/qca-eth-955x.o
ifeq ($(BOOT_FROM_NAND),1)
OBJS += ../common/ath_nand.o ../../../drivers/nand/nand_ids.o
endif
ifeq ($(ATH_DUAL_FLASH),1)
OBJS += ../common/ath_nand.o ../../../drivers/nand/nand_ids.o
endif
ifndef BOOT_FROM_NAND
OBJS += ../common/ath_flash.o
endif
ifeq ($(ETH_CONFIG2), _s17)
OBJS += ../common/athrs17_phy.o
endif
ifeq ($(ETH_CONFIG), _s17)
OBJS += ../common/athrs17_phy.o
endif
ifeq ($(ETH_CONFIG2), _s17_hwaccel)
OBJS += ../common/athrs17_phy.o
endif
ifeq ($(ETH_CONFIG), _s17_hwaccel)
OBJS += ../common/athrs17_phy.o
endif
ifeq ($(ETH_CONFIG), _s16)
OBJS += ../common/athrs16_phy.o
endif
ifeq ($(ETH_CONFIG), _f1e)
OBJS += ../common/athrsf1_phy.o
endif
ifeq ($(ETH_CONFIG), _f2e)
OBJS += ../common/athrsf2_phy.o
endif
ifeq ($(ETH_CONFIG), _vir)
OBJS += ../common/athrs_vir_phy.o
endif
ifeq ($(ETH_CONFIG), _s27)
OBJS += ../common/athr_s27_phy.o
endif
SOBJS = ../common/955x.o ../common/tap-955x.S
$(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
#########################################################################