Add a basic Makefile and new entry to .gitignore

This commit is contained in:
2024-12-08 02:53:01 +01:00
parent 2a6459645c
commit 6c9fdc5dc7
2 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@@ -14,3 +14,4 @@ Chinczyk188/res/SFML
# EN: Executable created by g++ (mingw).
# PL: Plik wykonywalny tworzony przez g++ (mingw).
output.exe
Chinczyk188/output.exe

18
Chinczyk188/Makefile Normal file
View File

@@ -0,0 +1,18 @@
# 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-system-s -lopengl32 -lwinmm -lgdi32 -DSFML_STATIC
#LINK = -L.
OUTPUT = output.exe
CPPSTD = c++17
default:
$(CC) -g "*.cpp" $(CFLAGS) $(DEPS) $(LINK) -std=$(CPPSTD) -static -static-libgcc -fno-keep-inline-dllexport -o $(OUTPUT)
run: default
$(OUTPUT)
clean:
rm $(OUTPUT)