summaryrefslogtreecommitdiffhomepage
path: root/SDK/Developer/CoreSystem/amd64.mk
diff options
context:
space:
mode:
Diffstat (limited to 'SDK/Developer/CoreSystem/amd64.mk')
-rw-r--r--SDK/Developer/CoreSystem/amd64.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/SDK/Developer/CoreSystem/amd64.mk b/SDK/Developer/CoreSystem/amd64.mk
new file mode 100644
index 00000000..a2ce70df
--- /dev/null
+++ b/SDK/Developer/CoreSystem/amd64.mk
@@ -0,0 +1,22 @@
+##################################################
+# (C) Mahrouss Logic, all rights reserved.
+# This is the CoreSystem Makefile.
+##################################################
+
+CC=x86_64-w64-mingw32-gcc
+AR=x86_64-w64-mingw32-ar
+CCINC=-I./
+CCFLAGS=-D__SINGLE_PRECISION__ -nostdlib -std=c17 -ffreestanding -Xlinker --subsystem=17 -shared
+OUTPUT=CoreSystem.lib
+
+.PHONY: all
+all: build-core-amd64
+ @echo "[CoreSystem.lib] Build done."
+
+.PHONY: build-core-amd64
+build-core-amd64:
+ $(CC) $(CCINC) $(CCFLAGS) $(wildcard Sources/*.c) $(wildcard AMD64/*.s) -o $(OUTPUT)
+
+.PHONY: clean
+clean:
+ rm -f $(wildcard *.lib)