source:
opengl-game/makefile@
be246ad
| Last change on this file since be246ad was 22b2c37, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 643 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 | ||
| [22b2c37] | 12 | newgame: new-game.cpp logger.cpp |
| [5272b6b] | 13 | $(CC) $? $(DEP) $(CFLAGS) -o $@ |
| 14 | ||
| [8a6d19d] | 15 | game: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp |
| 16 | $(CC) $? $(DEP) $(CFLAGS) -o $@ | |
| 17 | ||
| 18 | demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp | |
| [15c7ed9] | 19 | $(CC) $? $(DEP) $(CFLAGS) -o $@ |
| [cfda3b2] | 20 | |
| 21 | clean: | |
| [5272b6b] | 22 | rm -f newgame |
| [cfda3b2] | 23 | rm -f game |
| [8a6d19d] | 24 | rm -f demo |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)