feature/imgui-sdl
points-test
Last change
on this file since 11a48af was 8a6d19d, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 8 years ago |
Implement movement in a basic 3D scene and add some examples from the new OpenGL tutorials site
|
-
Property mode
set to
100644
|
File size:
561 bytes
|
Rev | Line | |
---|
[5a643d3] | 1 | OS = $(shell uname)
|
---|
[15c7ed9] | 2 | CC = g++
|
---|
| 3 | CFLAGS = -std=c++0x -Wall -pedantic #-Wextra
|
---|
[5a643d3] | 4 |
|
---|
| 5 | ifeq ($(OS),Darwin)
|
---|
[15c7ed9] | 6 | DEP = -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew
|
---|
[5a643d3] | 7 | endif
|
---|
[15c7ed9] | 8 | ifeq ($(OS),Linux)
|
---|
| 9 | DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread
|
---|
[5a643d3] | 10 | endif
|
---|
| 11 |
|
---|
[8a6d19d] | 12 | game: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp
|
---|
| 13 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
---|
| 14 |
|
---|
| 15 | demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp
|
---|
[15c7ed9] | 16 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
---|
[cfda3b2] | 17 |
|
---|
| 18 | clean:
|
---|
| 19 | rm -f game
|
---|
[8a6d19d] | 20 | rm -f demo
|
---|
Note:
See
TracBrowser
for help on using the repository browser.