]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Added makefile
authorClyne Sullivan <tullivan99@gmail.com>
Fri, 4 Sep 2015 12:43:40 +0000 (08:43 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Fri, 4 Sep 2015 12:43:40 +0000 (08:43 -0400)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..66f1c9c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+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)
+       
+win32:
+       @gcc src/main.cpp -o main.exe $(FLAGS_WIN32) $(FLAGS)
+
+clean:
+       rm main*