Fossil SCM

Fix makemake.tcl to generate main.mk as committed previously

benoit 2010-06-23 05:27 trunk
Commit 953d293c32ddf612958d8dd4e819e1a8bcf2af27
1 file changed +73 -35
+73 -35
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -97,21 +97,21 @@
9797
XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)
9898
9999
}
100100
puts -nonewline "SRC ="
101101
foreach s [lsort $src] {
102
- puts -nonewline " \\\n \$(SRCDIR)/$s.c"
102
+ puts -nonewline " \\\n \$(SRCDIR)\$(DIRSEP)$s.c"
103103
}
104104
puts "\n"
105105
puts -nonewline "TRANS_SRC ="
106106
foreach s [lsort $src] {
107107
puts -nonewline " \\\n ${s}_.c"
108108
}
109109
puts "\n"
110110
puts -nonewline "OBJ ="
111111
foreach s [lsort $src] {
112
- puts -nonewline " \\\n \$(OBJDIR)/$s.o"
112
+ puts -nonewline " \\\n \$(OBJDIR)\$(DIRSEP)$s.o"
113113
}
114114
puts "\n"
115115
puts "APPNAME = $name\$(E)"
116116
puts "\n"
117117
@@ -122,87 +122,125 @@
122122
mv $(APPNAME) $(INSTALLDIR)
123123
124124
$(OBJDIR):
125125
-mkdir $(OBJDIR)
126126
127
-translate: $(SRCDIR)/translate.c
128
- $(BCC) -o translate $(SRCDIR)/translate.c
129
-
130
-makeheaders: $(SRCDIR)/makeheaders.c
131
- $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
132
-
133
-mkindex: $(SRCDIR)/mkindex.c
134
- $(BCC) -o mkindex $(SRCDIR)/mkindex.c
127
+translate: $(SRCDIR)$(DIRSEP)translate.c
128
+ $(BCC) -o translate $(SRCDIR)$(DIRSEP)translate.c
129
+
130
+makeheaders: $(SRCDIR)$(DIRSEP)makeheaders.c
131
+ $(BCC) -o makeheaders $(SRCDIR)$(DIRSEP)makeheaders.c
132
+
133
+mkindex: $(SRCDIR)$(DIRSEP)mkindex.c
134
+ $(BCC) -o mkindex $(SRCDIR)$(DIRSEP)mkindex.c
135135
136136
# WARNING. DANGER. Running the testsuite modifies the repository the
137137
# build is done from, i.e. the checkout belongs to. Do not sync/push
138138
# the repository after running the tests.
139139
test: $(APPNAME)
140
- $(TCLSH) test/tester.tcl $(APPNAME)
140
+ $(TCLSH) test$(DIRSEP)tester.tcl $(APPNAME)
141141
142
-VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
142
+VERSION.h: $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest
143
+ifeq ($(OPERATING_SYSTEM),windows)
144
+ awk "{ printf \"#define MANIFEST_UUID \\\"%%s\\\"\n\", $$1}" \
145
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >VERSION.h
146
+ awk "{ printf \"#define MANIFEST_VERSION \\\"[%%.10s]\\\"\n\", $$1}" \
147
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >>VERSION.h
148
+ awk "$$1==\"D\"{printf \"#define MANIFEST_DATE \\\"%%s %%s\\\"\n\",\
149
+ substr($$2,1,10),substr($$2,12)}" \
150
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest >>VERSION.h
151
+else
143152
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
144
- $(SRCDIR)/../manifest.uuid >VERSION.h
153
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >VERSION.h
145154
awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' \
146
- $(SRCDIR)/../manifest.uuid >>VERSION.h
155
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >>VERSION.h
147156
awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
148157
substr($$2,1,10),substr($$2,12)}' \
149
- $(SRCDIR)/../manifest >>VERSION.h
158
+ $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest >>VERSION.h
159
+endif
150160
151
-$(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
152
- $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
161
+$(APPNAME): headers $(OBJ) $(OBJDIR)$(DIRSEP)sqlite3.o $(OBJDIR)$(DIRSEP)th.o $(OBJDIR)$(DIRSEP)th_lang.o
162
+ $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)$(DIRSEP)sqlite3.o $(OBJDIR)$(DIRSEP)th.o $(OBJDIR)$(DIRSEP)th_lang.o $(LIB)
153163
154164
# This rule prevents make from using its default rules to try build
155165
# an executable named "manifest" out of the file named "manifest.c"
156166
#
157
-$(SRCDIR)/../manifest:
167
+$(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest:
158168
# noop
159169
160170
clean:
161
- rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
171
+ifeq ($(OPERATING_SYSTEM),windows)
172
+ del $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) VERSION.h
173
+ del translate makeheaders mkindex page_index.h headers}
174
+set hfiles {}
175
+foreach s [lsort $src] {lappend hfiles $s.h}
176
+puts "\tdel $hfiles\n"
177
+puts {
178
+else
179
+ rm -f $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) VERSION.h
180
+ rm -f translate makeheaders mkindex page_index.h headers}
181
+
182
+set hfiles {}
183
+foreach s [lsort $src] {lappend hfiles $s.h}
184
+puts "\trm -f $hfiles\n"
185
+puts {
186
+endif
187
+
188
+cleanall:
189
+ifeq ($(OPERATING_SYSTEM),windows)
190
+ del $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) translate$(E) makeheaders$(E) mkindex$(E) VERSION.h
191
+ del translate makeheaders mkindex page_index.h headers}
192
+set hfiles {}
193
+foreach s [lsort $src] {lappend hfiles $s.h}
194
+puts "\tdel $hfiles\n"
195
+puts {
196
+else
197
+ rm -f $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) translate$(E) makeheaders$(E) mkindex$(E) VERSION.h
162198
rm -f translate makeheaders mkindex page_index.h headers}
163199
164200
set hfiles {}
165201
foreach s [lsort $src] {lappend hfiles $s.h}
166202
puts "\trm -f $hfiles\n"
203
+puts {
204
+endif}
167205
168206
set mhargs {}
169207
foreach s [lsort $src] {
170208
append mhargs " ${s}_.c:$s.h"
171209
set extra_h($s) {}
172210
}
173
-append mhargs " \$(SRCDIR)/sqlite3.h"
174
-append mhargs " \$(SRCDIR)/th.h"
211
+append mhargs " \$(SRCDIR)\$(DIRSEP)sqlite3.h"
212
+append mhargs " \$(SRCDIR)\$(DIRSEP)th.h"
175213
append mhargs " VERSION.h"
176214
puts "page_index.h: \$(TRANS_SRC) mkindex"
177
-puts "\t./mkindex \$(TRANS_SRC) >$@"
215
+puts "\t.\$(DIRSEP)mkindex \$(TRANS_SRC) >$@"
178216
puts "headers:\tpage_index.h makeheaders VERSION.h"
179
-puts "\t./makeheaders $mhargs"
217
+puts "\t.\$(DIRSEP)makeheaders $mhargs"
180218
puts "\ttouch headers"
181219
puts "headers: Makefile"
182220
puts "Makefile:"
183221
set extra_h(main) page_index.h
184222
185223
foreach s [lsort $src] {
186
- puts "${s}_.c:\t\$(SRCDIR)/$s.c translate"
187
- puts "\t./translate \$(SRCDIR)/$s.c >${s}_.c\n"
188
- puts "\$(OBJDIR)/$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
189
- puts "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c ${s}_.c\n"
224
+ puts "${s}_.c:\t\$(SRCDIR)\$(DIRSEP)$s.c translate"
225
+ puts "\t.\$(DIRSEP)translate \$(SRCDIR)\$(DIRSEP)$s.c >${s}_.c\n"
226
+ puts "\$(OBJDIR)\$(DIRSEP)$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)\$(DIRSEP)config.h"
227
+ puts "\t\$(XTCC) -o \$(OBJDIR)\$(DIRSEP)$s.o -c ${s}_.c\n"
190228
puts "$s.h:\theaders"
191
-# puts "\t./makeheaders $mhargs\n\ttouch headers\n"
192
-# puts "\t./makeheaders ${s}_.c:${s}.h\n"
229
+# puts "\t.\$(DIRSEP)makeheaders $mhargs\n\ttouch headers\n"
230
+# puts "\t.\$(DIRSEP)makeheaders ${s}_.c:${s}.h\n"
193231
}
194232
195233
196
-puts "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
234
+puts "\$(OBJDIR)\$(DIRSEP)sqlite3.o:\t\$(SRCDIR)\$(DIRSEP)sqlite3.c"
197235
set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
198236
append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
199237
#append opt " -DSQLITE_ENABLE_FTS3=1"
200238
append opt " -Dlocaltime=fossil_localtime"
201239
append opt " -DSQLITE_ENABLE_LOCKING_STYLE=0"
202
-puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
240
+puts "\t\$(XTCC) $opt -c \$(SRCDIR)\$(DIRSEP)sqlite3.c -o \$(OBJDIR)\$(DIRSEP)sqlite3.o\n"
203241
204
-puts "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
205
-puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
242
+puts "\$(OBJDIR)\$(DIRSEP)th.o:\t\$(SRCDIR)\$(DIRSEP)th.c"
243
+puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)\$(DIRSEP)th.c -o \$(OBJDIR)\$(DIRSEP)th.o\n"
206244
207
-puts "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
208
-puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
245
+puts "\$(OBJDIR)\$(DIRSEP)th_lang.o:\t\$(SRCDIR)\$(DIRSEP)th_lang.c"
246
+puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)\$(DIRSEP)th_lang.c -o \$(OBJDIR)\$(DIRSEP)th_lang.o\n"
209247
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -97,21 +97,21 @@
97 XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)
98
99 }
100 puts -nonewline "SRC ="
101 foreach s [lsort $src] {
102 puts -nonewline " \\\n \$(SRCDIR)/$s.c"
103 }
104 puts "\n"
105 puts -nonewline "TRANS_SRC ="
106 foreach s [lsort $src] {
107 puts -nonewline " \\\n ${s}_.c"
108 }
109 puts "\n"
110 puts -nonewline "OBJ ="
111 foreach s [lsort $src] {
112 puts -nonewline " \\\n \$(OBJDIR)/$s.o"
113 }
114 puts "\n"
115 puts "APPNAME = $name\$(E)"
116 puts "\n"
117
@@ -122,87 +122,125 @@
122 mv $(APPNAME) $(INSTALLDIR)
123
124 $(OBJDIR):
125 -mkdir $(OBJDIR)
126
127 translate: $(SRCDIR)/translate.c
128 $(BCC) -o translate $(SRCDIR)/translate.c
129
130 makeheaders: $(SRCDIR)/makeheaders.c
131 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
132
133 mkindex: $(SRCDIR)/mkindex.c
134 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
135
136 # WARNING. DANGER. Running the testsuite modifies the repository the
137 # build is done from, i.e. the checkout belongs to. Do not sync/push
138 # the repository after running the tests.
139 test: $(APPNAME)
140 $(TCLSH) test/tester.tcl $(APPNAME)
141
142 VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest
 
 
 
 
 
 
 
 
 
