|
1 # |
|
2 # |
|
3 # |
|
4 # Copyright (C) 1997-2008 by Dimitri van Heesch. |
|
5 # |
|
6 # Permission to use, copy, modify, and distribute this software and its |
|
7 # documentation under the terms of the GNU General Public License is hereby |
|
8 # granted. No representations are made about the suitability of this software |
|
9 # for any purpose. It is provided "as is" without express or implied warranty. |
|
10 # See the GNU General Public License for more details. |
|
11 # |
|
12 # Documents produced by Doxygen are derivative works derived from the |
|
13 # input used in their production; they are not affected by this license. |
|
14 #! |
|
15 #! doxygen.t: This is a custom template for building Doxygen |
|
16 #! |
|
17 #$ IncludeTemplate("lib.t"); |
|
18 |
|
19 LEX = flex |
|
20 YACC = bison |
|
21 INCBUFSIZE = $(PERL) increasebuffer.pl |
|
22 |
|
23 #${ |
|
24 sub GenerateDep { |
|
25 my($obj,$src,$dep) = @_; |
|
26 my(@objv,$srcv,$i,$s,$o,$d,$c); |
|
27 @objv = split(/\s+/,$obj); |
|
28 @srcv = split(/\s+/,$src); |
|
29 for $i ( 0..$#objv ) { |
|
30 $s = $srcv[$i]; |
|
31 $o = $objv[$i]; |
|
32 next if $s eq ""; |
|
33 $text .= $o . ": " . $s; |
|
34 $text .= " ${linebreak}\n\t\t" . $dep if $dep ne ""; |
|
35 if ( $moc_output{$s} ne "" ) { |
|
36 $text .= " ${linebreak}\n\t\t" . $moc_output{$s}; |
|
37 } |
|
38 $d = &make_depend($s); |
|
39 $text .= " ${linebreak}\n\t\t" . $d if $d ne ""; |
|
40 $text .= "\n"; |
|
41 } |
|
42 chop $text; |
|
43 } |
|
44 #$} |
|
45 |
|
46 #################### |
|
47 |
|
48 #$ GenerateDep("scanner.cpp","scanner.l"); |
|
49 $(LEX) -PscanYY -t scanner.l | $(INCBUFSIZE) >scanner.cpp |
|
50 |
|
51 #$ GenerateDep("code.cpp","code.l"); |
|
52 $(LEX) -PcodeYY -t code.l | $(INCBUFSIZE) >code.cpp |
|
53 |
|
54 #$ GenerateDep("pyscanner.cpp","pyscanner.l"); |
|
55 $(LEX) -PpyscanYY -t pyscanner.l | $(INCBUFSIZE) >pyscanner.cpp |
|
56 |
|
57 #$ GenerateDep("pycode.cpp","pycode.l"); |
|
58 $(LEX) -PpycodeYY -t pycode.l | $(INCBUFSIZE) >pycode.cpp |
|
59 |
|
60 #$ GenerateDep("fortranscanner.cpp","fortranscanner.l"); |
|
61 $(LEX) -i -PfscanYY -t fortranscanner.l | $(INCBUFSIZE) >fortranscanner.cpp |
|
62 |
|
63 #$ GenerateDep("fortrancode.cpp","fortrancode.l"); |
|
64 $(LEX) -i -PfcodeYY -t fortrancode.l | $(INCBUFSIZE) >fortrancode.cpp |
|
65 |
|
66 #$ GenerateDep("vhdlscanner.cpp","vhdlscanner.l"); |
|
67 $(LEX) -i -PvhdlscanYY -t vhdlscanner.l | $(INCBUFSIZE) >vhdlscanner.cpp |
|
68 |
|
69 #$ GenerateDep("vhdlcode.cpp","vhdlcode.l"); |
|
70 $(LEX) -i -PvhdlcodeYY -t vhdlcode.l | $(INCBUFSIZE) >vhdlcode.cpp |
|
71 |
|
72 #$ GenerateDep("pre.cpp","pre.l"); |
|
73 $(LEX) -PpreYY -t pre.l | $(INCBUFSIZE) >pre.cpp |
|
74 |
|
75 #$ GenerateDep("declinfo.cpp","declinfo.l"); |
|
76 $(LEX) -PdeclinfoYY -t declinfo.l | $(INCBUFSIZE) >declinfo.cpp |
|
77 |
|
78 #$ GenerateDep("defargs.cpp","defargs.l"); |
|
79 $(LEX) -PdefargsYY -t defargs.l | $(INCBUFSIZE) >defargs.cpp |
|
80 |
|
81 #$ GenerateDep("doctokenizer.cpp","doctokenizer.l"); |
|
82 $(LEX) -PdoctokenizerYY -t doctokenizer.l | $(INCBUFSIZE) >doctokenizer.cpp |
|
83 |
|
84 #$ GenerateDep("commentcnv.cpp","commentcnv.l"); |
|
85 $(LEX) -PcommentcnvYY -t commentcnv.l | $(INCBUFSIZE) >commentcnv.cpp |
|
86 |
|
87 #$GenerateDep("commentscan.cpp","commentscan.l"); |
|
88 $(LEX) -PcommentScanYY -t commentscan.l | $(INCBUFSIZE) >commentscan.cpp |
|
89 |
|
90 #$ GenerateDep("ce_lex.cpp","constexp.l","ce_parse.h"); |
|
91 $(LEX) -PcppExpYY -t constexp.l | $(INCBUFSIZE) >ce_lex.cpp |
|
92 |
|
93 #$ GenerateDep("ce_parse.cpp","constexp.y"); |
|
94 $(YACC) -l -p cppExpYY constexp.y -o ce_parse.cpp |
|
95 |
|
96 #$ GenerateDep("ce_parse.h","constexp.y"); |
|
97 $(YACC) -l -d -p cppExpYY constexp.y -o ce_parse.c |
|
98 -rm ce_parse.c |
|
99 |
|
100 TO_C_CMD=sed -e "s/\\\\/\\\\\\\\/g" -e "s/\"/\\\\\"/g" -e "s/^/\"/g" -e "s/$$/\\\\n\"/g" |
|
101 |
|
102 index_xsd.h: index.xsd |
|
103 cat index.xsd | $(TO_C_CMD) >index_xsd.h |
|
104 |
|
105 compound_xsd.h: compound.xsd |
|
106 cat compound.xsd | $(TO_C_CMD) >compound_xsd.h |
|
107 |
|
108 layout_default.h: layout_default.xml |
|
109 cat layout_default.xml | $(TO_C_CMD) >layout_default.h |
|
110 |
|
111 search_php.h: search.php |
|
112 cat search.php | $(TO_C_CMD) >search_php.h |
|
113 |
|
114 search_js.h: search.js |
|
115 cat search.js | $(TO_C_CMD) >search_js.h |
|
116 |
|
117 search_css.h: search.css |
|
118 cat search.css | $(TO_C_CMD) >search_css.h |
|
119 |
|
120 doxygen_css.h: doxygen.css |
|
121 cat doxygen.css | $(TO_C_CMD) >doxygen_css.h |
|
122 |