summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/Makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 22:49:49 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 22:53:45 +0100
commitd562c97291a69d1ce73e89ba300209a49d419173 (patch)
tree7ee625bb1ef115f3fae9cf60e0586880dc8ba3c7 /Public/Developer/System.Core/Makefile
parentb2c7b8604ed3a4c209a15a9ffd718a43163dd9b4 (diff)
Extend Swap HD from 4MIB to 16MIB, Made SystemLib purely C, added SystemCxxLib for that occasion.
Update Framebuffer include to define the color utils inside the C++ source file. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/System.Core/Makefile')
-rw-r--r--Public/Developer/System.Core/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Public/Developer/System.Core/Makefile b/Public/Developer/System.Core/Makefile
index 34851e99..b9a0a663 100644
--- a/Public/Developer/System.Core/Makefile
+++ b/Public/Developer/System.Core/Makefile
@@ -3,19 +3,21 @@
# This is the SystemLib Makefile.
##################################################
-CC=x86_64-w64-mingw32-g++
-CCINC=-I../ -I../../../Private/
-CCFLAGS=-shared -ffreestanding -D__SINGLE_PRECISION__ -nostdlib -fno-rtti -fno-exceptions -std=c++20 -Xlinker --subsystem=17
+CC=x86_64-w64-mingw32-gcc
+AR=x86_64-w64-mingw32-ar
+ARFLAGS=-rcs
+CCINC=-I../
+CCFLAGS=-D__SINGLE_PRECISION__ -nostdlib -std=c17 -ffreestanding -Xlinker --subsystem=17 -shared
OUTPUT=SystemLib.lib
-.PHONY: build-core-amd64
-build-core-amd64:
- $(CC) $(CCINC) $(CCFLAGS) $(wildcard Sources/*.c) $(wildcard Sources/*.cxx) $(wildcard AMD64/*.s) -o $(OUTPUT)
-
.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 *.o
+ rm -f $(wildcard *.o)