6069190bbe3efb2878b8984d3517146796faef24
[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1 / packages / ti / drv / uart / makefile
1 #*******************************************************************************
2 #* FILE PURPOSE: Top level makefile for Creating Component Libraries
3 #*******************************************************************************
4 #* FILE NAME: makefile
5 #*
6 #* DESCRIPTION: Defines Compiler tools paths, libraries , Build Options 
7 #*
8 #*
9 #*******************************************************************************
10 #*
11 # (Mandatory) Specify where various tools are installed.
13 # Output for prebuilt generated libraries
14 export LIBDIR ?= ./lib
15 export SECTTI ?= sectti
17 # ROOT Directory
18 export ROOTDIR := ../../..
20 # INCLUDE Directory
21 export INCDIR := $(XDC_INSTALL_PATH)/packages;$(BIOS_INSTALL_PATH)/packages;$(PDK_INSTALL_PATH);$(EDMA3LLD_BIOS6_INSTALLDIR)/packages;$(ROOTDIR)
23 # Common Macros used in make
25 ifndef RM
26 export RM = rm -f
27 endif
29 ifndef CP
30 export CP = cp -p
31 endif
33 export MKDIR = mkdir -p
35 ifndef RMDIR
36 export RMDIR = rm -rf
37 endif
39 ifndef SED
40 export SED = sed
41 endif
43 ifndef MAKE
44 export MAKE = make
45 endif
47 # PHONY Targets
48 .PHONY: all clean cleanall 
50 # FORCE Targets
51 FORCE: 
53 # all rule
54 all: .executables
55 .executables: .libraries
56 .libraries:
58 # Clean Rule
59 clean:: clean_package
60 # Clean Top Level Object Directory 
61 clean_package :
62         $(RMDIR) $(LIBDIR)/*/
63         $(RMDIR) package/cfg
66 # Make rule to create $(LIBDIR)/c66/ti.drv.uart.ae66 library
67 .libraries: $(LIBDIR)/c66/ti.drv.uart.ae66
68 $(LIBDIR)/c66/ti.drv.uart.ae66: FORCE
69         $(MAKE) -f ./build/c66/ti.drv.uart.ae66.mk $@
70 # Rule to clean $(LIBDIR)/c66/ti.drv.uart.ae66 library
71 clean ::
72         $(RM) $(LIBDIR)/c66/ti.drv.uart.ae66
75 # Make rule to create $(LIBDIR)/c66/ti.drv.uart.profiling.ae66 library
76 .libraries: $(LIBDIR)/c66/ti.drv.uart.profiling.ae66
77 $(LIBDIR)/c66/ti.drv.uart.profiling.ae66: FORCE
78         $(MAKE) -f ./build/c66/ti.drv.uart.profiling.ae66.mk $@
79 # Rule to clean $(LIBDIR)/c66/ti.drv.uart.profiling.ae66 library
80 clean ::
81         $(RM) $(LIBDIR)/c66/ti.drv.uart.profiling.ae66
84 # Make rule to create $(LIBDIR)/c66/ti.drv.uart.ae66e library
85 .libraries: $(LIBDIR)/c66/ti.drv.uart.ae66e
86 $(LIBDIR)/c66/ti.drv.uart.ae66e: FORCE
87         $(MAKE) -f ./build/c66/ti.drv.uart.ae66e.mk $@
88 # Rule to clean $(LIBDIR)/c66/ti.drv.uart.ae66e library
89 clean ::
90         $(RM) $(LIBDIR)/c66/ti.drv.uart.ae66e
93 # Make rule to create $(LIBDIR)/c66/ti.drv.uart.profiling.ae66e library
94 .libraries: $(LIBDIR)/c66/ti.drv.uart.profiling.ae66e
95 $(LIBDIR)/c66/ti.drv.uart.profiling.ae66e: FORCE
96         $(MAKE) -f ./build/c66/ti.drv.uart.profiling.ae66e.mk $@
97 # Rule to clean $(LIBDIR)/c66/ti.drv.uart.profiling.ae66e library
98 clean ::
99         $(RM) $(LIBDIR)/c66/ti.drv.uart.profiling.ae66e
102 # Make rule to create $(LIBDIR)/armv7/ti.drv.uart.aa15fg library
103 .libraries: $(LIBDIR)/armv7/ti.drv.uart.aa15fg
104 $(LIBDIR)/armv7/ti.drv.uart.aa15fg: FORCE
105         $(MAKE) -f ./build/armv7/ti.drv.uart.aa15fg.mk $@
106 # Rule to clean $(LIBDIR)/armv7/ti.drv.uart.aa15fg library
107 clean ::
108         $(RM) $(LIBDIR)/armv7/ti.drv.uart.aa15fg
111 # Make rule to create $(LIBDIR)/armv7/ti.drv.uart.profiling.aa15fg library
112 .libraries: $(LIBDIR)/armv7/ti.drv.uart.profiling.aa15fg
113 $(LIBDIR)/armv7/ti.drv.uart.profiling.aa15fg: FORCE
114         $(MAKE) -f ./build/armv7/ti.drv.uart.profiling.aa15fg.mk $@
115 # Rule to clean $(LIBDIR)/armv7/ti.drv.uart.profiling.aa15fg library
116 clean ::
117         $(RM) $(LIBDIR)/armv7/ti.drv.uart.profiling.aa15fg
120 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66 library
121 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66
122 $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66: FORCE
123         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.k2g.ae66.mk $@
124 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66 library
125 clean ::
126         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66
129 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66 library
130 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66
131 $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66: FORCE
132         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.profiling.k2g.ae66.mk $@
133 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66 library
134 clean ::
135         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66
138 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66e library
139 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66e
140 $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66e: FORCE
141         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.k2g.ae66e.mk $@
142 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66e library
143 clean ::
144         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.ae66e
147 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66e library
148 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66e
149 $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66e: FORCE
150         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.profiling.k2g.ae66e.mk $@
151 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66e library
152 clean ::
153         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.ae66e
156 # Make rule to create $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.aa15fg library
157 .libraries: $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.aa15fg
158 $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.aa15fg: FORCE
159         $(MAKE) -f ./build/k2g/armv7/ti.drv.uart.k2g.aa15fg.mk $@
160 # Rule to clean $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.aa15fg library
161 clean ::
162         $(RM) $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.aa15fg
165 # Make rule to create $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg library
166 .libraries: $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg
167 $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg: FORCE
168         $(MAKE) -f ./build/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg.mk $@
169 # Rule to clean $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg library
170 clean ::
171         $(RM) $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.aa15fg
174 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66 library
175 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66
176 $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66: FORCE
177         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.k2g.dma.ae66.mk $@
178 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66 library
179 clean ::
180         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66
183 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66 library
184 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66
185 $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66: FORCE
186         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66.mk $@
187 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66 library
188 clean ::
189         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66
192 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66e library
193 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66e
194 $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66e: FORCE
195         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.k2g.dma.ae66e.mk $@
196 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66e library
197 clean ::
198         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.k2g.dma.ae66e
201 # Make rule to create $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e library
202 .libraries: $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e
203 $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e: FORCE
204         $(MAKE) -f ./build/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e.mk $@
205 # Rule to clean $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e library
206 clean ::
207         $(RM) $(LIBDIR)/k2g/c66/ti.drv.uart.profiling.k2g.dma.ae66e
210 # Make rule to create $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg library
211 .libraries: $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg
212 $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg: FORCE
213         $(MAKE) -f ./build/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg.mk $@
214 # Rule to clean $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg library
215 clean ::
216         $(RM) $(LIBDIR)/k2g/armv7/ti.drv.uart.k2g.dma.aa15fg
219 # Make rule to create $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg library
220 .libraries: $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg
221 $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg: FORCE
222         $(MAKE) -f ./build/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg.mk $@
223 # Rule to clean $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg library
224 clean ::
225         $(RM) $(LIBDIR)/k2g/armv7/ti.drv.uart.profiling.k2g.dma.aa15fg