Fossil SCM

Get the revised makefile working with MSVC.

drh 2014-10-27 17:21 UTC separate-resource-files
Commit fdc96f49977d75a6540f70909091795a1415daac
+14 -1
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -12,12 +12,15 @@
1212
# tclsh makemake.tcl
1313
#
1414
#############################################################################
1515
1616
# Basenames of all source files that get preprocessed using
17
-# "translate" and "makeheaders". To add new source files to the
17
+# "translate" and "makeheaders". To add new C-language source files to the
1818
# project, simply add the basename to this list and rerun this script.
19
+#
20
+# Set the separate extra_files variable further down for how to add non-C
21
+# files, such as string and BLOB resources.
1922
#
2023
set src {
2124
add
2225
allrepo
2326
attach
@@ -1400,10 +1403,20 @@
14001403
writeln " \\"
14011404
writeln -nonewline " "
14021405
}
14031406
writeln -nonewline "${s}_.c"; incr i
14041407
}
1408
+writeln "\n"
1409
+writeln -nonewline "EXTRA_FILES = "
1410
+set i 0
1411
+foreach s [lsort $extra_files] {
1412
+ if {$i > 0} {
1413
+ writeln " \\"
1414
+ writeln -nonewline " "
1415
+ }
1416
+ writeln -nonewline "\$(SRCDIR)\\${s}"; incr i
1417
+}
14051418
writeln "\n"
14061419
set AdditionalObj [list shell sqlite3 th th_lang th_tcl cson_amalgamation]
14071420
writeln -nonewline "OBJ = "
14081421
set i 0
14091422
foreach s [lsort [concat $src $AdditionalObj]] {
14101423
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -12,12 +12,15 @@
12 # tclsh makemake.tcl
13 #
14 #############################################################################
15
16 # Basenames of all source files that get preprocessed using
17 # "translate" and "makeheaders". To add new source files to the
18 # project, simply add the basename to this list and rerun this script.
 
 
 
19 #
20 set src {
21 add
22 allrepo
23 attach
@@ -1400,10 +1403,20 @@
1400 writeln " \\"
1401 writeln -nonewline " "
1402 }
1403 writeln -nonewline "${s}_.c"; incr i
1404 }
 
 
 
 
 
 
 
 
 
 
1405 writeln "\n"
1406 set AdditionalObj [list shell sqlite3 th th_lang th_tcl cson_amalgamation]
1407 writeln -nonewline "OBJ = "
1408 set i 0
1409 foreach s [lsort [concat $src $AdditionalObj]] {
1410
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -12,12 +12,15 @@
12 # tclsh makemake.tcl
13 #
14 #############################################################################
15
16 # Basenames of all source files that get preprocessed using
17 # "translate" and "makeheaders". To add new C-language source files to the
18 # project, simply add the basename to this list and rerun this script.
19 #
20 # Set the separate extra_files variable further down for how to add non-C
21 # files, such as string and BLOB resources.
22 #
23 set src {
24 add
25 allrepo
26 attach
@@ -1400,10 +1403,20 @@
1403 writeln " \\"
1404 writeln -nonewline " "
1405 }
1406 writeln -nonewline "${s}_.c"; incr i
1407 }
1408 writeln "\n"
1409 writeln -nonewline "EXTRA_FILES = "
1410 set i 0
1411 foreach s [lsort $extra_files] {
1412 if {$i > 0} {
1413 writeln " \\"
1414 writeln -nonewline " "
1415 }
1416 writeln -nonewline "\$(SRCDIR)\\${s}"; incr i
1417 }
1418 writeln "\n"
1419 set AdditionalObj [list shell sqlite3 th th_lang th_tcl cson_amalgamation]
1420 writeln -nonewline "OBJ = "
1421 set i 0
1422 foreach s [lsort [concat $src $AdditionalObj]] {
1423
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -307,10 +307,12 @@
307307
winhttp_.c \
308308
wysiwyg_.c \
309309
xfer_.c \
310310
xfersetup_.c \
311311
zip_.c
312
+
313
+EXTRA_FILES = $(SRCDIR)\diff.tcl
312314
313315
OBJ = $(OX)\add$O \
314316
$(OX)\allrepo$O \
315317
$(OX)\attach$O \
316318
$(OX)\bag$O \
317319
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -307,10 +307,12 @@
307 winhttp_.c \
308 wysiwyg_.c \
309 xfer_.c \
310 xfersetup_.c \
311 zip_.c
 
 
312
313 OBJ = $(OX)\add$O \
314 $(OX)\allrepo$O \
315 $(OX)\attach$O \
316 $(OX)\bag$O \
317
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -307,10 +307,12 @@
307 winhttp_.c \
308 wysiwyg_.c \
309 xfer_.c \
310 xfersetup_.c \
311 zip_.c
312
313 EXTRA_FILES = $(SRCDIR)\diff.tcl
314
315 OBJ = $(OX)\add$O \
316 $(OX)\allrepo$O \
317 $(OX)\attach$O \
318 $(OX)\bag$O \
319

Keyboard Shortcuts

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