aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-10-08 09:10:08 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-10-08 09:10:08 -0400
commit3120be4f673c3e106c47ee250ca02179bacec52f (patch)
treee3f8fdcf70e40fdf3320b3f3bad5d392e4149160 /Makefile
parent281da1f81b1eef9e05e881e12d986b6b45ce8696 (diff)
improved inventory, debug flags
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a8f2d88..387f5f3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
-LIBS = -lGL -lSDL2_image -lSDL2_mixer
+LIBS = -lGL
+WIN_LIBS = -lopengl32 -lmingw32
-FLAGS = -m32 -std=c++11 -Iinclude -Iinclude/freetype2 -lSDL2main -lSDL2 -lfreetype
+FLAGS = -m32 -std=c++11 -Iinclude -Iinclude/freetype2 -lSDL2main -lSDL2 -lfreetype -lSDL2_image -lSDL2_mixer
all:
@rm -f out/*.o
@@ -8,6 +9,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