feature/imgui-sdl
points-test
Line | |
---|
1 | OS = $(shell uname)
|
---|
2 | CC = g++
|
---|
3 | CFLAGS = -std=c++0x -Wall -pedantic -rdynamic
|
---|
4 | #-Wextra -fno-inline
|
---|
5 |
|
---|
6 | ifeq ($(OS),Darwin)
|
---|
7 | DEP = -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw -lglew
|
---|
8 | endif
|
---|
9 | ifeq ($(OS),Linux)
|
---|
10 | DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread
|
---|
11 | endif
|
---|
12 |
|
---|
13 | IMGUI_FILES = IMGUI/imgui_demo.cpp IMGUI/imgui_draw.cpp IMGUI/imgui.cpp
|
---|
14 |
|
---|
15 | # If I were generating .o files as well, I should use $? instead of $^
|
---|
16 | # as this well prevent regenerating .o files for unchanged .cpp files
|
---|
17 |
|
---|
18 | newgame: new-game.cpp logger.cpp utils.cpp CrashLogger.cpp stb_image.cpp imgui_impl_glfw_gl3.cpp $(IMGUI_FILES)
|
---|
19 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
20 |
|
---|
21 | pong: pong.cpp logger.cpp
|
---|
22 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
23 |
|
---|
24 | mygame: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp
|
---|
25 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
26 |
|
---|
27 | demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp
|
---|
28 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
29 |
|
---|
30 | clean:
|
---|
31 | rm -f newgame
|
---|
32 | rm -f pong
|
---|
33 | rm -f mygame
|
---|
34 | rm -f demo
|
---|
Note:
See
TracBrowser
for help on using the repository browser.