Add a basic Makefile and new entry to .gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -13,4 +13,5 @@ Chinczyk188/res/SFML
|
|||||||
|
|
||||||
# EN: Executable created by g++ (mingw).
|
# EN: Executable created by g++ (mingw).
|
||||||
# PL: Plik wykonywalny tworzony przez g++ (mingw).
|
# PL: Plik wykonywalny tworzony przez g++ (mingw).
|
||||||
output.exe
|
output.exe
|
||||||
|
Chinczyk188/output.exe
|
||||||
18
Chinczyk188/Makefile
Normal file
18
Chinczyk188/Makefile
Normal 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)
|
||||||
Reference in New Issue
Block a user