]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - pdk_k2g_1_0_1/packages/ti/csl/build/k2g/c66/ti.csl.intc.ae66e.mk
Add pdk folder
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1 / packages / ti / csl / build / k2g / c66 / ti.csl.intc.ae66e.mk
1 #*******************************************************************************
2 #* FILE PURPOSE: Lower level makefile for Creating Component Libraries
3 #*******************************************************************************
4 #* FILE NAME: ./build/k2g/c66/ti.csl.intc.ae66e.mk
5 #*
6 #* DESCRIPTION: Defines Source Files, Compilers flags and build rules
7 #*
8 #*
9 #*******************************************************************************
10 #
12 #
13 # Macro definitions referenced below
14 #
15 empty =
16 space =$(empty) $(empty)
17 CC = $(C6X_GEN_INSTALL_PATH)/bin/cl6x -c
18 AC = $(C6X_GEN_INSTALL_PATH)/bin/cl6x -c
19 ARIN = $(C6X_GEN_INSTALL_PATH)/bin/ar6x
20 LD = $(C6X_GEN_INSTALL_PATH)/bin/cl6x
21 RTSLIB = -l $(C6X_GEN_INSTALL_PATH)/lib/undefined
22 INCS = -I. -I$(strip $(subst ;, -I,$(subst $(space),\$(space),$(INCDIR)))) -I$(C6X_GEN_INSTALL_PATH)/include
23 OBJEXT = oe66e
24 AOBJEXT = se66e
25 CFLAGS_INTERNAL = --strip_coff_underscore -mo -o3 -q -k -eo.o -DBIGENDIAN -Dnull -me -mv6600 --abi=eabi
26 ASFLAGS_INTERNAL = --strip_coff_underscore -me -mv6600 --abi=eabi
27 ARFLAGS_INTERNAL = rq
28 LNKFLAGS_INTERNAL = --abi=eabi -z
29 INTERNALDEFS = -Dti_targets_elf_C66_big_endian  -DMAKEFILE_BUILD -eo.$(OBJEXT) -ea.$(AOBJEXT) -fr=$(@D) -fs=$(@D) -ppa -ppd=$@.dep
30 INTERNALLINKDEFS = -o $@ -m $@.map
31 OBJDIR =  $(LIBDIR)/k2g//c66/obj
33 #List the COMMONSRC Files
34 COMMONSRCC= \
35     src/intc/_csl_intcCombEventDispatcher.c\
36     src/intc/_csl_intcDispatcher.c\
37     src/intc/_csl_intcResource.c\
38     src/intc/csl_intcClose.c\
39     src/intc/csl_intcExcep.c\
40     src/intc/csl_intcGetHwStatus.c\
41     src/intc/csl_intcHookIsr.c\
42     src/intc/csl_intcHwControl.c\
43     src/intc/csl_intcInit.c\
44     src/intc/csl_intcOpen.c\
45     src/intc/csl_intcPlugEventHandler.c\
46     src/intc/csl_intcAsmUtils.c
48 # FLAGS for the COMMONSRC Files
49 COMMONSRCCFLAGS =   -DSOC_K2G  -I./src/intc -I. 
51 # Make Rule for the COMMONSRC Files
52 COMMONSRCCOBJS = $(patsubst %.c, $(OBJDIR)/%.$(OBJEXT), $(COMMONSRCC))
54 $(COMMONSRCCOBJS): $(OBJDIR)/%.$(OBJEXT): %.c
55         -@echo cle66e $< ...
56         if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; fi;
57         $(RM) $@.dep
58         $(CC) $(CFLAGS_INTERNAL) $(COMMONSRCCFLAGS) $(INTERNALDEFS) $(INCS) -fc $< 
59         -@$(CP) $@.dep $@.pp; \
60          $(SED) -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
61              -e '/^$$/ d' -e 's/$$/ :/' < $@.pp >> $@.dep; \
62          $(RM) $@.pp 
64 #Create Empty rule for dependency
65 $(COMMONSRCCOBJS):./build/k2g/c66/ti.csl.intc.ae66e.mk
66 ./build/k2g/c66/ti.csl.intc.ae66e.mk:
68 #Include Depedency for COMMONSRC Files
69 ifneq (clean,$(MAKECMDGOALS))
70  -include $(COMMONSRCCOBJS:%.$(OBJEXT)=%.$(OBJEXT).dep)
71 endif
73 #List the COMMONSRC Files
74 COMMONSRCASM= \
75     src/intc/_csl_intcIntrEnDisRes.asm\
76     src/intc/_csl_intcIsrDispatch.asm\
77     src/intc/_csl_intcNmiDummy.asm
79 # FLAGS for the COMMONSRC Files
80 COMMONSRCASMFLAGS =   -I./src/intc -I. 
82 # Make Rule for the COMMONSRC Files
83 COMMONSRCASMOBJS = $(patsubst %.asm, $(OBJDIR)/%.$(OBJEXT), $(COMMONSRCASM))
85 $(COMMONSRCASMOBJS): $(OBJDIR)/%.$(OBJEXT): %.asm
86         -@echo asme66e $< ...
87         if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; fi;
88         $(AC) $(ASFLAGS_INTERNAL) $(COMMONSRCASMFLAGS) $(INTERNALDEFS) $(INCS) -fa $< 
90 #Create Empty rule for dependency
91 $(COMMONSRCASMOBJS):./build/k2g/c66/ti.csl.intc.ae66e.mk
92 ./build/k2g/c66/ti.csl.intc.ae66e.mk:
94 #Include Depedency for COMMONSRC Files
95 ifneq (clean,$(MAKECMDGOALS))
96  -include $(COMMONSRCASMOBJS:%.$(OBJEXT)=%.$(OBJEXT).dep)
97 endif
100 $(LIBDIR)/k2g/c66/ti.csl.intc.ae66e : $(COMMONSRCCOBJS) $(COMMONSRCASMOBJS)
101         @echo archiving $? into $@ ...
102         if [ ! -d $(LIBDIR)/k2g/c66 ]; then $(MKDIR) $(LIBDIR)/k2g/c66 ; fi;
103         $(ARIN) $(ARFLAGS_INTERNAL) $@ $?