Attempt windows support (doesn't work)
This commit is contained in:
8
Makefile
8
Makefile
@@ -3,6 +3,12 @@
|
||||
EMSCR := $(shell command -v emcmake 2> /dev/null)
|
||||
LLVM_AR := $(shell command -v llvm-ar 2> /dev/null)
|
||||
|
||||
SYS := $(shell $(CC) -dumpmachine)
|
||||
|
||||
ifneq (,$(findstring mingw,$(SYS)))
|
||||
wsrALDFLAGS := -lws2_32
|
||||
endif
|
||||
|
||||
emscr:
|
||||
ifndef EMSCR
|
||||
$(error "Emscripten is not in PATH.")
|
||||
@@ -27,7 +33,7 @@ FFmpeg/libswscale/libswscale.a: emscr
|
||||
llvm-ar d FFmpeg/libavcodec/libavcodec.a reverse.o
|
||||
|
||||
wsrA: main2.c
|
||||
cc -s -O3 -D_GNU_SOURCE -o wsrA main2.c picohttpparser.c
|
||||
$(CC) -s -O3 -D_GNU_SOURCE -D_WIN32_WINNT=0x600 -o wsrA main2.c picohttpparser.c base64.c $(wsrALDFLAGS)
|
||||
|
||||
support.js: emscr ogg/libogg.a vorbis/lib/libvorbis.a FFmpeg/libswscale/libswscale.a
|
||||
emcc -o support -fPIC -flto -IFFmpeg -Iogg/include -Ivorbis/include -LFFmpeg/libavcodec -l:libavcodec.a -LFFmpeg/libswscale -l:libswscale.a -LFFmpeg/libavutil -l:libavutil.a -Lvorbis/lib -l:libvorbis.a -Logg -l:libogg.a support.c -pthread -msimd128 -O3 -sMAYBE_WASM2JS -sUSE_PTHREADS=1 -sEXPORT_ALL=1 -sMAIN_MODULE=1 -sTOTAL_MEMORY=128MB
|
||||
|
||||
Reference in New Issue
Block a user