aboutsummaryrefslogtreecommitdiff
path: root/shared/os.mk
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 22:16:55 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 22:16:55 +0200
commit3fd5d966f3b0cabd9f6931bc1ca416408f9e101c (patch)
tree88607b1cd901b78b0892a0a85580993f7cb2c57d /shared/os.mk
parentedfa25fcd8edad43998f50a2144d30a6f966c1c8 (diff)
compile sim on windows without errors
Diffstat (limited to 'shared/os.mk')
-rw-r--r--shared/os.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/os.mk b/shared/os.mk
new file mode 100644
index 0000000..e4ede42
--- /dev/null
+++ b/shared/os.mk
@@ -0,0 +1,12 @@
+# os info
+OS=$(strip $(shell uname -o))
+ifeq ($(OS),GNU/Linux)
+CFLAGS += -DW2_HOST_LINUX
+LINUX := true
+TARGET := a.out
+endif
+ifeq ($(OS),Msys)
+CFLAGS += -DW2_HOST_WIN32
+WIN32 := true
+TARGET := a.exe
+endif \ No newline at end of file