diff --git a/.gitignore b/.gitignore index 426087a..06ced92 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ Chinczyk188/res/SFML # EN: Executable created by g++ (mingw). # PL: Plik wykonywalny tworzony przez g++ (mingw). -output.exe \ No newline at end of file +output.exe +Chinczyk188/output.exe \ No newline at end of file diff --git a/Chinczyk188/Makefile b/Chinczyk188/Makefile new file mode 100644 index 0000000..c0a30ab --- /dev/null +++ b/Chinczyk188/Makefile @@ -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) \ No newline at end of file