source: opengl-game/makefile@ 5a643d3

feature/imgui-sdl points-test
Last change on this file since 5a643d3 was 5a643d3, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 8 years ago

Change the makefile to support building for OSX and Linux

  • Property mode set to 100644
File size: 406 bytes
Line 
1OS = $(shell uname)
2
3ifeq ($(OS),Darwin)
4 CHECK = OSX
5 CC = g++ game.cpp -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew -Wall -o game
6endif
7ifeq ($(OS),Lolbol)
8 CHECK = LINUX
9 CC = g++ game.cpp -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread -Wall -std=c++0x -o game
10endif
11
12game: game.cpp
13 @echo $(CHECK)
14 $(CC)
15
16clean:
17 rm -f game
Note: See TracBrowser for help on using the repository browser.