comparison src/cs/layer1/tpu_drivers/tpu_drivers.mak @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 #
2 # TPU drivers makefile
3 #
4
5 # Compilation flags
6
7 TPU_DBG := $(DBG) # $(DBG) for debug; see master.mak for definition
8
9 TPU_DRIVERS_FLAGS := $(TPU_DBG) -c $(16INST) $(ALGN) -o2 $(CFLAGSTPUDRIVERS)
10
11
12 CFG_LIBS += $(TPU_DRIVERS_LIB)
13
14 # Source definitions
15
16 SRC_TPU_DRV := $(TPU_DRIVERS_DIR)/source/tpudrv.c $(TPU_DRIVERS_DIR)/source0/tpudrv$(RF_FAM).c
17 ifeq ($(L1_GPRS), 1)
18 SRC_TPU_DRV += $(TPU_DRIVERS_DIR)/p_source0/p_tpudr$(RF_FAM).c
19 endif
20
21 # Objects definition
22
23 OBJ_TPU_DRV := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$(SRC_TPU_DRV)))
24 CFG_OBJS += $(OBJ_TPU_DRV)
25 CFG_DEPS += $(OBJ_TPU_DRV:.obj=.d)
26
27 # Library
28
29 $(TPU_DRIVERS_LIB) : $(OBJ_TPU_DRV)
30 $(AR470) r $(TPU_DRIVERS_LIB) $(OBJ_TPU_DRV)
31
32 # Objects
33
34 $(OBJ_TPU_DRV) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
35 $(COMPILER) $(TPU_DRIVERS_FLAGS) -fr$(@D) $<
36