1 # FreeEMS - the open source engine management system
5 # Copyright 2008-2013 Fred Cooke
7 # This Makefile is part of the FreeEMS project.
9 # FreeEMS software is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # FreeEMS software is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
22 # We ask that if you make any changes to this file you email them upstream to
23 # us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
25 # Thank you for choosing FreeEMS to run your engine!
30 ################################################################################
32 # About This Makefile #
34 # This makefile incorporates many non-standard features. In particular, it #
35 # is inspired by Maven 2 and it's highly disciplined release mechanism. By #
36 # automating the release process as much as possible the chance of human #
37 # error is minimised. As much as possible, reuse is employed to keep bugs #
38 # from being introduced when changes are made. Rather than compiling from #
39 # C source files directly to object files, the build is, by default, done #
40 # in three stages, C to pre-processed C, pre-processed C to assembly, and #
41 # assembly to object files. Linking is also a little different with two #
42 # variants available, with and without garbage collection. Target device #
43 # memory usage statistics are available and generated by default when the #
44 # all target is called. Finally, extensive debug information can be #
45 # generated with a single make call. #
47 ################################################################################
52 ################################################################################
53 # All Fixed Variables #
54 ################################################################################
58 FIRMWARE_VERSION
:= $(shell git describe
--dirty
=-DEV
)
60 BUILD_DATE
:= "$(shell date)"
65 # Windows uses backslash
67 # Windows mkdir does not accept -p
69 # Windows echo repeats " symbols (Q stands for quote...)
83 # If using this on windows, we're in cygwin, same as Linux
88 CLIBUILD = -D CLIFLAGS=1
90 CLIFLAGSARG = -D $(CLIFLAGS)=1 -D XGATE=1
91 LABEL := $(OUTPREFIX)-$(FIRMWARE_VERSION)-$(CLIFLAGS)-XGATE
93 CLIFLAGSARG = -D $(CLIFLAGS)=1
94 LABEL := $(OUTPREFIX)-$(FIRMWARE_VERSION)-$(CLIFLAGS)
97 LABEL := $(OUTPREFIX)-$(FIRMWARE_VERSION)
101 DISTRIBUTIONDIR = ../../tmp/$(LABEL)
102 FIRMWAREDISTRIBUTIONDIR = $(DISTRIBUTIONDIR)/$(LABEL)-firmware
103 DOXYDOCDIR = ../../docs/doxygen-html
104 MAINDIR = freeems-vanilla
106 DEPDIR = dependencies
108 DATADIR = initialisers
113 XGASMDIR = assemblyxgate
114 HANDASMDIR = assemblyhand
116 PPCDIR = preprocessedc
117 XGOBJDIR = $(OBJDIR)$(PATHSEP)xgate
119 # Release tag message file
120 RELTAG = $(OUTDIR)/gitTagMessage.txt
121 TAGNAME = $(OUTDIR)/gitTagName.txt
123 # Program prefixes, for the main cpu and for the xgate coprocessor
132 COPY = $(PREFIX)objcopy
133 DUMP = $(PREFIX)objdump
135 RE = $(PREFIX)readelf
142 ################################################################################
144 ################################################################################
147 # Indirect dependencies that can affect everything and cause a full rebuild
149 ASMH = 9S12XDP512asm.s
150 LINKER = memory.x regions.x hc9s12xdp512elfb.x
153 # Let's keep this to a bare minimum! If you write ASM code
154 # please provide an matching alternate C implementation too.
155 HANDASMS = flashBurn.s
158 ALLH = $(LINKER) $(MFILE) $(INCDIR)/$(ASMH)
160 # Warning : do not include .c files from inc/ as they are
161 # included into the other C files and automatically compiled.
164 FIXEDCLASSES = FixedConfig1.c FixedConfig2.c
165 LOOKUPCLASSES1 = IATTransferTable.c CHTTransferTable.c
166 LOOKUPCLASSES2 = MAFTransferTable.c TestTransferTable.c
167 FUELCLASSES = FuelTables.c FuelTables2.c
168 TIMECLASSES = TimingTables.c TimingTables2.c
169 TUNECLASSES = TunableConfig.c TunableConfig2.c
170 # Combined data files
171 DATARAW = $(FIXEDCLASSES) $(LOOKUPCLASSES1) $(LOOKUPCLASSES2) $(FUELCLASSES) $(TIMECLASSES) $(TUNECLASSES)
172 DATA = $(patsubst %.c,$(DATADIR)/%.c,$(DATARAW))
175 UTILCLASSES = tableLookup.c init.c utils.c globalConstants.c StaticBenchTest.c simpleGPIO.c
176 MATHCLASSES = coreVarsGenerator.c derivedVarsGenerator.c fuelAndIgnitionCalcs.c outputScheduler.c decoderInterface.c
177 COMCLASSES = flashWrite.c commsCore.c blockDetailsLookup.c
178 ISRCLASSES = interrupts.c injectionISRs.c commsISRs.c realtimeISRs.c miscISRs.c xgateVectors.c
179 # Combined source code files
180 SOURCE = freeEMS.c staticInit.c main.c $(UTILCLASSES) $(MATHCLASSES) $(COMCLASSES) $(ISRCLASSES)
182 # All but the engine position/RPM combined here
183 CLASSES = $(SOURCE) $(DATA)
185 # Engine position/RPM here
186 # Special decoders are not for use running an engine
187 RPMSPECIAL = Listener.c BenchTest.c
188 # TODO: Automate file naming for the following 4 lines
189 RPMEVENTEETH = EvenTeeth-Cam-24and1.c EvenTeeth-Cam-16and1.c EvenTeeth-Cam-6and1.c EvenTeeth-Distributor-4of6and1.c
190 RPMMISSINGTEETH = MissingTeeth-TestFile.c MissingTeeth-Cam-24minus1.c MissingTeeth-Crank-8minus1.c MissingTeeth-Crank-12minus1.c MissingTeeth-Crank-36minus1.c MissingTeeth-Crank-60minus2.c MissingTeeth-Cam-6minus2.c MissingTeeth-Crank-30minus2.c MissingTeeth-Cam-12minus1.c
191 RPMHALLOROPTICAL = HallOrOptical-Distributor-4of64.c HallOrOptical-Distributor-4of69.c
193 # Specific purpose per engine stuff here
194 RPMSPECIFICENGINE1 = MitsiAndMazda-CAS-4and1.c GM-LT1-CAS-360and8.c JSeries-12CrankWith6-2Cam.c
195 # Insert your file above and get coding!
196 RPMCLASSESRAW = $(RPMSPECIAL) $(RPMEVENTEETH) $(RPMMISSINGTEETH) $(RPMHALLOROPTICAL) $(RPMVRDISTRIBUTOR) $(RPMSPECIFICENGINE1)
197 RPMCLASSES = $(patsubst %.c,$(DECDIR)/%.c,$(RPMCLASSESRAW))
204 DEPENDENCIES = $(patsubst %.c,$(DEPDIR)/%.d,$(CLASSES))
205 DDEPENDENCIES = $(patsubst %.c,$(DEPDIR)/%.dd,$(CLASSES))
206 PREPROCESSED = $(patsubst %.c,$(PPCDIR)/%.pp.c,$(CLASSES))
207 ASSEMBLIES = $(patsubst %.c,$(ASMDIR)/%.s,$(CLASSES))
208 OBJECTS = $(patsubst %.c,$(OBJDIR)/%.o,$(CLASSES))
209 HANDOBJECTS = $(patsubst %.s,$(OBJDIR)/%.o,$(HANDASMS))
210 DUMPS = $(patsubst %.c,$(BUGDIR)/%.dmp,$(CLASSES)) $(patsubst %.s,$(BUGDIR)/%.dmp,$(HANDASMS))
211 XGOBJECTS = $(patsubst %.s,$(XGOBJDIR)/%.o,$(XGASMSRCS))
213 # Convert RPM extensions
214 DEPENDENCIESRPM = $(patsubst %.c,$(DEPDIR)/%.d,$(RPMCLASSES))
215 DDEPENDENCIESRPM = $(patsubst %.c,$(DEPDIR)/%.dd,$(RPMCLASSES))
216 PREPROCESSEDRPM = $(patsubst %.c,$(PPCDIR)/%.pp.c,$(RPMCLASSES))
217 ASSEMBLIESRPM = $(patsubst %.c,$(ASMDIR)/%.s,$(RPMCLASSES))
218 OBJECTSRPM = $(patsubst %.c,$(OBJDIR)/%.o,$(RPMCLASSES)) #$(patsubst $(DECDIR???)%.s,$(OBJDIR)/%.o,$(RPMHANDASMS))
219 DUMPSRPM = $(patsubst %.c,$(BUGDIR)/%.dmp,$(RPMCLASSES)) #$(patsubst $(DECDIR???)%.s,$(BUGDIR)/%.dmp,$(RPMHANDASMS))
221 # Bring in all of the generated deps. Note, if these fail on the first pass of parsing, Make will generate them and reparse.
222 -include $(DEPENDENCIES) $(DEPENDENCIESRPM) $(DDEPENDENCIES) $(DDEPENDENCIESRPM)
224 # Convert to output files for source
225 ALLELFSC = $(patsubst $(DECDIR)/%.c,$(OUTDIR)/$(LABEL)-%.elf,$(RPMCLASSES))
226 ALLELFSASM = #$(patsubst %.s,$(OUTDIR)/$(LABEL)-%.elf,$(RPMHANDASMS))
227 ALLDMPSC = $(patsubst $(DECDIR)/%.c,$(BUGDIR)/$(LABEL)-%.dmp,$(RPMCLASSES))
228 ALLDMPSASM = #$(patsubst %.s,$(BUGDIR)/$(LABEL)-%.dmp,$(RPMHANDASMS))
229 ALLMAPSC = $(patsubst $(DECDIR)/%.c,$(BUGDIR)/$(LABEL)-%.map,$(RPMCLASSES))
230 ALLMAPSASM = #$(patsubst %.s,$(BUGDIR)/$(LABEL)-%.map,$(RPMHANDASMS))
231 ALLREADC = $(patsubst $(DECDIR)/%.c,$(BUGDIR)/$(LABEL)-%.ree,$(RPMCLASSES))
232 ALLREADASM = #$(patsubst %.s,$(BUGDIR)/$(LABEL)-%.ree,$(RPMHANDASMS))
233 ALLS19SC = $(patsubst $(DECDIR)/%.c,$(S19DIR)/$(LABEL)-%.s19,$(RPMCLASSES))
234 ALLS19SASM = #$(patsubst %.s,$(S19DIR)/$(LABEL)-%.s19,$(RPMHANDASMS))
236 # Convert to output files for as-is variants
237 ALLELFS = $(ALLELFSC) $(ALLELFSASM)
238 ALLDMPS = $(ALLDMPSC) $(ALLDMPSASM)
239 ALLMAPS = $(ALLMAPSC) $(ALLMAPSASM)
240 ALLREAD = $(ALLREADC) $(ALLREADASM)
241 ALLS19S = $(ALLS19SC) $(ALLS19SASM)
242 ALLSIZES = $(patsubst $(S19DIR)/%,$(OUTDIR)/%.txt,$(ALLS19S))
243 ALLDUMMY = $(patsubst $(S19DIR)/%,$(OUTDIR)/%.txt.dummy,$(ALLS19S))
244 ALLMD5S = $(patsubst $(S19DIR)/%,$(FIRMWAREDISTRIBUTIONDIR)/%.md5,$(ALLS19S))
245 ALLSHA1S = $(patsubst $(S19DIR)/%,$(FIRMWAREDISTRIBUTIONDIR)/%.sha1,$(ALLS19S))
246 ALLS19ZIPS = $(patsubst $(S19DIR)/%,$(FIRMWAREDISTRIBUTIONDIR)/%.zip,$(ALLS19S))
249 # Convert to output files for GC variants
250 GCDELFSC = $(patsubst $(DECDIR)/%.c,$(OUTDIR)/$(LABEL)-%.gc.elf,$(RPMCLASSES))
251 GCDELFSASM = #$(patsubst %.s,$(OUTDIR)/$(LABEL)-%.gc.elf,$(RPMHANDASMS))
252 GCDS19SC = $(patsubst $(DECDIR)/%.c,$(S19DIR)/$(LABEL)-%.gc.s19,$(RPMCLASSES))
253 GCDS19SASM = #$(patsubst %.s,$(S19DIR)/$(LABEL)-%.gc.s19,$(RPMHANDASMS))
254 GCDELFS = $(GCDELFSC) $(GCDELFSASM)
255 GCDS19S = $(GCDS19SC) $(GCDELFSASM)
256 GCDSIZES = $(patsubst $(S19DIR)/%,$(OUTDIR)/%.txt,$(GCDS19S))
257 GCDDUMMY = $(patsubst $(S19DIR)/%,$(OUTDIR)/%.txt.dummy,$(GCDS19S))
262 ################################################################################
263 # Single Decoder Builds #
264 ################################################################################
267 Listener: $(S19DIR)/$(LABEL)-Listener.s19
268 BenchTest: $(S19DIR)/$(LABEL)-BenchTest.s19
269 EvenTeeth-Cam-24and1: $(S19DIR)/$(LABEL)-EvenTeeth-Cam-24and1.s19
270 EvenTeeth-Cam-16and1: $(S19DIR)/$(LABEL)-EvenTeeth-Cam-16and1.s19
271 EvenTeeth-Cam-6and1: $(S19DIR)/$(LABEL)-EvenTeeth-Cam-6and1.s19
272 MissingTeeth-Crank-8minus1: $(S19DIR)/$(LABEL)-MissingTeeth-Crank-8minus1.s19
273 MissingTeeth-Crank-12minus1: $(S19DIR)/$(LABEL)-MissingTeeth-Crank-12minus1.s19
274 MissingTeeth-Cam-12minus1: $(S19DIR)/$(LABEL)-MissingTeeth-Cam-12minus1.s19
275 HallOrOptical-Distributor-4of69: $(S19DIR)/$(LABEL)-HallOrOptical-Distributor-4of69.s19
276 MitsiAndMazda-CAS-4and1: $(S19DIR)/$(LABEL)-MitsiAndMazda-CAS-4and1.s19
277 GM-LT1-CAS-360and8: $(S19DIR)/$(LABEL)-GM-LT1-CAS-360and8.s19
278 JSeries-12CrankWith6-2Cam: $(S19DIR)/$(LABEL)-JSeries-12CrankWith6-2Cam.s19
279 EvenTeeth-Distributor-4of6and1: $(S19DIR)/$(LABEL)-EvenTeeth-Distributor-4of6and1.s19
284 ################################################################################
285 # All Command Line Options #
286 ################################################################################
289 # M68hc1x GCC Options we may want : -minmax -mlong-calls
291 # http://www.gnu.org/software/m68hc11/m68hc11_gcc.html shows code size with different options used
292 # include debug info, optimise , 16 bit ints, hcs12 platform
293 GCCOPTS1 = -Wall -Werror -Winline -O -m68hcs12 -mshort -ffunction-sections
294 GCCOPTS2 = -fomit-frame-pointer -msoft-reg-count=8 -mauto-incdec -fsigned-char
295 GCCOPTS = $(GCCOPTS1) $(GCCOPTS2) $(CLIBUILD) $(CLIFLAGSARG) -D FIRMWARE_VERSION=\"$(FIRMWARE_VERSION)\" -D FIRMWARE_BUILD_DATE=\"$(BUILD_DATE)\" -D OPERATING_SYSTEM=\"$(OS)\"
296 # -ffunction-sections option splits out the functions such that the garbage collection can get
297 # them on a per section basis. I'm not sure, but this could be harmful to paged code so may
298 # have to review this at a later date perhaps splitting paged functions from nonpaged ones.
300 # pass to linker, link for hc12
301 # The vectors address in the linker options is the VMA address and must be short form 0xF710, not a paged address.
302 LINKOPTS = -no-warn-mismatch,-defsym,vectors_addr=0xF710,-m,m68hc12elfb,-T,hc9s12xdp512elfb.x
303 LINKOPTSGC = -no-warn-mismatch,--gc-sections,--print-gc-sections,-defsym,vectors_addr=0xF710,-m,m68hc12elfb,-T,hc9s12xdp512elfb.x
304 # Use this to get a map dump when the linker fails in a confusing way : --print-map
306 # If using the below option for paged flash, the ADDRESS_TYPE
307 # field in the freeEMSloader script should be updated to match.
308 COPYOPTS = --output-target=srec \
309 --change-section-lma .fixedconf1+0xFD4000 \
310 --change-section-lma .fixedconf2+0xFD4000 \
311 --change-section-lma .text1+0xFD4000 \
312 --change-section-lma .text+0xFEC000 \
313 --change-section-lma .data+0xFEC000 \
314 --change-section-lma .vectors+0xFEC000 \
315 --change-section-lma .rodata+0xFEC000 \
316 --only-section=.fixedconf1 \
317 --only-section=.fixedconf2 \
318 --only-section=.text \
319 --only-section=.text1 \
320 --only-section=.data \
321 --only-section=.vectors \
322 --only-section=.rodata \
323 --change-section-lma .ppageE0X=0xE08800 \
324 --change-section-lma .ppageE1=0xE18000 \
325 --only-section=.ppageE0X \
326 --only-section=.ppageE1 \
327 --set-section-flags .ppageE1=alloc,load \
328 --change-section-lma .ppageF8=0xF88000 \
329 --change-section-lma .fpageF9=0xF98000 \
330 --change-section-lma .dpageF9=0xF9A000 \
331 --change-section-lma .ppageFE=0xFE8000 \
332 --only-section=.ppageF8 \
333 --only-section=.fpageF9 \
334 --only-section=.dpageF9 \
335 --only-section=.ppageFE \
336 --change-section-lma .fpageFA=0xFA8000 \
337 --change-section-lma .dpageFA=0xFAA000 \
338 --change-section-lma .fpageFB=0xFB8000 \
339 --change-section-lma .dpageFB1=0xFBA000 \
340 --change-section-lma .dpageFB2=0xFBA400 \
341 --change-section-lma .dpageFB3=0xFBA800 \
342 --change-section-lma .dpageFB4=0xFBAC00 \
343 --change-section-lma .dpageFB5=0xFBB000 \
344 --change-section-lma .dpageFB6=0xFBB400 \
345 --change-section-lma .dpageFB7=0xFBB800 \
346 --change-section-lma .dpageFB8=0xFBBC00 \
347 --change-section-lma .fpageFC=0xFC8000 \
348 --change-section-lma .dpageFC=0xFCA000 \
349 --only-section=.dpageFA \
350 --only-section=.fpageFA \
351 --only-section=.dpageFB1 \
352 --only-section=.dpageFB2 \
353 --only-section=.dpageFB3 \
354 --only-section=.dpageFB4 \
355 --only-section=.dpageFB5 \
356 --only-section=.dpageFB6 \
357 --only-section=.dpageFB7 \
358 --only-section=.dpageFB8 \
359 --only-section=.fpageFB \
360 --only-section=.dpageFC \
361 --only-section=.fpageFC
362 # --change-section-lma .ppageFD=0xFD8000 \
363 # --change-section-lma .ppageFF=0xFF8000 \
364 # --only-section=.ppageFD \ This is left here for clarity only (equivalent to text1 but paged)
365 # --only-section=.ppageFF This is left here for clarity only (equivalent to text but paged)
366 # Changes to the above options should be reflected in memory.x and memory.h also!
368 # The following flash areas should only be included if they are used.
369 # --only-section=.ppageE0S \
370 # --only-section=.ppageE2 \
371 # --only-section=.ppageE3 \
372 # --only-section=.ppageE4 \
373 # --only-section=.ppageE5 \
374 # --only-section=.ppageE6 \
375 # --only-section=.ppageE7 \
376 # --only-section=.ppageE8 \
377 # --only-section=.ppageE9 \
378 # --only-section=.ppageEA \
379 # --only-section=.ppageEB \
380 # --only-section=.ppageEC \
381 # --only-section=.ppageED \
382 # --only-section=.ppageEE \
383 # --only-section=.ppageEF \
384 # --only-section=.ppageF0 \
385 # --only-section=.ppageF1 \
386 # --only-section=.ppageF2 \
387 # --only-section=.ppageF3 \
388 # --only-section=.ppageF4 \
389 # --only-section=.ppageF5 \
390 # --only-section=.ppageF6 \
391 # --only-section=.ppageF7 \
392 # --change-section-lma .ppageE0S=0xE08000 \
393 # --change-section-lma .ppageE2=0xE28000 \
394 # --change-section-lma .ppageE3=0xE38000 \
395 # --change-section-lma .ppageE4=0xE48000 \
396 # --change-section-lma .ppageE5=0xE58000 \
397 # --change-section-lma .ppageE6=0xE68000 \
398 # --change-section-lma .ppageE7=0xE78000 \
399 # --change-section-lma .ppageE8=0xE88000 \
400 # --change-section-lma .ppageE9=0xE98000 \
401 # --change-section-lma .ppageEA=0xEA8000 \
402 # --change-section-lma .ppageEB=0xEB8000 \
403 # --change-section-lma .ppageEC=0xEC8000 \
404 # --change-section-lma .ppageED=0xED8000 \
405 # --change-section-lma .ppageEE=0xEE8000 \
406 # --change-section-lma .ppageEF=0xEF8000 \
407 # --change-section-lma .ppageF0=0xF08000 \
408 # --change-section-lma .ppageF1=0xF18000 \
409 # --change-section-lma .ppageF2=0xF28000 \
410 # --change-section-lma .ppageF3=0xF38000 \
411 # --change-section-lma .ppageF4=0xF48000 \
412 # --change-section-lma .ppageF5=0xF58000 \
413 # --change-section-lma .ppageF6=0xF68000 \
414 # --change-section-lma .ppageF7=0xF78000 \
418 .DEFAULT_GOAL := help
420 @echo $(Q)################################################################################$(Q)
421 @echo $(Q)# Dependency And Target Summary #$(Q)
422 @echo $(Q)################################################################################$(Q)
424 @echo $(Q)# Common targets: #$(Q)
426 @echo $(Q)# 1) help - This comment block #$(Q)
427 @echo $(Q)# 2) all - Executes alldebug, slow, slowgc and size #$(Q)
428 @echo $(Q)# 3) dirs - Creates all of the directories required to build #$(Q)
429 @echo $(Q)# 5) slow - Three stage compilation with assembly retained #$(Q)
430 @echo $(Q)# 6) slowgc - As above, but with garbage collection during linking #$(Q)
431 @echo $(Q)# 7) alldebug - Generates all debug output files #$(Q)
432 @echo $(Q)# 8) install - Not yet implemented #$(Q)
433 @echo $(Q)# 9) release - Performs a full release build #$(Q)
434 @echo $(Q)# 10) clean - Removes all files and directories generated by building #$(Q)
436 @echo $(Q)# Second level targets: #$(Q)
438 @echo $(Q)# Stage one: #$(Q)
440 @echo $(Q)# 1) preprocess - run the C preprocessor over the raw C files #$(Q)
441 @echo $(Q)# 2) compile - compile the preprocessed C into assembly #$(Q)
442 @echo $(Q)# 3) assemble - assemble the assembly files into object files #$(Q)
444 @echo $(Q)# Stage two #$(Q)
446 @echo $(Q)# 1) link - Generate ELFs objects #$(Q)
447 @echo $(Q)# 2) gclink - As above, but with garbage collection #$(Q)
448 @echo $(Q)# 3) s19 - Create s19s from elfs #$(Q)
449 @echo $(Q)# 4) gcs19 - Create s19s from gc elfs #$(Q)
450 @echo $(Q)# 5) sizes - Calculate the approximate s19 sizes #$(Q)
451 @echo $(Q)# 6) gcsizes - Calculate the approximate gc s19 sizes #$(Q)
453 @echo $(Q)# Stage three: #$(Q)
455 @echo $(Q)# 1) maps - Memory map files #$(Q)
456 @echo $(Q)# 2) rees - Readelf dumps #$(Q)
457 @echo $(Q)# 3) elfdmps - Classic objdump output for final elfs #$(Q)
458 @echo $(Q)# 4) objdmps - Classic objdump output for each object file #$(Q)
460 @echo $(Q)# When doing a full build the following steps are taken: #$(Q)
462 @echo $(Q)# 1) Pre-process all of the C files #$(Q)
463 @echo $(Q)# 2) Compile all preprocessed C files into assembly files #$(Q)
464 @echo $(Q)# 3) Assemble all assembly files into object files #$(Q)
465 @echo $(Q)# 4) Link each decoder without garbage collection #$(Q)
466 @echo $(Q)# 5) Produce a memory map for each elf #$(Q)
467 @echo $(Q)# 6) Produce a readelf dump for each elf #$(Q)
468 @echo $(Q)# 7) Dump the contents of each decoders elf #$(Q)
469 @echo $(Q)# 8) Dump the contents of all object files #$(Q)
470 @echo $(Q)# 9) Link each decoder with garbage collection and reporting turned on #$(Q)
471 @echo $(Q)# 10) Produce an s19 loadable firmware file for each elf #$(Q)
472 @echo $(Q)# 11) Measure each binary image approximately #$(Q)
473 @echo $(Q)# 12) Measure each decoder object file #$(Q)
474 @echo $(Q)# 13) Measure each other object file and summarise #$(Q)
476 @echo $(Q)# The release target: #$(Q)
478 @echo $(Q)# This target is purely for use by lead developers to produce a file set #$(Q)
479 @echo $(Q)# that is suitable for release and distribution to users and interested #$(Q)
480 @echo $(Q)# parties. The steps performed are listed below: #$(Q)
482 @echo $(Q)# 1) Checks that the repository is consistent #$(Q)
483 @echo $(Q)# 2) Performs a full clean #$(Q)
484 @echo $(Q)# 4) Removes the doxygen files #$(Q)
485 @echo $(Q)# 5) Builds binaries for each decoder type #$(Q)
486 @echo $(Q)# 7) Generates a new doxygen site #$(Q)
487 @echo $(Q)# 8) Performs a full clean #$(Q)
488 @echo $(Q)# 9) Commits the release files #$(Q)
489 @echo $(Q)# 10) Asks for a tag name and tag message #$(Q)
490 @echo $(Q)# 11) Tags the release at the automatic commit point #$(Q)
491 @echo $(Q)# 12) Generates md5 and sha1 checksums into the distribution directory #$(Q)
492 @echo $(Q)# 13) Zips the binaries into the distribution directory #$(Q)
493 @echo $(Q)# 14) Zips the doxygen site into the distribution directory #$(Q)
494 @echo $(Q)# 15) Zips the documentation into the distribution directory #$(Q)
495 @echo $(Q)# 16) Zips the repository into the distribution directory #$(Q)
496 @echo $(Q)# 17) Zips the source code into the distribution directory #$(Q)
498 @echo $(Q)# At that point the developer in charge of release has only to upload #$(Q)
499 @echo $(Q)# the files found in the distribution directory to appropriate locations #$(Q)
500 @echo $(Q)# and publicise the fact that a new release has been performed! This #$(Q)
501 @echo $(Q)# automation removes most opportunity for mistakes and makes release #$(Q)
502 @echo $(Q)# quality consistent between each successive release cycle! #$(Q)
504 @echo $(Q)# Unlisted targets: #$(Q)
506 @echo $(Q)# Additionally any of the output files can be used as a target directly. #$(Q)
507 @echo $(Q)# This is perfect for building only what is required for a specific s19. #$(Q)
508 @echo $(Q)# It is also perfect for working with a single file as you don't have to #$(Q)
509 @echo $(Q)# wait for other unrelated things to build first nor do you have to wait #$(Q)
510 @echo $(Q)# for other files to continue building after yours is successful. Before #$(Q)
511 @echo $(Q)# using individual output files for targets, please run 'make dirs'. #$(Q)
513 @echo $(Q)# Common goals: #$(Q)
515 @echo $(Q)# You most likely just want to run \"make s19\" or \"make clean\", do that! #$(Q)
517 @echo $(Q)# To build with a specific compiled in configuration do this instead: #$(Q)
519 @echo $(Q)# CLIFLAGS=\"YOURBUILDNAME\" make clean s19 #$(Q)
521 @echo $(Q)################################################################################$(Q)
526 ################################################################################
527 # All Target Dependencies #
528 ################################################################################
531 # Build everything the long way
532 all: alldebug gcsizes sizes size
533 # Multi stage compilation
535 # Multi stage compilation with garbage collection
537 # Clean all except release
538 clean: cleandep cleanasm cleanobj cleanout cleanppc cleans19 cleandebug
540 alldebug: maps rees elfdmps objdmps
541 # Load the s19 of your choice
542 #install: clean slow loader
544 release: testgit relbuildfull tagrelease
545 package: relbuildfull relpack1 relpack2 zipsite
546 publish: package deploydoxy deploy
547 publishnodoxy: packagenodoxy deploy
548 packagenodoxy: relbuildfirmware relpack1 relpack2
549 relbuildfull: clean cleandoxy gendoxy s19
550 relbuildfirmware: clean s19
551 relpack1: md5sums sha1sums s19zips
552 relpack2: zipdocs zipmain zipsrc
555 # Force dates and versions to be up to date
556 $(PPCDIR)/globalConstants.pp.c: .FORCE
560 ################################################################################
561 # Debug Target Definitions #
562 ################################################################################
566 @echo $(Q)################################################################################$(Q)
567 @echo $(Q)# Generating memory maps.... #$(Q)
568 @echo $(Q)################################################################################$(Q)
570 maps: link mapsmsg $(ALLMAPS)
572 $(BUGDIR)/%.map: $(OUTDIR)/%.elf $(BUGDIR)
577 @echo $(Q)################################################################################$(Q)
578 @echo $(Q)# Reading all elf files... #$(Q)
579 @echo $(Q)################################################################################$(Q)
581 rees: link reesmsg $(ALLREAD)
583 $(BUGDIR)/%.ree: $(OUTDIR)/%.elf $(BUGDIR)
588 @echo $(Q)################################################################################$(Q)
589 @echo $(Q)# Dumping all elf files... #$(Q)
590 @echo $(Q)################################################################################$(Q)
592 elfdmps: link elfdmpsmsg $(ALLDMPS)
594 $(BUGDIR)/%.dmp: $(OUTDIR)/%.elf $(BUGDIR)
595 $(DUMP) -spSd $< > $@
599 @echo $(Q)################################################################################$(Q)
600 @echo $(Q)# Dumping all object files.... #$(Q)
601 @echo $(Q)################################################################################$(Q)
603 objdmps: assemble objdmpmsg $(DUMPS) $(DUMPSRPM)
605 $(BUGDIR)/%.dmp: $(OBJDIR)/%.o $(BUGDIR)
606 $(DUMP) -spSd $< > $@
611 ################################################################################
612 # Link and Copy Target Definitions #
613 ################################################################################
617 @echo $(Q)################################################################################$(Q)
618 @echo $(Q)# Linking the Objects into an ELF... #$(Q)
619 @echo $(Q)################################################################################$(Q)
621 link: assemble linkmsg $(ALLELFS)
623 # link the object files into an elf executable
624 $(OUTDIR)/$(LABEL)-%.elf: $(OBJDIR)/$(DECDIR)/%.o $(OBJECTS) $(HANDOBJECTS) $(XGOBJECTS) $(OUTDIR)
625 @echo $(Q)################################################################################$(Q)
626 @echo $(Q)# Linking $@ ...$(Q)
627 @echo $(Q)################################################################################$(Q)
628 $(GCC) $(GCCOPTS) -Wl,$(LINKOPTS) -o $@ $(OBJECTS) $(HANDOBJECTS) $(XGOBJECTS) $<
632 @echo $(Q)################################################################################$(Q)
633 @echo $(Q)# Linking the Objects into an ELF... #$(Q)
634 @echo $(Q)################################################################################$(Q)
636 gclink: assemble linkmsg $(GCDELFS)
638 # link the object files into an elf executable with gc enabled
639 $(OUTDIR)/$(LABEL)-%.gc.elf: $(OBJDIR)/$(DECDIR)/%.o $(OBJECTS) $(HANDOBJECTS) $(XGOBJECTS) $(OUTDIR)
640 @echo $(Q)################################################################################$(Q)
641 @echo $(Q)# Linking $@ ...$(Q)
642 @echo $(Q)################################################################################$(Q)
643 $(GCC) $(GCCOPTS) -Wl,$(LINKOPTSGC) -o $@ $(OBJECTS) $(HANDOBJECTS) $(XGOBJECTS) $<
644 # The links with garbage collection are to ensure that there are no warnings
645 # TODO find out how to stop .tramp from being collected (or inserted)!
646 # This will be the only way once Sean's stuff is done and distributed, I can't wait to cut all this bullshit out!
650 @echo $(Q)################################################################################$(Q)
651 @echo $(Q)# Building The S19 Files.... #$(Q)
652 @echo $(Q)################################################################################$(Q)
654 s19: link s19msg $(ALLS19S)
655 # the gc dependency is temporary until i figure out if the .tramp removal is an issue or not.
657 # Generate the loadable s19 firmware files
658 $(S19DIR)/%.s19: $(OUTDIR)/%.elf $(S19DIR)
659 @echo $(Q)################################################################################$(Q)
660 @echo $(Q)# Building $(@F) ...$(Q)
661 @echo $(Q)################################################################################$(Q)
662 $(COPY) $(COPYOPTS) $< $(@F)
667 @echo $(Q)################################################################################$(Q)
668 @echo $(Q)# Measuring The S19 Files... #$(Q)
669 @echo $(Q)################################################################################$(Q)
671 sizes: s19 sizesmsg $(ALLSIZES) $(ALLDUMMY)
674 # Roughly measure the s19 sizes
675 $(OUTDIR)/%.txt: $(S19DIR)/% $(OUTDIR)
676 echo $(shell cat $< | wc -l) $(Q)* 16$(Q) > $@
678 # Have to do this in two stages to allow $(shell exp) use and portability to windows
679 $(OUTDIR)/%.dummy: $(OUTDIR)/% $(OUTDIR)
680 echo $(Q)Flash image size is$(Q) $(shell cat $< | bc -l) $(Q)bytes for $<$(Q)
684 @echo $(Q)################################################################################$(Q)
685 @echo $(Q)# Building The GC S19 Files.... #$(Q)
686 @echo $(Q)################################################################################$(Q)
688 gcs19: gclink gcs19msg $(GCDS19S)
690 # Generate the garbage collected s19 files temporarily
691 $(S19DIR)/%.s19: $(OUTDIR)/%.elf $(S19DIR)
692 @echo $(Q)################################################################################$(Q)
693 @echo $(Q)# Building $(@F) ...$(Q)
694 @echo $(Q)################################################################################$(Q)
695 $(COPY) $(COPYOPTS) $< $(@F)
699 @echo $(Q)################################################################################$(Q)
700 @echo $(Q)# Measuring The GC S19 Files... #$(Q)
701 @echo $(Q)################################################################################$(Q)
703 gcsizes: gcs19 gcsizesmsg $(GCDSIZES) $(GCDDUMMY)
705 # Roughly measure the gc s19 sizes
706 $(OUTDIR)/%.txt: $(S19DIR)/% $(OUTDIR)
707 @echo $(shell cat $< | wc -l) $(Q)* 16$(Q) > $@
709 # Have to do this in two stages to allow $(shell exp) use and portability to windows
710 $(OUTDIR)/%.dummy: $(OUTDIR)/% $(OUTDIR)
711 @echo $(Q)Flash image size is$(Q) $(shell cat $< | bc -l) $(Q)bytes for $<$(Q)
717 ################################################################################
718 # Size Measuring Target Definition #
719 ################################################################################
722 size: assemble # TODO this should be run for each s19 target with only the one rpm .o file
723 @echo $(Q)################################################################################$(Q)
724 @echo $(Q)# Measuring The Decoder Binaries... #$(Q)
725 @echo $(Q)################################################################################$(Q)
726 $(SIZE) $(OBJECTSRPM)
727 @echo $(Q)################################################################################$(Q)
728 @echo $(Q)# Measuring All Other Binaries... #$(Q)
729 @echo $(Q)################################################################################$(Q)
730 $(SIZE) -t $(OBJECTS)
731 @echo $(Q)################################################################################$(Q)
732 @echo $(Q)# Add one decoder to the total above and #$(Q)
733 @echo $(Q)# subtract the size reported for freeEMS.o #$(Q)
734 @echo $(Q)# this will give you the actual image size #$(Q)
735 @echo $(Q)################################################################################$(Q)
737 @echo $(Q)# Thank you for building FreeEMS firmware!!! #$(Q)
739 @echo $(Q)################################################################################$(Q)
744 ################################################################################
745 # Preprocess, Compile and Assemble Target Definitions #
746 ################################################################################
750 @echo $(Q)################################################################################$(Q)
751 @echo $(Q)# Generating the dependencies... #$(Q)
752 @echo $(Q)################################################################################$(Q)
754 dependencies: dependenciesmsg $(DEPENDENCIES) $(DEPENDENCIESRPM) $(DDEPENDENCIES) $(DDEPENDENCIESRPM)
756 # Generate dependency files for recompilation on change semantics
757 $(DEPENDENCIES) $(DEPENDENCIESRPM): $(DEPDIR)/%.d: %.c $(ALLH)
758 $(GCC) $(CLIBUILD) $(CLIFLAGSARG) -MM -MF $@ -MT $(PPCDIR)/$*.pp.c $<
759 # Generate dependency files for the dependency files...
760 $(DDEPENDENCIES) $(DDEPENDENCIESRPM): $(DEPDIR)/%.dd: %.c $(ALLH)
761 $(GCC) $(CLIBUILD) $(CLIFLAGSARG) -MM -MF $@ -MT $(DEPDIR)/$*.d $<
765 @echo $(Q)################################################################################$(Q)
766 @echo $(Q)# Running the C Pre Processor... #$(Q)
767 @echo $(Q)################################################################################$(Q)
769 preprocess: preprocessmsg $(PREPROCESSED) $(PREPROCESSEDRPM)
771 # Generate preprocessed source files to examine
772 $(PPCDIR)/%.pp.c: %.c $(ALLH) $(PPCDIR)
773 $(GCC) $(GCCOPTS) -D BASE_FILE_NAME=\"$(*F)\" -E $< > $@
774 $(PPCDIR)/decoders/%.pp.c: decoders/%.c $(ALLH) $(PPCDIR)
775 $(GCC) $(GCCOPTS) -D BASE_FILE_NAME=\"$(*F)\" -E $< > $@
779 @echo $(Q)################################################################################$(Q)
780 @echo $(Q)# Compiling PPC to Assembly... #$(Q)
781 @echo $(Q)################################################################################$(Q)
783 compile: preprocess compilemsg $(ASSEMBLIES) $(ASSEMBLIESRPM)
785 # Generate assembly files to examine
786 $(ASMDIR)/%.s: $(PPCDIR)/%.pp.c $(ASMDIR)
787 $(GCC) -g $(GCCOPTS) -x cpp-output -S -o $@ $<
791 @echo $(Q)################################################################################$(Q)
792 @echo $(Q)# Assembling Object Files... #$(Q)
793 @echo $(Q)################################################################################$(Q)
795 assemble: compile assemblemsg $(OBJECTS) $(HANDOBJECTS) $(OBJECTSRPM) $(XGOBJECTS)
797 # Generate object files to link
798 $(OBJDIR)/%.o: $(ASMDIR)/%.s $(OBJDIR)
799 $(GCC) $(GCCOPTS) -c -o $@ $<
801 $(OBJDIR)/%.o: $(HANDASMDIR)/%.s $(OBJDIR)
802 $(GCC) -g $(GCCOPTS) -c -o $@ $<
804 $(XGOBJDIR)/%.o: $(XGASMDIR)/%.s $(XGOBJDIR)
809 ################################################################################
810 # Release Procedure Target Definitions #
811 ################################################################################
816 @echo "################################################################################"
817 @echo
"# Checking git status... #"
818 @echo
"################################################################################"
819 @echo
"Are we on master?"
820 test `git symbolic-ref HEAD` = refs
/heads
/master
821 @echo
"Is everything checked in?"
822 test `git status -s | wc -l` -eq
0
823 @echo
"Fetching from origin..."
825 @echo
"Are we behind?"
826 test `git rev-list \`git show-ref
--hash refs
/heads
/master\
`..\`git show-ref
--hash refs
/remotes
/origin/master\
` | wc -l` -eq
0
827 @echo
"Are we ahead?"
828 test `git rev-list \`git show-ref
--hash refs
/remotes
/origin/master\
`..\`git show-ref
--hash refs
/heads
/master\
` | wc -l` -eq
0
832 @echo
$(Q
)################################################################################$(Q)
833 @echo
$(Q
)# Generating MD5 Sums... #$(Q)
834 @echo
$(Q
)################################################################################$(Q)
836 md5sums
: s19 md5sumsmsg
$(ALLMD5S
)
838 $(FIRMWAREDISTRIBUTIONDIR
)/%.s19.md5
: $(S19DIR
)/%.s19 distributiondir
843 @echo
$(Q
)################################################################################$(Q)
844 @echo
$(Q
)# Generating SHA1 Sums... #$(Q)
845 @echo
$(Q
)################################################################################$(Q)
847 sha1sums
: s19 sha1sumsmsg
$(ALLSHA1S
)
849 $(FIRMWAREDISTRIBUTIONDIR
)/%.s19.sha1
: $(S19DIR
)/%.s19 distributiondir
856 @echo
$(Q
)################################################################################$(Q)
857 @echo
$(Q
)# Zipping S19s... #$(Q)
858 @echo
$(Q
)################################################################################$(Q)
860 s19zips
: s19 s19zipsmsg
$(ALLS19ZIPS
)
862 $(FIRMWAREDISTRIBUTIONDIR
)/%.s19.zip
: $(S19DIR
)/%.s19 distributiondir
873 tagrelease
: tagname tagmessage
874 git tag
-F
$(RELTAG
) `cat $(TAGNAME)` HEAD
877 zipmain
: distributiondir
878 cd ..
/..
/ ; git archive
--format
=zip
--prefix=$(LABEL
)/ HEAD
> .
/tmp
/$(DISTRIBUTIONDIR
)/$(LABEL
)-full.zip
;cd
-
880 zipdocs
: distributiondir
881 cd ..
/..
/ ; git archive
--format
=zip
--prefix=$(LABEL
)- HEAD docs
/ > .
/tmp
/$(DISTRIBUTIONDIR
)/$(LABEL
)-docs.zip
;cd
-
884 cd ..
/..
/ ; ( cat docs
/Doxyfile
; echo
"PROJECT_NUMBER=$(FIRMWARE_VERSION)" ) | doxygen
- | grep Warning
> src
/doxygen.output
;cd
-
886 zipsite
: distributiondir gendoxy
887 cd ..
/..
/docs
/ ; zip
-r
$(DISTRIBUTIONDIR
)/$(LABEL
)-doxygen-html.zip doxygen-html
/;cd
-
889 zipsrc
: distributiondir
890 cd ..
/..
/ ; git archive
--format
=zip
--prefix=$(LABEL
)- HEAD src
/ > .
/tmp
/$(DISTRIBUTIONDIR
)/$(LABEL
)-src.zip
;cd
-
892 deploy
: distributiondir
893 scp
-r
$(DISTRIBUTIONDIR
) raptor
:/home
/firmware
/releases
/
896 scp
-r
$(DISTRIBUTIONDIR
)/$(LABEL
)-doxygen-html.zip raptor
:/home
/docs
/releases
/
897 ssh raptor unzip
/home
/docs
/releases
/$(LABEL
)-doxygen-html.zip
-d
/home
/docs
/releases
/
898 ssh raptor mv
/home
/docs
/releases
/doxygen-html
/ /home
/docs
/releases
/$(FIRMWARE_VERSION
)
903 ################################################################################
904 # Create Directory Target Definitions #
905 ################################################################################
907 # Assembly, release and inc directories don't get removed.
909 dirs
: $(BUGDIR
) $(S19DIR
) $(PPCDIR
) $(OUTDIR
) $(OBJDIR
) $(XGOBJDIR
) $(ASMDIR
)
912 @echo
$(Q
)################################################################################$(Q)
913 @echo
$(Q
)# Creating the debug directory.... #$(Q)
914 @echo
$(Q
)################################################################################$(Q)
915 $(MKDIR
) $(BUGDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
916 rmdir
$(BUGDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
917 $(MKDIR
) $(BUGDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
918 rmdir
$(BUGDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
921 @echo
$(Q
)################################################################################$(Q)
922 @echo
$(Q
)# Creating the firmware directory... #$(Q)
923 @echo
$(Q
)################################################################################$(Q)
924 $(MKDIR
) $(S19DIR
)$(PATHSEP
)hack
925 rmdir
$(S19DIR
)$(PATHSEP
)hack
928 @echo
$(Q
)################################################################################$(Q)
929 @echo
$(Q
)# Creating the preprocessedc directory.... #$(Q)
930 @echo
$(Q
)################################################################################$(Q)
931 $(MKDIR
) $(PPCDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
932 rmdir
$(PPCDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
933 $(MKDIR
) $(PPCDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
934 rmdir
$(PPCDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
937 @echo
$(Q
)################################################################################$(Q)
938 @echo
$(Q
)# Creating the assembly directory... #$(Q)
939 @echo
$(Q
)################################################################################$(Q)
940 $(MKDIR
) $(ASMDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
941 rmdir
$(ASMDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
942 $(MKDIR
) $(ASMDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
943 rmdir
$(ASMDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
946 @echo
$(Q
)################################################################################$(Q)
947 @echo
$(Q
)# Creating the output directory... #$(Q)
948 @echo
$(Q
)################################################################################$(Q)
949 $(MKDIR
) $(OUTDIR
)$(PATHSEP
)hack
950 rmdir
$(OUTDIR
)$(PATHSEP
)hack
953 @echo
$(Q
)################################################################################$(Q)
954 @echo
$(Q
)# Creating the object directory... #$(Q)
955 @echo
$(Q
)################################################################################$(Q)
956 $(MKDIR
) $(OBJDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
957 rmdir
$(OBJDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)hack
958 $(MKDIR
) $(OBJDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
959 rmdir
$(OBJDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)hack
962 @echo
$(Q
)################################################################################$(Q)
963 @echo
$(Q
)# Creating the xgate object directory... #$(Q)
964 @echo
$(Q
)################################################################################$(Q)
965 $(MKDIR
) $(XGOBJDIR
)$(PATHSEP
)hack
966 rmdir
$(XGOBJDIR
)$(PATHSEP
)hack
969 @echo
$(Q
)################################################################################$(Q)
970 @echo
$(Q
)# Creating the distribution directory... #$(Q)
971 @echo
$(Q
)################################################################################$(Q)
972 $(MKDIR
) $(FIRMWAREDISTRIBUTIONDIR
)$(PATHSEP
)hack
973 rmdir
$(FIRMWAREDISTRIBUTIONDIR
)$(PATHSEP
)hack
978 ################################################################################
979 # Clean Target Definitions #
980 ################################################################################
983 @echo
$(Q
)################################################################################$(Q)
984 @echo
$(Q
)# Removing generated assembly files.... #$(Q)
985 @echo
$(Q
)################################################################################$(Q)
989 @echo
$(Q
)################################################################################$(Q)
990 @echo
$(Q
)# Removing pre-processed C output directory... #$(Q)
991 @echo
$(Q
)################################################################################$(Q)
992 $(RM
) $(DEPDIR
)$(PATHSEP
)*.d
$(DEPDIR
)$(PATHSEP
)*.dd
993 $(RM
) $(DEPDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)*.d
$(DEPDIR
)$(PATHSEP
)$(DECDIR
)$(PATHSEP
)*.dd
994 $(RM
) $(DEPDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)*.d
$(DEPDIR
)$(PATHSEP
)$(DATADIR
)$(PATHSEP
)*.dd
997 @echo
$(Q
)################################################################################$(Q)
998 @echo
$(Q
)# Removing pre-processed C output directory... #$(Q)
999 @echo
$(Q
)################################################################################$(Q)
1003 @echo
$(Q
)################################################################################$(Q)
1004 @echo
$(Q
)# Removing object directory... #$(Q)
1005 @echo
$(Q
)################################################################################$(Q)
1009 @echo
$(Q
)################################################################################$(Q)
1010 @echo
$(Q
)# Removing link output directory... #$(Q)
1011 @echo
$(Q
)################################################################################$(Q)
1015 @echo
$(Q
)################################################################################$(Q)
1016 @echo
$(Q
)# Removing s19 directory... #$(Q)
1017 @echo
$(Q
)################################################################################$(Q)
1021 @echo
$(Q
)################################################################################$(Q)
1022 @echo
$(Q
)# Removing debug directory... #$(Q)
1023 @echo
$(Q
)################################################################################$(Q)
1027 @echo
$(Q
)################################################################################$(Q)
1028 @echo
$(Q
)# Removing Doxygen HTML... #$(Q)
1029 @echo
$(Q
)################################################################################$(Q)
1030 $(RM
) ..
/..
/docs
/doxygen-html
/
1033 ################################################################################
1034 # Declare targets that aren't real files #
1035 ################################################################################
1038 # Aggregators top level
1039 .PHONY
: all slow slowgc single help dirs
1041 # Aggregators middle level
1042 .PHONY
: dependencies preprocess compile assemble link gclink s19 gcs19 sizes gcsizes
1044 # Aggregators debug level
1045 .PHONY
: alldebug maps rees objdmps elfdmps size
1048 .PHONY
: release relpack1 relpack2 package packagenodoxy publish publishnodoxy
1049 .PHONY
: rebuildfull rebuildnodoxy relbuildfirmware deploy deploydoxy
1050 .PHONY
: md5sums sha1sums s19zips sha1sumsgc s19zips s19zipsgc
1051 .PHONY
: testgit tagname tagmessage tagrelease
1052 .PHONY
: zipmain zipdocs zipsite zipsrc
1055 .PHONY
: mapsmsg reesmsg elfdmpsmsg objdmpmsg linkmsg gclinkmsg
1056 .PHONY
: s19msg gcs19msg preprocessmsg compilemsg assemblemsg
1057 .PHONY
: md5sumsmsg sha1sumsmsg s19zipsmsg
1060 .PHONY
: clean cleandep cleanasm cleanppc cleanobj cleanout cleans19 cleandebug cleandoxy
1062 # Lonely documentation target :-(