Fossil SCM

Update the makemake.tcl script to match the checked-in versions of the generated makefiles.

florian 2023-04-22 10:38 trunk
Commit 3e83c6a924b0f235fc88e650769641bfbc75a0148f049b2098cfaa948e1e3a47
1 file changed +8 -8
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -556,24 +556,24 @@
556556
writeln "\t\$(XTCC) -c \$(SRCDIR)/th_lang.c -o \$@\n"
557557
558558
writeln "\$(OBJDIR)/th_tcl.o:\t\$(SRCDIR)/th_tcl.c"
559559
writeln "\t\$(XTCC) -c \$(SRCDIR)/th_tcl.c -o \$@\n"
560560
561
-writeln {
561
+writeln [string map [list <<<NEXT_LINE>>> \\] {
562562
$(OBJDIR)/pikchr.o: $(SRCDIR_extsrc)/pikchr.c
563563
$(XTCC) $(PIKCHR_OPTIONS) -c $(SRCDIR_extsrc)/pikchr.c -o $@
564564
565565
$(OBJDIR)/cson_amalgamation.o: $(SRCDIR_extsrc)/cson_amalgamation.c
566566
$(XTCC) -c $(SRCDIR_extsrc)/cson_amalgamation.c -o $@
567567
568568
$(SRCDIR_extsrc)/pikchr.js: $(SRCDIR_extsrc)/pikchr.c
569
- $(EMCC_WRAPPER) -o $@ $(EMCC_OPT) --no-entry \
570
- -sEXPORTED_RUNTIME_METHODS=cwrap,setValue,getValue,stackSave,stackRestore \
571
- -sEXPORTED_FUNCTIONS=_pikchr $(SRCDIR_extsrc)/pikchr.c \
572
- -sENVIRONMENT=web \
573
- -sMODULARIZE \
574
- -sEXPORT_NAME=initPikchrModule \
569
+ $(EMCC_WRAPPER) -o $@ $(EMCC_OPT) --no-entry <<<NEXT_LINE>>>
570
+ -sEXPORTED_RUNTIME_METHODS=cwrap,setValue,getValue,stackSave,stackRestore <<<NEXT_LINE>>>
571
+ -sEXPORTED_FUNCTIONS=_pikchr $(SRCDIR_extsrc)/pikchr.c <<<NEXT_LINE>>>
572
+ -sENVIRONMENT=web <<<NEXT_LINE>>>
573
+ -sMODULARIZE <<<NEXT_LINE>>>
574
+ -sEXPORT_NAME=initPikchrModule <<<NEXT_LINE>>>
575575
--minify 0
576576
@chmod -x $(SRCDIR_extsrc)/pikchr.wasm
577577
wasm: $(SRCDIR_extsrc)/pikchr.js
578578
579579
#
@@ -580,11 +580,11 @@
580580
# The list of all the targets that do not correspond to real files. This stops
581581
# 'make' from getting confused when someone makes an error in a rule.
582582
#
583583
584584
.PHONY: all install test clean
585
-}
585
+}]
586586
587587
close $output_file
588588
#
589589
# End of the main.mk output
590590
##############################################################################
591591
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -556,24 +556,24 @@
556 writeln "\t\$(XTCC) -c \$(SRCDIR)/th_lang.c -o \$@\n"
557
558 writeln "\$(OBJDIR)/th_tcl.o:\t\$(SRCDIR)/th_tcl.c"
559 writeln "\t\$(XTCC) -c \$(SRCDIR)/th_tcl.c -o \$@\n"
560
561 writeln {
562 $(OBJDIR)/pikchr.o: $(SRCDIR_extsrc)/pikchr.c
563 $(XTCC) $(PIKCHR_OPTIONS) -c $(SRCDIR_extsrc)/pikchr.c -o $@
564
565 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR_extsrc)/cson_amalgamation.c
566 $(XTCC) -c $(SRCDIR_extsrc)/cson_amalgamation.c -o $@
567
568 $(SRCDIR_extsrc)/pikchr.js: $(SRCDIR_extsrc)/pikchr.c
569 $(EMCC_WRAPPER) -o $@ $(EMCC_OPT) --no-entry \
570 -sEXPORTED_RUNTIME_METHODS=cwrap,setValue,getValue,stackSave,stackRestore \
571 -sEXPORTED_FUNCTIONS=_pikchr $(SRCDIR_extsrc)/pikchr.c \
572 -sENVIRONMENT=web \
573 -sMODULARIZE \
574 -sEXPORT_NAME=initPikchrModule \
575 --minify 0
576 @chmod -x $(SRCDIR_extsrc)/pikchr.wasm
577 wasm: $(SRCDIR_extsrc)/pikchr.js
578
579 #
@@ -580,11 +580,11 @@
580 # The list of all the targets that do not correspond to real files. This stops
581 # 'make' from getting confused when someone makes an error in a rule.
582 #
583
584 .PHONY: all install test clean
585 }
586
587 close $output_file
588 #
589 # End of the main.mk output
590 ##############################################################################
591
--- tools/makemake.tcl
+++ tools/makemake.tcl
@@ -556,24 +556,24 @@
556 writeln "\t\$(XTCC) -c \$(SRCDIR)/th_lang.c -o \$@\n"
557
558 writeln "\$(OBJDIR)/th_tcl.o:\t\$(SRCDIR)/th_tcl.c"
559 writeln "\t\$(XTCC) -c \$(SRCDIR)/th_tcl.c -o \$@\n"
560
561 writeln [string map [list <<<NEXT_LINE>>> \\] {
562 $(OBJDIR)/pikchr.o: $(SRCDIR_extsrc)/pikchr.c
563 $(XTCC) $(PIKCHR_OPTIONS) -c $(SRCDIR_extsrc)/pikchr.c -o $@
564
565 $(OBJDIR)/cson_amalgamation.o: $(SRCDIR_extsrc)/cson_amalgamation.c
566 $(XTCC) -c $(SRCDIR_extsrc)/cson_amalgamation.c -o $@
567
568 $(SRCDIR_extsrc)/pikchr.js: $(SRCDIR_extsrc)/pikchr.c
569 $(EMCC_WRAPPER) -o $@ $(EMCC_OPT) --no-entry <<<NEXT_LINE>>>
570 -sEXPORTED_RUNTIME_METHODS=cwrap,setValue,getValue,stackSave,stackRestore <<<NEXT_LINE>>>
571 -sEXPORTED_FUNCTIONS=_pikchr $(SRCDIR_extsrc)/pikchr.c <<<NEXT_LINE>>>
572 -sENVIRONMENT=web <<<NEXT_LINE>>>
573 -sMODULARIZE <<<NEXT_LINE>>>
574 -sEXPORT_NAME=initPikchrModule <<<NEXT_LINE>>>
575 --minify 0
576 @chmod -x $(SRCDIR_extsrc)/pikchr.wasm
577 wasm: $(SRCDIR_extsrc)/pikchr.js
578
579 #
@@ -580,11 +580,11 @@
580 # The list of all the targets that do not correspond to real files. This stops
581 # 'make' from getting confused when someone makes an error in a rule.
582 #
583
584 .PHONY: all install test clean
585 }]
586
587 close $output_file
588 #
589 # End of the main.mk output
590 ##############################################################################
591

Keyboard Shortcuts

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