comparison src/cs/services/dar/tests/tests.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 # Makefile for the Test of DAR Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2001
5 #
6 # Author: Stephanie Gerthoux
7 # Date : 25 october 2001
8
9 # Compilation flags
10 DAR_TEST_FLAGS := $(NODBG) $(16INST) -mn $(CFLAGSSERVICES_TESTS)
11 WIN_DAR_TEST_FLAGS := $($(TP)CFLAGS) $(CFLAGSSERVICES_TESTS)
12
13 # Libraries definition
14 LIB_DAR_TEST := $(OUT_LIB_DIR)/dar_tests.lib
15 CFG_LIBS += $(LIB_DAR_TEST)
16
17 # Source definition
18 COMMON_SRC_DAR_TEST := $(SERVICES_DIR)/dar/tests/dar_test.c \
19 $(SERVICES_DIR)/dar/tests/dar_test_regr.c \
20 $(SERVICES_DIR)/dar/tests/dar_test_misc.c
21
22 SRC_DAR_TEST := $(COMMON_SRC_DAR_TEST)
23 WIN_SRC_DAR_TEST := $(COMMON_SRC_DAR_TEST)
24
25
26 # Objects and dependencies definition
27 OBJ_DAR_TEST := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_DAR_TEST)))
28 CFG_OBJS += $(OBJ_DAR_TEST)
29 CFG_DEPS += $(OBJ_DAR_TEST:.obj=.d)
30
31
32 ######## LIBRARIES #############
33 $(LIB_DAR_TEST) : $(OBJ_DAR_TEST)
34 $(MKDIR) $(dir $@)
35 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
36
37 ######## OBJECTS #############
38 $(OBJ_DAR_TEST) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
39 $($(TP)COMPILER) $($(TP)DAR_TEST_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<
40