comparison g23m/condat/frame/config/cnf.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
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 #-----------------------------------------------------------------------------
2 # Project :
3 # Modul : J:\g23m\condat\frame\config\cnf.mak
4 #-----------------------------------------------------------------------------
5 # Copyright 2002 Texas Instruments Berlin, AG
6 # All rights reserved.
7 #
8 # This file is confidential and a trade secret of Texas
9 # Instruments Berlin, AG
10 # The receipt of or possession of this file does not convey
11 # any rights to reproduce or disclose its contents or to
12 # manufacture, use, or sell anything it may describe, in
13 # whole, or in part, without the specific written consent of
14 # Texas Instruments Berlin, AG.
15 #-----------------------------------------------------------------------------
16 #| Purpose :
17 #-----------------------------------------------------------------------------
18 #
19 # Setting Directory for Frame Objects
20 #
21 OBJ := $(L23_OBJ_DIR)/cnf
22
23 CNFSRC=$(CONDAT_DIR)/Frame/CONFIG
24 IN2 =$(TI_DIR)/l1_std/hint
25 CONFIG =$(COMFSRC)/ConfigPS
26 INCCNF = -i$(GPF_DIR)/INC -i$(GPF_DIR)/INC/NUC -i$(GPF_DIR)/INC/NUC/ARM7
27 CFG_MOD = -dCONFIG_MODULE -dDATA_EXT_RAM
28
29 #EOTD settings
30 ifeq ($(EOTD),1)
31 COPT1 += -dFF_EOTD
32 endif
33
34
35 # necessary for gprscomp.c in order to not crash upon startup
36 COPT1 += -dNU_DEBUG
37
38
39 #
40 # Additional Configuration settings
41 #
42
43 #BOARD=$(BOARD)
44
45
46 CNFOBJ = $(OBJ)/gprscomp.$(OBJ_TAIL) $(OBJ)/custcomp.$(OBJ_TAIL) $(OBJ)/gprsinit.$(OBJ_TAIL) $(OBJ)/gprsdrv.$(OBJ_TAIL)
47
48 #
49 # compressed tracing
50 #
51 ifeq ($(CTRACE),1)
52 COMPTRACE := CTRACE
53 endif
54
55 $(TOP_DIR)/$(CNF_LIB) : $(OBJ) $(CNFOBJ)
56 $(AR) r $(TOP_DIR)/$(CNF_LIB) $(CNFOBJ)
57
58 $(OBJ):
59 mkdir $(subst /,$(SLASH),$(OBJ))
60
61 clean:
62 $(REMOVE) $(subst /,$(SLASH),$(OBJ))
63
64
65
66
67 $(CNFOBJ): $(OBJ)/%.obj : $(CNFSRC)/%.c
68 echo -D$(NCONFIG) > cmd
69 echo -D$(COMPTRACE) >> cmd
70 echo -D$(NTRACE) >> cmd
71 echo -DBOARD=$(BOARD) >> cmd
72 echo $(COPF) >> cmd
73 echo $(COPT) >> cmd
74 echo $(COPT1) >> cmd
75 echo $(COTAR) >> cmd
76 echo $(FDOPT) >> cmd
77 echo $(INCCNF) >> cmd
78 echo $(CFG_MOD) >> cmd
79 echo $(INCDRV2) >> cmd
80 echo -i$(CONFIG) >> cmd
81 echo -i$(ICDG) >> cmd
82 echo -i$(ICOM) >> cmd
83 echo -i$(SRCCF) >> cmd
84 echo -fr$(OBJ) >> cmd
85 $(CC_PRE) $^ -@cmd
86 $(CC_INT) $(addsuffix .pp,$(basename $^))
87 $(CC_COM) $(addsuffix .pp_,$(basename $^)) -@cmd