summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/SystemLib/amd64.mk
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-19 21:17:21 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-19 21:17:34 +0200
commite5a591054ea0992acc3cb786d3af9f358febca6d (patch)
tree7d580ed0c046886297983181266fcdb37e293155 /Public/Developer/SystemLib/amd64.mk
parentc62c67a3863213ea6da3aa6ec4530c9e8287933d (diff)
MHR-5: Improve makefile, and separating them for each platform.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Public/Developer/SystemLib/amd64.mk')
-rw-r--r--Public/Developer/SystemLib/amd64.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/Public/Developer/SystemLib/amd64.mk b/Public/Developer/SystemLib/amd64.mk
new file mode 100644
index 00000000..a753ccc8
--- /dev/null
+++ b/Public/Developer/SystemLib/amd64.mk
@@ -0,0 +1,22 @@
+##################################################
+# (C) Mahrouss Logic, all rights reserved.
+# This is the SystemLib 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=SystemLib.lib
+
+.PHONY: all
+all: build-core-amd64
+ @echo "[SystemLib.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)