summaryrefslogtreecommitdiffhomepage
path: root/SDK/Libraries/CoreSystem/amd64.mk
blob: e64de90fd90615ec33efddc2c620d93eb5bfdafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##################################################
# (C) SoftwareLabs, 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 -e __DllMainCRTStartup -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)