diff --git a/Makefile b/Makefile index c7578813..1b07ce24 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ DUKTAPE_CMDLINE_SOURCES = \ dist/examples/alloc-logging/duk_alloc_logging.c \ dist/examples/alloc-torture/duk_alloc_torture.c \ dist/examples/alloc-hybrid/duk_alloc_hybrid.c \ - dist/examples/debug-trans-socket/duk_trans_socket.c + dist/examples/debug-trans-socket/duk_trans_socket_unix.c # Compiler setup for Linux CC = gcc diff --git a/dist-files/Makefile.dukdebug b/dist-files/Makefile.dukdebug index bc7b9d5b..dcc8a5b7 100644 --- a/dist-files/Makefile.dukdebug +++ b/dist-files/Makefile.dukdebug @@ -4,9 +4,11 @@ DUKTAPE_SOURCES = src/duktape.c +# Windows (MinGW): use examples/debug-trans-socket/duk_trans_socket_windows.c +# and link with -lws2_32. DUKTAPE_CMDLINE_SOURCES = \ examples/cmdline/duk_cmdline.c \ - examples/debug-trans-socket/duk_trans_socket.c + examples/debug-trans-socket/duk_trans_socket_unix.c CC = gcc CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer diff --git a/util/make_dist.py b/util/make_dist.py index a4a747ee..47fda776 100644 --- a/util/make_dist.py +++ b/util/make_dist.py @@ -533,7 +533,8 @@ copy_files([ copy_files([ 'README.rst', - 'duk_trans_socket.c', + 'duk_trans_socket_unix.c', + 'duk_trans_socket_windows.c', 'duk_trans_socket.h' ], os.path.join('examples', 'debug-trans-socket'), os.path.join(dist, 'examples', 'debug-trans-socket'))