summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/Makefile
blob: 32b473f3c9e00a0da5a205c3d9aa03695475fc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
##################################################
# (C) Mahrouss Logic, all rights reserved.
# 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
OUTPUT=SystemLib.lib

.PHONY: build-core-amd64
build-core-amd64:
	$(CC) $(INC) $(CCFLAGS) $(wildcard Sources/*.c) $(wildcard Sources/*.cxx) $(wildcard AMD64/*.s) -o $(OUTPUT)

.PHONY: all
all: build-core-amd64
	@echo "[SystemLib.lib] Build done."

.PHONY: clean
clean:
	rm -f *.o