Internship Report

Page 45

37

MakefileTemplate

CONFIG 1 2

3

.SECTION (COMMON)

.#

.(SECTION)(COMMON)

9

. # .SECTION(TB)(target dir=< for eg. ./TB >)

.SECTION(TB)

4

.SECTION(AdditionalSectionSameGNUmakefile)

5

.SECTION(AnotherSectionSameGNUmakefile) SECTION(AnotherSectionSameGNUmakefile)

6

.SECTION(SectionDifferentSameGNUmakefile)

7

.SECTION(Unused Section GNUmakefile)

8

Figure 18: Config and MakeTemplate files structure

1. A Small Perl based script. 2. Two files, for eg. named Config and MakeTemplate. 3. Each of them consisting of SECTIONS. 4. "GNUMakefile/s" generation from one or more of the defined SECTIONS. 5. Additional modifiers, for e.g.: specification of the Target directory. The final steps, before officially announcing the availability of the first version of makefile generation, were: a. to cope with the handling of more complex "Sections", with "variable" behavior such as the SLAVE and XML in the context of a generic script. b. Further optimization of "Config.txt" in direction file conciseness The general structure of the "Config.txt" and the "MakefileTemplate.txt" could be seen on the fig.18. The discussion with Dr. Eckmueller concerning the current status, gave us the bases of the possibilities to significantly shorten the lines comprising the "Config.txt". All variable definitions which could be used in more than one section were moved to the "Common" part. In addition, the length was reduced by specifying all additionally needed


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.