143 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
144 $(SRCDIR)/../manifest.uuid >VERSION.h
145 awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' \
146 $(SRCDIR)/../manifest.uuid >>VERSION.h
147 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
148 substr($$2,1,10),substr($$2,12)}' \
149 $(SRCDIR)/../manifest >>VERSION.h
 
150
151 $(APPNAME): headers $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o
152 $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)/sqlite3.o $(OBJDIR)/th.o $(OBJDIR)/th_lang.o $(LIB)
153
154 # This rule prevents make from using its default rules to try build
155 # an executable named "manifest" out of the file named "manifest.c"
156 #
157 $(SRCDIR)/../manifest:
158 # noop
159
160 clean:
161 rm -f $(OBJDIR)/*.o *_.c $(APPNAME) VERSION.h
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162 rm -f translate makeheaders mkindex page_index.h headers}
163
164 set hfiles {}
165 foreach s [lsort $src] {lappend hfiles $s.h}
166 puts "\trm -f $hfiles\n"
 
 
167
168 set mhargs {}
169 foreach s [lsort $src] {
170 append mhargs " ${s}_.c:$s.h"
171 set extra_h($s) {}
172 }
173 append mhargs " \$(SRCDIR)/sqlite3.h"
174 append mhargs " \$(SRCDIR)/th.h"
175 append mhargs " VERSION.h"
176 puts "page_index.h: \$(TRANS_SRC) mkindex"
177 puts "\t./mkindex \$(TRANS_SRC) >$@"
178 puts "headers:\tpage_index.h makeheaders VERSION.h"
179 puts "\t./makeheaders $mhargs"
180 puts "\ttouch headers"
181 puts "headers: Makefile"
182 puts "Makefile:"
183 set extra_h(main) page_index.h
184
185 foreach s [lsort $src] {
186 puts "${s}_.c:\t\$(SRCDIR)/$s.c translate"
187 puts "\t./translate \$(SRCDIR)/$s.c >${s}_.c\n"
188 puts "\$(OBJDIR)/$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)/config.h"
189 puts "\t\$(XTCC) -o \$(OBJDIR)/$s.o -c ${s}_.c\n"
190 puts "$s.h:\theaders"
191 # puts "\t./makeheaders $mhargs\n\ttouch headers\n"
192 # puts "\t./makeheaders ${s}_.c:${s}.h\n"
193 }
194
195
196 puts "\$(OBJDIR)/sqlite3.o:\t\$(SRCDIR)/sqlite3.c"
197 set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
198 append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
199 #append opt " -DSQLITE_ENABLE_FTS3=1"
200 append opt " -Dlocaltime=fossil_localtime"
201 append opt " -DSQLITE_ENABLE_LOCKING_STYLE=0"
202 puts "\t\$(XTCC) $opt -c \$(SRCDIR)/sqlite3.c -o \$(OBJDIR)/sqlite3.o\n"
203
204 puts "\$(OBJDIR)/th.o:\t\$(SRCDIR)/th.c"
205 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th.c -o \$(OBJDIR)/th.o\n"
206
207 puts "\$(OBJDIR)/th_lang.o:\t\$(SRCDIR)/th_lang.c"
208 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)/th_lang.c -o \$(OBJDIR)/th_lang.o\n"
209
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -97,21 +97,21 @@
97 XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)
98
99 }
100 puts -nonewline "SRC ="
101 foreach s [lsort $src] {
102 puts -nonewline " \\\n \$(SRCDIR)\$(DIRSEP)$s.c"
103 }
104 puts "\n"
105 puts -nonewline "TRANS_SRC ="
106 foreach s [lsort $src] {
107 puts -nonewline " \\\n ${s}_.c"
108 }
109 puts "\n"
110 puts -nonewline "OBJ ="
111 foreach s [lsort $src] {
112 puts -nonewline " \\\n \$(OBJDIR)\$(DIRSEP)$s.o"
113 }
114 puts "\n"
115 puts "APPNAME = $name\$(E)"
116 puts "\n"
117
@@ -122,87 +122,125 @@
122 mv $(APPNAME) $(INSTALLDIR)
123
124 $(OBJDIR):
125 -mkdir $(OBJDIR)
126
127 translate: $(SRCDIR)$(DIRSEP)translate.c
128 $(BCC) -o translate $(SRCDIR)$(DIRSEP)translate.c
129
130 makeheaders: $(SRCDIR)$(DIRSEP)makeheaders.c
131 $(BCC) -o makeheaders $(SRCDIR)$(DIRSEP)makeheaders.c
132
133 mkindex: $(SRCDIR)$(DIRSEP)mkindex.c
134 $(BCC) -o mkindex $(SRCDIR)$(DIRSEP)mkindex.c
135
136 # WARNING. DANGER. Running the testsuite modifies the repository the
137 # build is done from, i.e. the checkout belongs to. Do not sync/push
138 # the repository after running the tests.
139 test: $(APPNAME)
140 $(TCLSH) test$(DIRSEP)tester.tcl $(APPNAME)
141
142 VERSION.h: $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest
143 ifeq ($(OPERATING_SYSTEM),windows)
144 awk "{ printf \"#define MANIFEST_UUID \\\"%%s\\\"\n\", $$1}" \
145 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >VERSION.h
146 awk "{ printf \"#define MANIFEST_VERSION \\\"[%%.10s]\\\"\n\", $$1}" \
147 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >>VERSION.h
148 awk "$$1==\"D\"{printf \"#define MANIFEST_DATE \\\"%%s %%s\\\"\n\",\
149 substr($$2,1,10),substr($$2,12)}" \
150 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest >>VERSION.h
151 else
152 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' \
153 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >VERSION.h
154 awk '{ printf "#define MANIFEST_VERSION \"[%.10s]\"\n", $$1}' \
155 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest.uuid >>VERSION.h
156 awk '$$1=="D"{printf "#define MANIFEST_DATE \"%s %s\"\n",\
157 substr($$2,1,10),substr($$2,12)}' \
158 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest >>VERSION.h
159 endif
160
161 $(APPNAME): headers $(OBJ) $(OBJDIR)$(DIRSEP)sqlite3.o $(OBJDIR)$(DIRSEP)th.o $(OBJDIR)$(DIRSEP)th_lang.o
162 $(TCC) -o $(APPNAME) $(OBJ) $(OBJDIR)$(DIRSEP)sqlite3.o $(OBJDIR)$(DIRSEP)th.o $(OBJDIR)$(DIRSEP)th_lang.o $(LIB)
163
164 # This rule prevents make from using its default rules to try build
165 # an executable named "manifest" out of the file named "manifest.c"
166 #
167 $(SRCDIR)$(DIRSEP)..$(DIRSEP)manifest:
168 # noop
169
170 clean:
171 ifeq ($(OPERATING_SYSTEM),windows)
172 del $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) VERSION.h
173 del translate makeheaders mkindex page_index.h headers}
174 set hfiles {}
175 foreach s [lsort $src] {lappend hfiles $s.h}
176 puts "\tdel $hfiles\n"
177 puts {
178 else
179 rm -f $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) VERSION.h
180 rm -f translate makeheaders mkindex page_index.h headers}
181
182 set hfiles {}
183 foreach s [lsort $src] {lappend hfiles $s.h}
184 puts "\trm -f $hfiles\n"
185 puts {
186 endif
187
188 cleanall:
189 ifeq ($(OPERATING_SYSTEM),windows)
190 del $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) translate$(E) makeheaders$(E) mkindex$(E) VERSION.h
191 del translate makeheaders mkindex page_index.h headers}
192 set hfiles {}
193 foreach s [lsort $src] {lappend hfiles $s.h}
194 puts "\tdel $hfiles\n"
195 puts {
196 else
197 rm -f $(OBJDIR)$(DIRSEP)*.o *_.c $(APPNAME) translate$(E) makeheaders$(E) mkindex$(E) VERSION.h
198 rm -f translate makeheaders mkindex page_index.h headers}
199
200 set hfiles {}
201 foreach s [lsort $src] {lappend hfiles $s.h}
202 puts "\trm -f $hfiles\n"
203 puts {
204 endif}
205
206 set mhargs {}
207 foreach s [lsort $src] {
208 append mhargs " ${s}_.c:$s.h"
209 set extra_h($s) {}
210 }
211 append mhargs " \$(SRCDIR)\$(DIRSEP)sqlite3.h"
212 append mhargs " \$(SRCDIR)\$(DIRSEP)th.h"
213 append mhargs " VERSION.h"
214 puts "page_index.h: \$(TRANS_SRC) mkindex"
215 puts "\t.\$(DIRSEP)mkindex \$(TRANS_SRC) >$@"
216 puts "headers:\tpage_index.h makeheaders VERSION.h"
217 puts "\t.\$(DIRSEP)makeheaders $mhargs"
218 puts "\ttouch headers"
219 puts "headers: Makefile"
220 puts "Makefile:"
221 set extra_h(main) page_index.h
222
223 foreach s [lsort $src] {
224 puts "${s}_.c:\t\$(SRCDIR)\$(DIRSEP)$s.c translate"
225 puts "\t.\$(DIRSEP)translate \$(SRCDIR)\$(DIRSEP)$s.c >${s}_.c\n"
226 puts "\$(OBJDIR)\$(DIRSEP)$s.o:\t${s}_.c $s.h $extra_h($s) \$(SRCDIR)\$(DIRSEP)config.h"
227 puts "\t\$(XTCC) -o \$(OBJDIR)\$(DIRSEP)$s.o -c ${s}_.c\n"
228 puts "$s.h:\theaders"
229 # puts "\t.\$(DIRSEP)makeheaders $mhargs\n\ttouch headers\n"
230 # puts "\t.\$(DIRSEP)makeheaders ${s}_.c:${s}.h\n"
231 }
232
233
234 puts "\$(OBJDIR)\$(DIRSEP)sqlite3.o:\t\$(SRCDIR)\$(DIRSEP)sqlite3.c"
235 set opt {-DSQLITE_OMIT_LOAD_EXTENSION=1}
236 append opt " -DSQLITE_THREADSAFE=0 -DSQLITE_DEFAULT_FILE_FORMAT=4"
237 #append opt " -DSQLITE_ENABLE_FTS3=1"
238 append opt " -Dlocaltime=fossil_localtime"
239 append opt " -DSQLITE_ENABLE_LOCKING_STYLE=0"
240 puts "\t\$(XTCC) $opt -c \$(SRCDIR)\$(DIRSEP)sqlite3.c -o \$(OBJDIR)\$(DIRSEP)sqlite3.o\n"
241
242 puts "\$(OBJDIR)\$(DIRSEP)th.o:\t\$(SRCDIR)\$(DIRSEP)th.c"
243 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)\$(DIRSEP)th.c -o \$(OBJDIR)\$(DIRSEP)th.o\n"
244
245 puts "\$(OBJDIR)\$(DIRSEP)th_lang.o:\t\$(SRCDIR)\$(DIRSEP)th_lang.c"
246 puts "\t\$(XTCC) -I\$(SRCDIR) -c \$(SRCDIR)\$(DIRSEP)th_lang.c -o \$(OBJDIR)\$(DIRSEP)th_lang.o\n"
247

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button