mirror of
https://gitea.tendokyu.moe/self/even
synced 2025-02-21 04:36:37 +01:00
build: auto detect prefix
This commit is contained in:
parent
063da61931
commit
5fe8517623
14
Makefile
14
Makefile
@ -1,7 +1,15 @@
|
||||
CC = x86_64-w64-mingw32-gcc
|
||||
RC = x86_64-w64-mingw32-windres
|
||||
TARGET = x86_64-w64-mingw32
|
||||
|
||||
CFLAGS = -Wall -Wpedantic -DNDEBUG -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk -O0 -std=c23
|
||||
CC = $(TARGET)-gcc
|
||||
RC = $(TARGET)-windres
|
||||
|
||||
ifdef prefix
|
||||
PREFIX = $(prefix)
|
||||
else
|
||||
PREFIX = /usr/$(TARGET)
|
||||
endif
|
||||
|
||||
CFLAGS = -Wall -Wpedantic -DNDEBUG -I$(PREFIX)/include/ddk -O0 -std=c23
|
||||
LDFLAGS = -Wl,--subsystem,native \
|
||||
-Wl,--image-base,0x10000 \
|
||||
-Wl,--file-alignment,0x1000 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user