aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8ac3b3d..bbeff1e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
LIBS = -lGL -lGLEW -lSDL2main -lSDL2 -lfreetype -lSDL2_image -lSDL2_mixer
+WIN_LIBS = -lopengl32 -lglew32 -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -lfreetype
+
FLAGS = -m32 -std=c++11 -Iinclude -Iinclude/freetype2
all:
@@ -8,6 +10,9 @@ all:
@echo " CXX main.cpp"
@g++ $(FLAGS) -o main main.cpp out/*.o $(LIBS)
+win32:
+ @g++ $(FLAGS) -o main main.cpp src/*.cpp $(WIN_LIBS)
+
clean:
@echo " RM main"
@-rm -f main