mirror of
https://github.com/zimnyaa/PhaseDive
synced 2026-06-08 18:36:28 +00:00
20 lines
502 B
Makefile
20 lines
502 B
Makefile
|
|
CCX64 := x86_64-w64-mingw32-gcc
|
|
CCX86 := i686-w64-mingw32-gcc
|
|
|
|
CFLAGS := -Os -fno-asynchronous-unwind-tables
|
|
CFLAGS += -fno-ident -fpack-struct=8 -falign-functions=1
|
|
CFLAGS += -s -ffunction-sections -falign-jumps=1 -w
|
|
CFLAGS += -falign-labels=1 -fPIC # -Wl,-Tscripts/Linker.ld
|
|
CFLAGS += -Wl,-s,--no-seh,--enable-stdcall-fixup -lPsapi
|
|
|
|
OUTX64 := PhaseDive.x64.exe
|
|
|
|
all: x64
|
|
|
|
x64:
|
|
@ echo Compile executable...
|
|
@ $(CCX64) Src/*.c -o $(OUTX64) $(CFLAGS) $(LFLAGS) -IInclude
|
|
|
|
clean:
|
|
@ rm -rf bin/*.exe
|