From 09dd11ddf800898c00ecb04a65fb5cd10fb481fa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 8 May 2024 12:32:41 +0200 Subject: MHR-23: :boom: changes, reworked project tree. Signed-off-by: Amlal El Mahrouss --- SDK/Developer/CoreSystem/amd64.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SDK/Developer/CoreSystem/amd64.mk (limited to 'SDK/Developer/CoreSystem/amd64.mk') 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) -- cgit v1.2.3