feature/imgui-sdl
points-test
|
Last change
on this file since 7ee66ea was 9e81839, checked in by Dmitry Portnoy <dmp1488@…>, 8 years ago |
|
Start implementing pong and encapsulating some of the OpenGL code into reusable functions
|
-
Property mode
set to
100644
|
|
File size:
719 bytes
|
| Line | |
|---|
| 1 | OS = $(shell uname)
|
|---|
| 2 | CC = g++
|
|---|
| 3 | CFLAGS = -std=c++0x -Wall -pedantic #-Wextra
|
|---|
| 4 |
|
|---|
| 5 | ifeq ($(OS),Darwin)
|
|---|
| 6 | DEP = -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew
|
|---|
| 7 | endif
|
|---|
| 8 | ifeq ($(OS),Linux)
|
|---|
| 9 | DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread
|
|---|
| 10 | endif
|
|---|
| 11 |
|
|---|
| 12 | newgame: new-game.cpp logger.cpp
|
|---|
| 13 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
|---|
| 14 |
|
|---|
| 15 | pong: pong.cpp logger.cpp
|
|---|
| 16 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
|---|
| 17 |
|
|---|
| 18 | mygame: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp
|
|---|
| 19 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
|---|
| 20 |
|
|---|
| 21 | demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp
|
|---|
| 22 | $(CC) $? $(DEP) $(CFLAGS) -o $@
|
|---|
| 23 |
|
|---|
| 24 | clean:
|
|---|
| 25 | rm -f newgame
|
|---|
| 26 | rm -f pong
|
|---|
| 27 | rm -f mygame
|
|---|
| 28 | rm -f demo
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.