source:
opengl-game/makefile@
15c7ed9
| Last change on this file since 15c7ed9 was 15c7ed9, checked in by , 9 years ago | |
|---|---|
|
|
| File size: 378 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 | ||
| [cfda3b2] | 12 | game: game.cpp |
| [15c7ed9] | 13 | $(CC) $? $(DEP) $(CFLAGS) -o $@ |
| [cfda3b2] | 14 | |
| 15 | clean: | |
| 16 | rm -f game |
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)