mirror of
https://github.com/janet-lang/janet
synced 2025-10-31 23:53:02 +00:00
Initial Mingw support with Makefile.
Also add a macro JANET_MSVC to distinguish between a windows build (JANET_WINDOWS) and a build with msvc.
This commit is contained in:
6
Makefile
6
Makefile
@@ -77,6 +77,12 @@ ifeq ($(shell uname -o), Android)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Mingw
|
||||
ifeq ($(findstring MINGW,$(UNAME)), MINGW)
|
||||
CLIBS:=-lws2_32 -lpsapi -lwsock32
|
||||
LDFLAGS:=
|
||||
endif
|
||||
|
||||
$(shell mkdir -p build/core build/c build/boot)
|
||||
all: $(JANET_TARGET) $(JANET_LIBRARY) $(JANET_STATIC_LIBRARY) build/janet.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user