-FLAGS_LINUX = -lGL -lSDL_image
-FLAGS_WIN32 = -lopengl32 -lmingw32 -lSDL2_Image
+FLAGS_LINUX = -lGL -lSDL_image
+FLAGS_WIN32 = -lopengl32 -lmingw32 -lSDL2_Image
FLAGS = -Wall -Werror -lSDL2main -lSDL2
all:
- @gcc src/main.cpp -o main $(FLAGS_LINUX) $(FLAGS)
-
+ @g++ src/main.cpp -o main $(FLAGS_LINUX) $(FLAGS)
+
win32:
- @gcc src/main.cpp -o main.exe $(FLAGS_WIN32) $(FLAGS)
+ @g++ src/main.cpp -o main.exe $(FLAGS_WIN32) $(FLAGS)
clean:
rm main*