source: opengl-game/makefile@ 49756cb

feature/imgui-sdl points-test
Last change on this file since 49756cb was 49756cb, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago

Remove game.cpp

  • Property mode set to 100644
File size: 647 bytes
Line 
1OS = $(shell uname)
2CC = g++
3CFLAGS = -std=c++0x -Wall -pedantic #-Wextra
4
5ifeq ($(OS),Darwin)
6 DEP = -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew
7endif
8ifeq ($(OS),Linux)
9 DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread
10endif
11
12newgame: new-game.cpp logger.cpp
13 $(CC) $? $(DEP) $(CFLAGS) -o $@
14
15mygame: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp
16 $(CC) $? $(DEP) $(CFLAGS) -o $@
17
18demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp
19 $(CC) $? $(DEP) $(CFLAGS) -o $@
20
21clean:
22 rm -f newgame
23 rm -f mygame
24 rm -f demo
Note: See TracBrowser for help on using the repository browser.