1 diff -Naur source.old/src/makefile source/src/makefile
2 --- source.old/src/makefile 1969-12-31 21:00:01.000000000 -0300
3 +++ source/src/makefile 2021-06-07 18:58:48.851231787 -0300
6 # need packages nodejs and libnode-dev
7 js_hello_v8 : js_hello_v8.cpp
8 - g++ -I/usr/include/v8 js_hello_v8.cpp -lv8 -lstdc++ -o js_hello_v8
9 + $(CXX) -I/usr/include/v8 js_hello_v8.cpp -lv8 -lstdc++ -o js_hello_v8
11 HELLOEXTRA = stringfile.o messages.o msg-strings.o startwindow.o ebrc.o format.o http.o isup.o fetchmail.o sendmail.o plugin.o buffers.o dbstubs.o html.o decorate.o html-tidy.o css.o
12 js_hello_moz : js_hello_moz.o $(HELLOEXTRA) jseng-moz.o
13 $(CC) js_hello_moz.o $(HELLOEXTRA) jseng-moz.o $(LDFLAGS) -lmozjs-$(SMV) -lstdc++ -o $@
15 js_hello_quick : js_hello_quick.c
16 - gcc $(CFLAGS) js_hello_quick.c stringfile.o messages.o msg-strings.o ebrc.o format.o -o js_hello_quick -L/usr/local/lib/quickjs -lquickjs -lm -ldl -lpthread -latomic
17 + $(CC) $(CFLAGS) js_hello_quick.c stringfile.o messages.o msg-strings.o ebrc.o format.o -o js_hello_quick $(QUICKJS_LDFLAGS) -lm -lpthread
19 hello: js_hello_duk js_hello_v8 js_hello_moz js_hello_quick