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 | |
---|
1 | OS = $(shell uname)
|
---|
2 |
|
---|
3 | ifeq ($(OS),Darwin)
|
---|
4 | CHECK = OSX
|
---|
5 | CC = g++ game.cpp -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew -Wall -o game
|
---|
6 | endif
|
---|
7 | ifeq ($(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
|
---|
10 | endif
|
---|
11 |
|
---|
12 | game: game.cpp
|
---|
13 | @echo $(CHECK)
|
---|
14 | $(CC)
|
---|
15 |
|
---|
16 | clean:
|
---|
17 | rm -f game
|
---|
Note:
See
TracBrowser
for help on using the repository browser.