feature/imgui-sdl
points-test
Last change
on this file since 0e0f851 was 1a616e6, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 7 years ago |
Remove the ImGui example since it has been integrated into the main project, and update the makefile to build the Linux and OSX app with the newly-added ImGui code.
|
-
Property mode
set to
100644
|
File size:
986 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 | IMGUI_FILES = IMGUI/imgui_demo.cpp IMGUI/imgui_draw.cpp IMGUI/imgui.cpp
|
---|
13 |
|
---|
14 | # If I were generating .o files as well, I should use $? instead of $^
|
---|
15 | # as this well prevent regenerating .o files for unchanged .cpp files
|
---|
16 |
|
---|
17 | newgame: new-game.cpp logger.cpp stb_image.cpp imgui_impl_glfw_gl3.cpp $(IMGUI_FILES)
|
---|
18 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
19 |
|
---|
20 | pong: pong.cpp logger.cpp
|
---|
21 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
22 |
|
---|
23 | mygame: mygame.cpp common/shader.cpp common/texture.cpp common/controls-new.cpp
|
---|
24 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
25 |
|
---|
26 | demo: game06.cpp common/shader.cpp common/texture.cpp common/controls.cpp
|
---|
27 | $(CC) $^ $(DEP) $(CFLAGS) -o $@
|
---|
28 |
|
---|
29 | clean:
|
---|
30 | rm -f newgame
|
---|
31 | rm -f pong
|
---|
32 | rm -f mygame
|
---|
33 | rm -f demo
|
---|
Note:
See
TracBrowser
for help on using the repository browser.