aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-21 20:11:25 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-21 20:11:25 +0000
commit4102382de738a843b4acd10172f14489483227a1 (patch)
tree51ae701062336e599de3c07188f53838e8d4dc88 /Makefile
parent23e4ce8f1b211b388be7533b684dabab193be587 (diff)
downloadbuild-4102382de738a843b4acd10172f14489483227a1.tar.gz
build-4102382de738a843b4acd10172f14489483227a1.tar.bz2
build-4102382de738a843b4acd10172f14489483227a1.tar.xz
build-4102382de738a843b4acd10172f14489483227a1.zip
We have a working Makefile, and no more Buildfile....I'll make a more general
Makefile later that I won't have to keep updating...
Diffstat (limited to '')
-rw-r--r--Makefile150
1 files changed, 115 insertions, 35 deletions
diff --git a/Makefile b/Makefile
index 9cba6a0..261f3d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
1.PHONY: all clean parser-header lexer-header build-header 1.PHONY: all clean parser-header lexer-header build-header
2 2
3.SILENT: all clean parser-header src/build.tab.c src/build.tab.o parser lexer-header src/build.yy.c src/build.yy.o lexer build-header src/builder.o src/main.o src/perform.o src/performfactory.o src/functionregexp.o src/functioncommandtolist.o src/performcommand.o src/functionfilesin.o src/functionfactory.o src/function.o src/functiontostring.o src/viewer.o src/functiondirectoriesin.o build 3.SILENT: all clean parser-header src/build.tab.c src/build.tab.o parser lexer-header src/build.yy.c src/build.yy.o lexer build-header src/viewerpercent.o src/targetfile.o src/functioncommandtolist.o src/cache.o src/targetfactory.o src/performcommand.o src/target.o src/viewerfactory.o src/regexp.o src/rule.o src/functiontargets.o src/functiontostring.o src/viewermake.o src/stringprocbuild.o src/functionfilesin.o src/performfactory.o src/build.o src/functionfactory.o src/action.o src/function.o src/functiondirectoriesin.o src/main.o src/functionregexp.o src/parser.o src/stringproc.o src/buildparser.o src/perform.o src/viewerplain.o src/viewer.o build
4 4
5all: parser-header parser lexer-header lexer build-header build 5all: parser-header parser lexer-header lexer build-header build
6 6
@@ -39,61 +39,125 @@ build-header:
39 echo 39 echo
40 echo "--- build ---" 40 echo "--- build ---"
41 41
42src/builder.o: src/builder.cpp 42src/viewerpercent.o: src/viewerpercent.cpp
43 echo " comp: src/builder.o" 43 echo " comp: src/viewerpercent.o"
44 g++ -c src/builder.cpp -ggdb -Ilibbu++/src -Isrc -o src/builder.o 44 g++ -c src/viewerpercent.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewerpercent.o
45 45
46src/main.o: src/main.cpp 46src/targetfile.o: src/targetfile.cpp
47 echo " comp: src/main.o" 47 echo " comp: src/targetfile.o"
48 g++ -c src/main.cpp -ggdb -Ilibbu++/src -Isrc -o src/main.o 48 g++ -c src/targetfile.cpp -ggdb -Ilibbu++/src -Isrc -o src/targetfile.o
49
50src/perform.o: src/perform.cpp
51 echo " comp: src/perform.o"
52 g++ -c src/perform.cpp -ggdb -Ilibbu++/src -Isrc -o src/perform.o
53
54src/performfactory.o: src/performfactory.cpp
55 echo " comp: src/performfactory.o"
56 g++ -c src/performfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/performfactory.o
57
58src/functionregexp.o: src/functionregexp.cpp
59 echo " comp: src/functionregexp.o"
60 g++ -c src/functionregexp.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionregexp.o
61 49
62src/functioncommandtolist.o: src/functioncommandtolist.cpp 50src/functioncommandtolist.o: src/functioncommandtolist.cpp
63 echo " comp: src/functioncommandtolist.o" 51 echo " comp: src/functioncommandtolist.o"
64 g++ -c src/functioncommandtolist.cpp -ggdb -Ilibbu++/src -Isrc -o src/functioncommandtolist.o 52 g++ -c src/functioncommandtolist.cpp -ggdb -Ilibbu++/src -Isrc -o src/functioncommandtolist.o
65 53
54src/cache.o: src/cache.cpp
55 echo " comp: src/cache.o"
56 g++ -c src/cache.cpp -ggdb -Ilibbu++/src -Isrc -o src/cache.o
57
58src/targetfactory.o: src/targetfactory.cpp
59 echo " comp: src/targetfactory.o"
60 g++ -c src/targetfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/targetfactory.o
61
66src/performcommand.o: src/performcommand.cpp 62src/performcommand.o: src/performcommand.cpp
67 echo " comp: src/performcommand.o" 63 echo " comp: src/performcommand.o"
68 g++ -c src/performcommand.cpp -ggdb -Ilibbu++/src -Isrc -o src/performcommand.o 64 g++ -c src/performcommand.cpp -ggdb -Ilibbu++/src -Isrc -o src/performcommand.o
69 65
66src/target.o: src/target.cpp
67 echo " comp: src/target.o"
68 g++ -c src/target.cpp -ggdb -Ilibbu++/src -Isrc -o src/target.o
69
70src/viewerfactory.o: src/viewerfactory.cpp
71 echo " comp: src/viewerfactory.o"
72 g++ -c src/viewerfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewerfactory.o
73
74src/regexp.o: src/regexp.cpp
75 echo " comp: src/regexp.o"
76 g++ -c src/regexp.cpp -ggdb -Ilibbu++/src -Isrc -o src/regexp.o
77
78src/rule.o: src/rule.cpp
79 echo " comp: src/rule.o"
80 g++ -c src/rule.cpp -ggdb -Ilibbu++/src -Isrc -o src/rule.o
81
82src/functiontargets.o: src/functiontargets.cpp
83 echo " comp: src/functiontargets.o"
84 g++ -c src/functiontargets.cpp -ggdb -Ilibbu++/src -Isrc -o src/functiontargets.o
85
86src/functiontostring.o: src/functiontostring.cpp
87 echo " comp: src/functiontostring.o"
88 g++ -c src/functiontostring.cpp -ggdb -Ilibbu++/src -Isrc -o src/functiontostring.o
89
90src/viewermake.o: src/viewermake.cpp
91 echo " comp: src/viewermake.o"
92 g++ -c src/viewermake.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewermake.o
93
94src/stringprocbuild.o: src/stringprocbuild.cpp
95 echo " comp: src/stringprocbuild.o"
96 g++ -c src/stringprocbuild.cpp -ggdb -Ilibbu++/src -Isrc -o src/stringprocbuild.o
97
70src/functionfilesin.o: src/functionfilesin.cpp 98src/functionfilesin.o: src/functionfilesin.cpp
71 echo " comp: src/functionfilesin.o" 99 echo " comp: src/functionfilesin.o"
72 g++ -c src/functionfilesin.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionfilesin.o 100 g++ -c src/functionfilesin.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionfilesin.o
73 101
102src/performfactory.o: src/performfactory.cpp
103 echo " comp: src/performfactory.o"
104 g++ -c src/performfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/performfactory.o
105
106src/build.o: src/build.cpp
107 echo " comp: src/build.o"
108 g++ -c src/build.cpp -ggdb -Ilibbu++/src -Isrc -o src/build.o
109
74src/functionfactory.o: src/functionfactory.cpp 110src/functionfactory.o: src/functionfactory.cpp
75 echo " comp: src/functionfactory.o" 111 echo " comp: src/functionfactory.o"
76 g++ -c src/functionfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionfactory.o 112 g++ -c src/functionfactory.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionfactory.o
77 113
114src/action.o: src/action.cpp
115 echo " comp: src/action.o"
116 g++ -c src/action.cpp -ggdb -Ilibbu++/src -Isrc -o src/action.o
117
78src/function.o: src/function.cpp 118src/function.o: src/function.cpp
79 echo " comp: src/function.o" 119 echo " comp: src/function.o"
80 g++ -c src/function.cpp -ggdb -Ilibbu++/src -Isrc -o src/function.o 120 g++ -c src/function.cpp -ggdb -Ilibbu++/src -Isrc -o src/function.o
81 121
82src/functiontostring.o: src/functiontostring.cpp 122src/functiondirectoriesin.o: src/functiondirectoriesin.cpp
83 echo " comp: src/functiontostring.o" 123 echo " comp: src/functiondirectoriesin.o"
84 g++ -c src/functiontostring.cpp -ggdb -Ilibbu++/src -Isrc -o src/functiontostring.o 124 g++ -c src/functiondirectoriesin.cpp -ggdb -Ilibbu++/src -Isrc -o src/functiondirectoriesin.o
125
126src/main.o: src/main.cpp
127 echo " comp: src/main.o"
128 g++ -c src/main.cpp -ggdb -Ilibbu++/src -Isrc -o src/main.o
129
130src/functionregexp.o: src/functionregexp.cpp
131 echo " comp: src/functionregexp.o"
132 g++ -c src/functionregexp.cpp -ggdb -Ilibbu++/src -Isrc -o src/functionregexp.o
133
134src/parser.o: src/parser.cpp
135 echo " comp: src/parser.o"
136 g++ -c src/parser.cpp -ggdb -Ilibbu++/src -Isrc -o src/parser.o
137
138src/stringproc.o: src/stringproc.cpp
139 echo " comp: src/stringproc.o"
140 g++ -c src/stringproc.cpp -ggdb -Ilibbu++/src -Isrc -o src/stringproc.o
141
142src/buildparser.o: src/buildparser.cpp
143 echo " comp: src/buildparser.o"
144 g++ -c src/buildparser.cpp -ggdb -Ilibbu++/src -Isrc -o src/buildparser.o
145
146src/perform.o: src/perform.cpp
147 echo " comp: src/perform.o"
148 g++ -c src/perform.cpp -ggdb -Ilibbu++/src -Isrc -o src/perform.o
149
150src/viewerplain.o: src/viewerplain.cpp
151 echo " comp: src/viewerplain.o"
152 g++ -c src/viewerplain.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewerplain.o
85 153
86src/viewer.o: src/viewer.cpp 154src/viewer.o: src/viewer.cpp
87 echo " comp: src/viewer.o" 155 echo " comp: src/viewer.o"
88 g++ -c src/viewer.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewer.o 156 g++ -c src/viewer.cpp -ggdb -Ilibbu++/src -Isrc -o src/viewer.o
89 157
90src/functiondirectoriesin.o: src/functiondirectoriesin.cpp 158build: src/functionfactory.o src/regexp.o src/viewerpercent.o src/targetfactory.o src/buildparser.o src/functiontargets.o src/stringprocbuild.o src/rule.o src/functioncommandtolist.o src/functiontostring.o src/action.o src/viewer.o src/main.o src/viewerfactory.o src/target.o src/performfactory.o src/build.o src/parser.o src/perform.o src/functiondirectoriesin.o src/performcommand.o src/function.o src/build.yy.o src/build.tab.o src/cache.o src/viewermake.o src/functionregexp.o src/functionfilesin.o src/viewerplain.o src/stringproc.o src/targetfile.o
91 echo " comp: src/functiondirectoriesin.o"
92 g++ -c src/functiondirectoriesin.cpp -ggdb -Ilibbu++/src -Isrc -o src/functiondirectoriesin.o
93
94build: src/functionfactory.o src/functiontostring.o src/perform.o src/functiondirectoriesin.o src/viewer.o src/main.o src/performcommand.o src/functionregexp.o src/builder.o src/build.yy.o src/functionfilesin.o src/function.o src/performfactory.o src/functioncommandtolist.o src/build.tab.o
95 echo " exe: build" 159 echo " exe: build"
96 g++ src/functionfactory.o src/functiontostring.o src/perform.o src/functiondirectoriesin.o src/viewer.o src/main.o src/performcommand.o src/functionregexp.o src/builder.o src/build.yy.o src/functionfilesin.o src/function.o src/performfactory.o src/functioncommandtolist.o src/build.tab.o -Llibbu++ -lbu++ -ldl -o build 160 g++ src/functionfactory.o src/regexp.o src/viewerpercent.o src/targetfactory.o src/buildparser.o src/functiontargets.o src/stringprocbuild.o src/rule.o src/functioncommandtolist.o src/functiontostring.o src/action.o src/viewer.o src/main.o src/viewerfactory.o src/target.o src/performfactory.o src/build.o src/parser.o src/perform.o src/functiondirectoriesin.o src/performcommand.o src/function.o src/build.yy.o src/build.tab.o src/cache.o src/viewermake.o src/functionregexp.o src/functionfilesin.o src/viewerplain.o src/stringproc.o src/targetfile.o -Llibbu++ -lbu++ -ldl -o build
97 161
98clean: 162clean:
99 -if [ -f src/build.tab.c ] ; then echo " rm: src/build.tab.c" ; rm src/build.tab.c ; fi 163 -if [ -f src/build.tab.c ] ; then echo " rm: src/build.tab.c" ; rm src/build.tab.c ; fi
@@ -102,18 +166,34 @@ clean:
102 -if [ -f src/build.yy.c ] ; then echo " rm: src/build.yy.c" ; rm src/build.yy.c ; fi 166 -if [ -f src/build.yy.c ] ; then echo " rm: src/build.yy.c" ; rm src/build.yy.c ; fi
103 -if [ -f src/build.yy.o ] ; then echo " rm: src/build.yy.o" ; rm src/build.yy.o ; fi 167 -if [ -f src/build.yy.o ] ; then echo " rm: src/build.yy.o" ; rm src/build.yy.o ; fi
104 -if [ -f lexer ] ; then echo " rm: lexer" ; rm lexer ; fi 168 -if [ -f lexer ] ; then echo " rm: lexer" ; rm lexer ; fi
105 -if [ -f src/builder.o ] ; then echo " rm: src/builder.o" ; rm src/builder.o ; fi 169 -if [ -f src/viewerpercent.o ] ; then echo " rm: src/viewerpercent.o" ; rm src/viewerpercent.o ; fi
106 -if [ -f src/main.o ] ; then echo " rm: src/main.o" ; rm src/main.o ; fi 170 -if [ -f src/targetfile.o ] ; then echo " rm: src/targetfile.o" ; rm src/targetfile.o ; fi
107 -if [ -f src/perform.o ] ; then echo " rm: src/perform.o" ; rm src/perform.o ; fi
108 -if [ -f src/performfactory.o ] ; then echo " rm: src/performfactory.o" ; rm src/performfactory.o ; fi
109 -if [ -f src/functionregexp.o ] ; then echo " rm: src/functionregexp.o" ; rm src/functionregexp.o ; fi
110 -if [ -f src/functioncommandtolist.o ] ; then echo " rm: src/functioncommandtolist.o" ; rm src/functioncommandtolist.o ; fi 171 -if [ -f src/functioncommandtolist.o ] ; then echo " rm: src/functioncommandtolist.o" ; rm src/functioncommandtolist.o ; fi
172 -if [ -f src/cache.o ] ; then echo " rm: src/cache.o" ; rm src/cache.o ; fi
173 -if [ -f src/targetfactory.o ] ; then echo " rm: src/targetfactory.o" ; rm src/targetfactory.o ; fi
111 -if [ -f src/performcommand.o ] ; then echo " rm: src/performcommand.o" ; rm src/performcommand.o ; fi 174 -if [ -f src/performcommand.o ] ; then echo " rm: src/performcommand.o" ; rm src/performcommand.o ; fi
175 -if [ -f src/target.o ] ; then echo " rm: src/target.o" ; rm src/target.o ; fi
176 -if [ -f src/viewerfactory.o ] ; then echo " rm: src/viewerfactory.o" ; rm src/viewerfactory.o ; fi
177 -if [ -f src/regexp.o ] ; then echo " rm: src/regexp.o" ; rm src/regexp.o ; fi
178 -if [ -f src/rule.o ] ; then echo " rm: src/rule.o" ; rm src/rule.o ; fi
179 -if [ -f src/functiontargets.o ] ; then echo " rm: src/functiontargets.o" ; rm src/functiontargets.o ; fi
180 -if [ -f src/functiontostring.o ] ; then echo " rm: src/functiontostring.o" ; rm src/functiontostring.o ; fi
181 -if [ -f src/viewermake.o ] ; then echo " rm: src/viewermake.o" ; rm src/viewermake.o ; fi
182 -if [ -f src/stringprocbuild.o ] ; then echo " rm: src/stringprocbuild.o" ; rm src/stringprocbuild.o ; fi
112 -if [ -f src/functionfilesin.o ] ; then echo " rm: src/functionfilesin.o" ; rm src/functionfilesin.o ; fi 183 -if [ -f src/functionfilesin.o ] ; then echo " rm: src/functionfilesin.o" ; rm src/functionfilesin.o ; fi
184 -if [ -f src/performfactory.o ] ; then echo " rm: src/performfactory.o" ; rm src/performfactory.o ; fi
185 -if [ -f src/build.o ] ; then echo " rm: src/build.o" ; rm src/build.o ; fi
113 -if [ -f src/functionfactory.o ] ; then echo " rm: src/functionfactory.o" ; rm src/functionfactory.o ; fi 186 -if [ -f src/functionfactory.o ] ; then echo " rm: src/functionfactory.o" ; rm src/functionfactory.o ; fi
187 -if [ -f src/action.o ] ; then echo " rm: src/action.o" ; rm src/action.o ; fi
114 -if [ -f src/function.o ] ; then echo " rm: src/function.o" ; rm src/function.o ; fi 188 -if [ -f src/function.o ] ; then echo " rm: src/function.o" ; rm src/function.o ; fi
115 -if [ -f src/functiontostring.o ] ; then echo " rm: src/functiontostring.o" ; rm src/functiontostring.o ; fi
116 -if [ -f src/viewer.o ] ; then echo " rm: src/viewer.o" ; rm src/viewer.o ; fi
117 -if [ -f src/functiondirectoriesin.o ] ; then echo " rm: src/functiondirectoriesin.o" ; rm src/functiondirectoriesin.o ; fi 189 -if [ -f src/functiondirectoriesin.o ] ; then echo " rm: src/functiondirectoriesin.o" ; rm src/functiondirectoriesin.o ; fi
190 -if [ -f src/main.o ] ; then echo " rm: src/main.o" ; rm src/main.o ; fi
191 -if [ -f src/functionregexp.o ] ; then echo " rm: src/functionregexp.o" ; rm src/functionregexp.o ; fi
192 -if [ -f src/parser.o ] ; then echo " rm: src/parser.o" ; rm src/parser.o ; fi
193 -if [ -f src/stringproc.o ] ; then echo " rm: src/stringproc.o" ; rm src/stringproc.o ; fi
194 -if [ -f src/buildparser.o ] ; then echo " rm: src/buildparser.o" ; rm src/buildparser.o ; fi
195 -if [ -f src/perform.o ] ; then echo " rm: src/perform.o" ; rm src/perform.o ; fi
196 -if [ -f src/viewerplain.o ] ; then echo " rm: src/viewerplain.o" ; rm src/viewerplain.o ; fi
197 -if [ -f src/viewer.o ] ; then echo " rm: src/viewer.o" ; rm src/viewer.o ; fi
118 -if [ -f build ] ; then echo " rm: build" ; rm build ; fi 198 -if [ -f build ] ; then echo " rm: build" ; rm build ; fi
119 199