comparison src/cs/services/mks/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 MKS Riviera service (ARM compiler)
3 #
4 # Copyright (c) Texas Instruments 2001
5 #
6 # Author: Laurent Sollier
7 # Date : 04 December 2001
8
9 # Compilation flags
10 MKS_TEST_FLAGS := $(NODBG) $(16INST) -mn $(CFLAGSSERVICES_TESTS)
11 WIN_MKS_TEST_FLAGS := $($(TP)CFLAGS) $(CFLAGSSERVICES_TESTS)
12
13
14 # Libraries definition
15 LIB_MKS_TEST := $(OUT_LIB_DIR)/mks_tests.lib
16 CFG_LIBS += $(LIB_MKS_TEST)
17
18
19 # Source definition
20 COMMON_SRC_MKS_TEST := $(SERVICES_DIR)/mks/tests/mks_test.c \
21 $(SERVICES_DIR)/mks/tests/mks_test_misc.c
22
23 SRC_MKS_TEST += $(COMMON_SRC_MKS_TEST)
24 WIN_SRC_MKS_TEST += $(COMMON_SRC_MKS_TEST)
25
26
27 # Object definition
28 OBJ_MKS_TEST := $(patsubst ../%.c,$(TEMPORARY_FILE_DIR)/%.obj,$(filter %.c,$($(TP)SRC_MKS_TEST)))
29 CFG_OBJS += $(OBJ_MKS_TEST)
30 CFG_DEPS += $(OBJ_MKS_TEST:.obj=.d)
31
32
33 ######## LIBRARIES #############
34 $(LIB_MKS_TEST) : $(OBJ_MKS_TEST)
35 $(MKDIR) $(subst /,\,$(dir $@))
36 $($(TP)LINKER) $($(TP)LFLAGS) $($(TP)LOUTOUT_FLAG)$@ $^
37
38
39 ######## OBJECTS #############
40 $(OBJ_MKS_TEST) : $(TEMPORARY_FILE_DIR)/%.obj: ../%.c
41 $($(TP)COMPILER) $($(TP)MKS_TEST_FLAGS) $($(TP)COUTPUT_FLAG)$(@D)/ $<
42
43