19 lines
912 B
Makefile
19 lines
912 B
Makefile
# EN: This Makefile has been created with mingw in mind.
|
|
# PL: Ten plik Makefile powstał z myślą o kompilatorze mingw.
|
|
# EN: Warning: mingw-w64-x86_64-gcc-14.1.0-3 is the last version of gcc, which supports wildcards ("*.cpp").
|
|
# PL: Uwaga: mingw-w64-x86_64-gcc-14.1.0-3 to ostatnia wspierana wersja gcc, w której można stosować wildcard'y ("*.cpp").
|
|
CC = "C:\\msys64\\mingw64\\bin\\g++.exe"
|
|
DEPS = -lsfml-graphics-s -lsfml-window-s -lsfml-audio-s -lopenal32 -lfreetype -lflac -lvorbisenc -lvorbisfile -lvorbis -logg -lsfml-system-s -lopengl32 -lwinmm -lgdi32 -lpthread
|
|
LINK = -L. -Lres/SFML/lib-mingw/
|
|
FLAGS = -DSFML_STATIC # -DCHINCZYK188_IGNORE_USER_SEED
|
|
OUTPUT = output.exe
|
|
CPPSTD = c++17
|
|
|
|
default:
|
|
$(CC) -g "*.cpp" $(LINK) $(DEPS) -std=$(CPPSTD) $(FLAGS) -static -static-libgcc -fno-keep-inline-dllexport -Os -s -Wl,--build-id=none -o $(OUTPUT)
|
|
|
|
run: default
|
|
$(OUTPUT)
|
|
|
|
clean:
|
|
rm $(OUTPUT)
|