From e5a591054ea0992acc3cb786d3af9f358febca6d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 19 Apr 2024 21:17:21 +0200 Subject: MHR-5: Improve makefile, and separating them for each platform. Signed-off-by: Amlal El Mahrouss --- Public/Developer/SystemLib/amd64.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Public/Developer/SystemLib/amd64.mk (limited to 'Public/Developer/SystemLib/amd64.mk') 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) -- cgit v1.2.3