diff chipsetsw/layer1/tpu_drivers/tpu_drivers.mak @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/chipsetsw/layer1/tpu_drivers/tpu_drivers.mak	Mon Jun 01 03:24:05 2015 +0000
@@ -0,0 +1,36 @@
+#
+# TPU drivers makefile
+#
+
+# Compilation flags
+
+TPU_DBG := $(DBG) # $(DBG) for debug; see master.mak for definition
+
+TPU_DRIVERS_FLAGS := $(TPU_DBG) -c $(16INST) $(ALGN) -o2 $(CFLAGSTPUDRIVERS)
+
+
+CFG_LIBS += $(TPU_DRIVERS_LIB)
+
+# Source definitions
+
+SRC_TPU_DRV := $(TPU_DRIVERS_DIR)/source/tpudrv.c $(TPU_DRIVERS_DIR)/source0/tpudrv$(RF_FAM).c
+ifeq ($(L1_GPRS), 1)
+SRC_TPU_DRV += $(TPU_DRIVERS_DIR)/p_source0/p_tpudr$(RF_FAM).c
+endif
+
+# Objects definition
+
+OBJ_TPU_DRV := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$(SRC_TPU_DRV)))
+CFG_OBJS += $(OBJ_TPU_DRV)
+CFG_DEPS += $(OBJ_TPU_DRV:.obj=.d)
+
+# Library
+
+$(TPU_DRIVERS_LIB) : $(OBJ_TPU_DRV)
+	$(AR470) r $(TPU_DRIVERS_LIB) $(OBJ_TPU_DRV)
+
+# Objects
+
+$(OBJ_TPU_DRV) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
+	$(COMPILER) $(TPU_DRIVERS_FLAGS) -fr$(@D) $<
+