diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-04 08:43:40 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-04 08:43:40 -0400 |
commit | e7a768cf081751ddba2e903a37f51725abfb5b36 (patch) | |
tree | dafe172dae455e477a88fa01fb9b563562f84cd7 /Makefile | |
parent | daac706c2200d0ae2485e53b335605fc90d886e5 (diff) |
Added makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 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* |