Fossil SCM

Improve makefile integration for the codecheck1 tool.

mistachkin 2014-10-20 20:47 UTC compile-time-print-checking
Commit 5edc01934c5ca5851ffbf77b29cacd8a79fa7125
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -785,11 +785,11 @@
785785
endif}
786786
787787
writeln {
788788
all: $(OBJDIR) $(APPNAME)
789789
790
-$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
790
+$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
791791
ifdef USE_WINDOWS
792792
$(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
793793
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
794794
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
795795
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -839,13 +839,10 @@
839839
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
840840
841841
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
842842
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
843843
844
-$(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
845
- $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
846
-
847844
# The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
848845
# to 1. If it is set to 1, then there is no need to build or link
849846
# the sqlite3.o object. Instead, the system SQLite will be linked
850847
# using -lsqlite3.
851848
SQLITE3_OBJ.1 =
@@ -901,10 +898,11 @@
901898
ifdef FOSSIL_BUILD_SSL
902899
APPTARGETS += openssl
903900
endif
904901
905902
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
903
+ $(CODECHECK1) $(TRANS_SRC)
906904
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
907905
908906
# This rule prevents make from using its default rules to try build
909907
# an executable named "manifest" out of the file named "manifest.c"
910908
#
@@ -1051,12 +1049,13 @@
10511049
10521050
APPNAME = $(OBJDIR)\fossil$(E)
10531051
10541052
all: $(APPNAME)
10551053
1056
-$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
1054
+$(APPNAME) : translate$E mkindex$E codecheck1$E headers $(OBJ) $(OBJDIR)\link
10571055
cd $(OBJDIR)
1056
+ codecheck1$E $(SRC)
10581057
$(DMDIR)\bin\link @link
10591058
10601059
$(OBJDIR)\fossil.res: $B\win\fossil.rc
10611060
$(RC) $(RCFLAGS) -o$@ $**
10621061
@@ -1080,11 +1079,11 @@
10801079
$(BCC) -o$@ $**
10811080
10821081
mkindex$E: $(SRCDIR)\mkindex.c
10831082
$(BCC) -o$@ $**
10841083
1085
-version$E: $B\src\mkversion.c
1084
+mkversion$E: $(SRCDIR)\mkversion.c
10861085
$(BCC) -o$@ $**
10871086
10881087
codecheck1$E: $(SRCDIR)\codecheck1.c
10891088
$(BCC) -o$@ $**
10901089
@@ -1101,11 +1100,11 @@
11011100
$(TCC) -o$@ -c $**
11021101
11031102
$(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
11041103
cp $@ $@
11051104
1106
-VERSION.h : version$E $B\manifest.uuid $B\manifest $B\VERSION
1105
+VERSION.h : mkversion$E $B\manifest.uuid $B\manifest $B\VERSION
11071106
+$** > $@
11081107
11091108
page_index.h: mkindex$E $(SRC)
11101109
+$** > $@
11111110
@@ -1415,12 +1414,13 @@
14151414
!ifdef FOSSIL_BUILD_SSL
14161415
APPTARGETS = $(APPTARGETS) openssl
14171416
!endif
14181417
!endif
14191418
1420
-$(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
1419
+$(APPNAME) : $(APPTARGETS) translate$E mkindex$E codecheck1$E headers $(OBJ) $(OX)\linkopts
14211420
cd $(OX)
1421
+ codecheck1$E $(SRC)
14221422
link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
14231423
14241424
$(OX)\linkopts: $B\win\Makefile.msc}
14251425
set redir {>}
14261426
foreach s [lsort [concat $src $AdditionalObj]] {
@@ -1443,11 +1443,11 @@
14431443
$(BCC) $**
14441444
14451445
mkindex$E: $(SRCDIR)\mkindex.c
14461446
$(BCC) $**
14471447
1448
-mkversion$E: $B\src\mkversion.c
1448
+mkversion$E: $(SRCDIR)\mkversion.c
14491449
$(BCC) $**
14501450
14511451
codecheck1$E: $(SRCDIR)\codecheck1.c
14521452
$(BCC) $**
14531453
14541454
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -785,11 +785,11 @@
785 endif}
786
787 writeln {
788 all: $(OBJDIR) $(APPNAME)
789
790 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
791 ifdef USE_WINDOWS
792 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
793 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
794 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
795 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -839,13 +839,10 @@
839 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
840
841 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
842 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
843
844 $(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
845 $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
846
847 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
848 # to 1. If it is set to 1, then there is no need to build or link
849 # the sqlite3.o object. Instead, the system SQLite will be linked
850 # using -lsqlite3.
851 SQLITE3_OBJ.1 =
@@ -901,10 +898,11 @@
901 ifdef FOSSIL_BUILD_SSL
902 APPTARGETS += openssl
903 endif
904
905 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
 
906 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
907
908 # This rule prevents make from using its default rules to try build
909 # an executable named "manifest" out of the file named "manifest.c"
910 #
@@ -1051,12 +1049,13 @@
1051
1052 APPNAME = $(OBJDIR)\fossil$(E)
1053
1054 all: $(APPNAME)
1055
1056 $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
1057 cd $(OBJDIR)
 
1058 $(DMDIR)\bin\link @link
1059
1060 $(OBJDIR)\fossil.res: $B\win\fossil.rc
1061 $(RC) $(RCFLAGS) -o$@ $**
1062
@@ -1080,11 +1079,11 @@
1080 $(BCC) -o$@ $**
1081
1082 mkindex$E: $(SRCDIR)\mkindex.c
1083 $(BCC) -o$@ $**
1084
1085 version$E: $B\src\mkversion.c
1086 $(BCC) -o$@ $**
1087
1088 codecheck1$E: $(SRCDIR)\codecheck1.c
1089 $(BCC) -o$@ $**
1090
@@ -1101,11 +1100,11 @@
1101 $(TCC) -o$@ -c $**
1102
1103 $(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
1104 cp $@ $@
1105
1106 VERSION.h : version$E $B\manifest.uuid $B\manifest $B\VERSION
1107 +$** > $@
1108
1109 page_index.h: mkindex$E $(SRC)
1110 +$** > $@
1111
@@ -1415,12 +1414,13 @@
1415 !ifdef FOSSIL_BUILD_SSL
1416 APPTARGETS = $(APPTARGETS) openssl
1417 !endif
1418 !endif
1419
1420 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
1421 cd $(OX)
 
1422 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
1423
1424 $(OX)\linkopts: $B\win\Makefile.msc}
1425 set redir {>}
1426 foreach s [lsort [concat $src $AdditionalObj]] {
@@ -1443,11 +1443,11 @@
1443 $(BCC) $**
1444
1445 mkindex$E: $(SRCDIR)\mkindex.c
1446 $(BCC) $**
1447
1448 mkversion$E: $B\src\mkversion.c
1449 $(BCC) $**
1450
1451 codecheck1$E: $(SRCDIR)\codecheck1.c
1452 $(BCC) $**
1453
1454
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -785,11 +785,11 @@
785 endif}
786
787 writeln {
788 all: $(OBJDIR) $(APPNAME)
789
790 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
791 ifdef USE_WINDOWS
792 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
793 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
794 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
795 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -839,13 +839,10 @@
839 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
840
841 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
842 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
843
 
 
 
844 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
845 # to 1. If it is set to 1, then there is no need to build or link
846 # the sqlite3.o object. Instead, the system SQLite will be linked
847 # using -lsqlite3.
848 SQLITE3_OBJ.1 =
@@ -901,10 +898,11 @@
898 ifdef FOSSIL_BUILD_SSL
899 APPTARGETS += openssl
900 endif
901
902 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
903 $(CODECHECK1) $(TRANS_SRC)
904 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
905
906 # This rule prevents make from using its default rules to try build
907 # an executable named "manifest" out of the file named "manifest.c"
908 #
@@ -1051,12 +1049,13 @@
1049
1050 APPNAME = $(OBJDIR)\fossil$(E)
1051
1052 all: $(APPNAME)
1053
1054 $(APPNAME) : translate$E mkindex$E codecheck1$E headers $(OBJ) $(OBJDIR)\link
1055 cd $(OBJDIR)
1056 codecheck1$E $(SRC)
1057 $(DMDIR)\bin\link @link
1058
1059 $(OBJDIR)\fossil.res: $B\win\fossil.rc
1060 $(RC) $(RCFLAGS) -o$@ $**
1061
@@ -1080,11 +1079,11 @@
1079 $(BCC) -o$@ $**
1080
1081 mkindex$E: $(SRCDIR)\mkindex.c
1082 $(BCC) -o$@ $**
1083
1084 mkversion$E: $(SRCDIR)\mkversion.c
1085 $(BCC) -o$@ $**
1086
1087 codecheck1$E: $(SRCDIR)\codecheck1.c
1088 $(BCC) -o$@ $**
1089
@@ -1101,11 +1100,11 @@
1100 $(TCC) -o$@ -c $**
1101
1102 $(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
1103 cp $@ $@
1104
1105 VERSION.h : mkversion$E $B\manifest.uuid $B\manifest $B\VERSION
1106 +$** > $@
1107
1108 page_index.h: mkindex$E $(SRC)
1109 +$** > $@
1110
@@ -1415,12 +1414,13 @@
1414 !ifdef FOSSIL_BUILD_SSL
1415 APPTARGETS = $(APPTARGETS) openssl
1416 !endif
1417 !endif
1418
1419 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E codecheck1$E headers $(OBJ) $(OX)\linkopts
1420 cd $(OX)
1421 codecheck1$E $(SRC)
1422 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
1423
1424 $(OX)\linkopts: $B\win\Makefile.msc}
1425 set redir {>}
1426 foreach s [lsort [concat $src $AdditionalObj]] {
@@ -1443,11 +1443,11 @@
1443 $(BCC) $**
1444
1445 mkindex$E: $(SRCDIR)\mkindex.c
1446 $(BCC) $**
1447
1448 mkversion$E: $(SRCDIR)\mkversion.c
1449 $(BCC) $**
1450
1451 codecheck1$E: $(SRCDIR)\codecheck1.c
1452 $(BCC) $**
1453
1454
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -40,12 +40,13 @@
4040
4141
APPNAME = $(OBJDIR)\fossil$(E)
4242
4343
all: $(APPNAME)
4444
45
-$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
45
+$(APPNAME) : translate$E mkindex$E codecheck1$E headers $(OBJ) $(OBJDIR)\link
4646
cd $(OBJDIR)
47
+ codecheck1$E $(SRC)
4748
$(DMDIR)\bin\link @link
4849
4950
$(OBJDIR)\fossil.res: $B\win\fossil.rc
5051
$(RC) $(RCFLAGS) -o$@ $**
5152
@@ -64,11 +65,11 @@
6465
$(BCC) -o$@ $**
6566
6667
mkindex$E: $(SRCDIR)\mkindex.c
6768
$(BCC) -o$@ $**
6869
69
-version$E: $B\src\mkversion.c
70
+mkversion$E: $(SRCDIR)\mkversion.c
7071
$(BCC) -o$@ $**
7172
7273
codecheck1$E: $(SRCDIR)\codecheck1.c
7374
$(BCC) -o$@ $**
7475
@@ -85,11 +86,11 @@
8586
$(TCC) -o$@ -c $**
8687
8788
$(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
8889
cp $@ $@
8990
90
-VERSION.h : version$E $B\manifest.uuid $B\manifest $B\VERSION
91
+VERSION.h : mkversion$E $B\manifest.uuid $B\manifest $B\VERSION
9192
+$** > $@
9293
9394
page_index.h: mkindex$E $(SRC)
9495
+$** > $@
9596
9697
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -40,12 +40,13 @@
40
41 APPNAME = $(OBJDIR)\fossil$(E)
42
43 all: $(APPNAME)
44
45 $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OBJDIR)\link
46 cd $(OBJDIR)
 
47 $(DMDIR)\bin\link @link
48
49 $(OBJDIR)\fossil.res: $B\win\fossil.rc
50 $(RC) $(RCFLAGS) -o$@ $**
51
@@ -64,11 +65,11 @@
64 $(BCC) -o$@ $**
65
66 mkindex$E: $(SRCDIR)\mkindex.c
67 $(BCC) -o$@ $**
68
69 version$E: $B\src\mkversion.c
70 $(BCC) -o$@ $**
71
72 codecheck1$E: $(SRCDIR)\codecheck1.c
73 $(BCC) -o$@ $**
74
@@ -85,11 +86,11 @@
85 $(TCC) -o$@ -c $**
86
87 $(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
88 cp $@ $@
89
90 VERSION.h : version$E $B\manifest.uuid $B\manifest $B\VERSION
91 +$** > $@
92
93 page_index.h: mkindex$E $(SRC)
94 +$** > $@
95
96
--- win/Makefile.dmc
+++ win/Makefile.dmc
@@ -40,12 +40,13 @@
40
41 APPNAME = $(OBJDIR)\fossil$(E)
42
43 all: $(APPNAME)
44
45 $(APPNAME) : translate$E mkindex$E codecheck1$E headers $(OBJ) $(OBJDIR)\link
46 cd $(OBJDIR)
47 codecheck1$E $(SRC)
48 $(DMDIR)\bin\link @link
49
50 $(OBJDIR)\fossil.res: $B\win\fossil.rc
51 $(RC) $(RCFLAGS) -o$@ $**
52
@@ -64,11 +65,11 @@
65 $(BCC) -o$@ $**
66
67 mkindex$E: $(SRCDIR)\mkindex.c
68 $(BCC) -o$@ $**
69
70 mkversion$E: $(SRCDIR)\mkversion.c
71 $(BCC) -o$@ $**
72
73 codecheck1$E: $(SRCDIR)\codecheck1.c
74 $(BCC) -o$@ $**
75
@@ -85,11 +86,11 @@
86 $(TCC) -o$@ -c $**
87
88 $(OBJDIR)\cson_amalgamation.h : $(SRCDIR)\cson_amalgamation.h
89 cp $@ $@
90
91 VERSION.h : mkversion$E $B\manifest.uuid $B\manifest $B\VERSION
92 +$** > $@
93
94 page_index.h: mkindex$E $(SRC)
95 +$** > $@
96
97
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -710,11 +710,11 @@
710710
RMDIR = rm -rf
711711
endif
712712
713713
all: $(OBJDIR) $(APPNAME)
714714
715
-$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
715
+$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
716716
ifdef USE_WINDOWS
717717
$(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718718
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719719
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720720
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764764
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765765
766766
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767767
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768768
769
-$(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
770
- $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
771
-
772769
# The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
773770
# to 1. If it is set to 1, then there is no need to build or link
774771
# the sqlite3.o object. Instead, the system SQLite will be linked
775772
# using -lsqlite3.
776773
SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
824821
ifdef FOSSIL_BUILD_SSL
825822
APPTARGETS += openssl
826823
endif
827824
828825
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
826
+ $(CODECHECK1) $(TRANS_SRC)
829827
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
830828
831829
# This rule prevents make from using its default rules to try build
832830
# an executable named "manifest" out of the file named "manifest.c"
833831
#
834832
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -710,11 +710,11 @@
710 RMDIR = rm -rf
711 endif
712
713 all: $(OBJDIR) $(APPNAME)
714
715 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
716 ifdef USE_WINDOWS
717 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765
766 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768
769 $(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
770 $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
771
772 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
773 # to 1. If it is set to 1, then there is no need to build or link
774 # the sqlite3.o object. Instead, the system SQLite will be linked
775 # using -lsqlite3.
776 SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
824 ifdef FOSSIL_BUILD_SSL
825 APPTARGETS += openssl
826 endif
827
828 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
 
829 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
830
831 # This rule prevents make from using its default rules to try build
832 # an executable named "manifest" out of the file named "manifest.c"
833 #
834
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -710,11 +710,11 @@
710 RMDIR = rm -rf
711 endif
712
713 all: $(OBJDIR) $(APPNAME)
714
715 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
716 ifdef USE_WINDOWS
717 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765
766 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768
 
 
 
769 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
770 # to 1. If it is set to 1, then there is no need to build or link
771 # the sqlite3.o object. Instead, the system SQLite will be linked
772 # using -lsqlite3.
773 SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
821 ifdef FOSSIL_BUILD_SSL
822 APPTARGETS += openssl
823 endif
824
825 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
826 $(CODECHECK1) $(TRANS_SRC)
827 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
828
829 # This rule prevents make from using its default rules to try build
830 # an executable named "manifest" out of the file named "manifest.c"
831 #
832
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -710,11 +710,11 @@
710710
RMDIR = rm -rf
711711
endif
712712
713713
all: $(OBJDIR) $(APPNAME)
714714
715
-$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
715
+$(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
716716
ifdef USE_WINDOWS
717717
$(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718718
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719719
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720720
$(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764764
$(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765765
766766
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767767
$(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768768
769
-$(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
770
- $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
771
-
772769
# The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
773770
# to 1. If it is set to 1, then there is no need to build or link
774771
# the sqlite3.o object. Instead, the system SQLite will be linked
775772
# using -lsqlite3.
776773
SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
824821
ifdef FOSSIL_BUILD_SSL
825822
APPTARGETS += openssl
826823
endif
827824
828825
$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
826
+ $(CODECHECK1) $(TRANS_SRC)
829827
$(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
830828
831829
# This rule prevents make from using its default rules to try build
832830
# an executable named "manifest" out of the file named "manifest.c"
833831
#
834832
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -710,11 +710,11 @@
710 RMDIR = rm -rf
711 endif
712
713 all: $(OBJDIR) $(APPNAME)
714
715 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h $(OBJDIR)/CODECHECK.txt
716 ifdef USE_WINDOWS
717 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765
766 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768
769 $(OBJDIR)/CODECHECK.txt: $(TRANS_SRC) $(CODECHECK1)
770 $(CODECHECK1) $(TRANS_SRC) >$(OBJDIR)/CODECHECK.txt
771
772 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
773 # to 1. If it is set to 1, then there is no need to build or link
774 # the sqlite3.o object. Instead, the system SQLite will be linked
775 # using -lsqlite3.
776 SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
824 ifdef FOSSIL_BUILD_SSL
825 APPTARGETS += openssl
826 endif
827
828 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
 
829 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
830
831 # This rule prevents make from using its default rules to try build
832 # an executable named "manifest" out of the file named "manifest.c"
833 #
834
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -710,11 +710,11 @@
710 RMDIR = rm -rf
711 endif
712
713 all: $(OBJDIR) $(APPNAME)
714
715 $(OBJDIR)/fossil.o: $(SRCDIR)/../win/fossil.rc $(OBJDIR)/VERSION.h
716 ifdef USE_WINDOWS
717 $(CAT) $(subst /,\,$(SRCDIR)\miniz.c) | $(GREP) "define MZ_VERSION" > $(subst /,\,$(OBJDIR)\minizver.h)
718 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.rc) $(subst /,\,$(OBJDIR))
719 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.ico) $(subst /,\,$(OBJDIR))
720 $(CP) $(subst /,\,$(SRCDIR)\..\win\fossil.exe.manifest) $(subst /,\,$(OBJDIR))
@@ -764,13 +764,10 @@
764 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
765
766 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(VERSION)
767 $(VERSION) $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
768
 
 
 
769 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
770 # to 1. If it is set to 1, then there is no need to build or link
771 # the sqlite3.o object. Instead, the system SQLite will be linked
772 # using -lsqlite3.
773 SQLITE3_OBJ.1 =
@@ -824,10 +821,11 @@
821 ifdef FOSSIL_BUILD_SSL
822 APPTARGETS += openssl
823 endif
824
825 $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS)
826 $(CODECHECK1) $(TRANS_SRC)
827 $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
828
829 # This rule prevents make from using its default rules to try build
830 # an executable named "manifest" out of the file named "manifest.c"
831 #
832
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -469,12 +469,13 @@
469469
!ifdef FOSSIL_BUILD_SSL
470470
APPTARGETS = $(APPTARGETS) openssl
471471
!endif
472472
!endif
473473
474
-$(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
474
+$(APPNAME) : $(APPTARGETS) translate$E mkindex$E codecheck1$E headers $(OBJ) $(OX)\linkopts
475475
cd $(OX)
476
+ codecheck1$E $(SRC)
476477
link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
477478
478479
$(OX)\linkopts: $B\win\Makefile.msc
479480
echo $(OX)\add.obj > $@
480481
echo $(OX)\allrepo.obj >> $@
@@ -608,11 +609,11 @@
608609
$(BCC) $**
609610
610611
mkindex$E: $(SRCDIR)\mkindex.c
611612
$(BCC) $**
612613
613
-mkversion$E: $B\src\mkversion.c
614
+mkversion$E: $(SRCDIR)\mkversion.c
614615
$(BCC) $**
615616
616617
codecheck1$E: $(SRCDIR)\codecheck1.c
617618
$(BCC) $**
618619
619620
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -469,12 +469,13 @@
469 !ifdef FOSSIL_BUILD_SSL
470 APPTARGETS = $(APPTARGETS) openssl
471 !endif
472 !endif
473
474 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E headers $(OBJ) $(OX)\linkopts
475 cd $(OX)
 
476 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
477
478 $(OX)\linkopts: $B\win\Makefile.msc
479 echo $(OX)\add.obj > $@
480 echo $(OX)\allrepo.obj >> $@
@@ -608,11 +609,11 @@
608 $(BCC) $**
609
610 mkindex$E: $(SRCDIR)\mkindex.c
611 $(BCC) $**
612
613 mkversion$E: $B\src\mkversion.c
614 $(BCC) $**
615
616 codecheck1$E: $(SRCDIR)\codecheck1.c
617 $(BCC) $**
618
619
--- win/Makefile.msc
+++ win/Makefile.msc
@@ -469,12 +469,13 @@
469 !ifdef FOSSIL_BUILD_SSL
470 APPTARGETS = $(APPTARGETS) openssl
471 !endif
472 !endif
473
474 $(APPNAME) : $(APPTARGETS) translate$E mkindex$E codecheck1$E headers $(OBJ) $(OX)\linkopts
475 cd $(OX)
476 codecheck1$E $(SRC)
477 link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts
478
479 $(OX)\linkopts: $B\win\Makefile.msc
480 echo $(OX)\add.obj > $@
481 echo $(OX)\allrepo.obj >> $@
@@ -608,11 +609,11 @@
609 $(BCC) $**
610
611 mkindex$E: $(SRCDIR)\mkindex.c
612 $(BCC) $**
613
614 mkversion$E: $(SRCDIR)\mkversion.c
615 $(BCC) $**
616
617 codecheck1$E: $(SRCDIR)\codecheck1.c
618 $(BCC) $**
619
620

Keyboard Shortcuts

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