Changeset 15c7ed9 in opengl-game
- Timestamp:
- Feb 23, 2017, 2:28:24 AM (8 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 4d52702
- Parents:
- 5540132
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
game.cpp
r5540132 r15c7ed9 8 8 #include <GLFW/glfw3.h> 9 9 10 #ifdef __APPLE__ 11 #define OSX 10 #if defined(__linux__) 11 #define LINUX 12 #elif defined(__APPLE__) 13 #define MAC 12 14 #endif 13 15 … … 32 34 33 35 // required in OSX 34 #ifdef OSX36 #ifdef MAC 35 37 glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); 36 38 #endif -
makefile
r5540132 r15c7ed9 1 1 OS = $(shell uname) 2 CC = g++ 3 CFLAGS = -std=c++0x -Wall -pedantic #-Wextra 2 4 3 5 ifeq ($(OS),Darwin) 4 CHECK = OSX 5 CC = g++ game.cpp -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew -Wall -o game 6 DEP = -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew 6 7 endif 7 ifeq ($(OS),Lolbol) 8 CHECK = LINUX 9 CC = g++ game.cpp -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread -Wall -std=c++0x -o game 8 ifeq ($(OS),Linux) 9 DEP = -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor -pthread 10 10 endif 11 11 12 12 game: game.cpp 13 @echo $(CHECK) 14 $(CC) 13 $(CC) $? $(DEP) $(CFLAGS) -o $@ 15 14 16 15 clean:
Note:
See TracChangeset
for help on using the changeset viewer.