Changeset 5a643d3 in opengl-game


Ignore:
Timestamp:
Feb 23, 2017, 12:00:04 AM (8 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
5540132
Parents:
a6edbfb
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (02/22/17 23:59:59)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (02/23/17 00:00:04)
Message:

Change the makefile to support building for OSX and Linux

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • README.txt

    ra6edbfb r5a643d3  
    1010 (cmake . && make && sudo make install)
    1111
     12Installation Instructions for OSX
     13---------------------------------------
     14
     15Run 'xcode-select --install'
     16This should make g++ check for libraries in /usr/local/
     17
    1218Installation Instructions for Windows
    1319---------------------------------------
  • makefile

    ra6edbfb r5a643d3  
     1OS = $(shell uname)
     2
     3ifeq ($(OS),Darwin)
     4        CHECK = OSX
     5        CC = g++ game.cpp -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -lglfw3 -lglew -Wall -o game
     6endif
     7ifeq ($(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
     10endif
     11
    112game: game.cpp
    2         g++ game.cpp -lglfw3 -lGLEW -lGL -ldl -lX11 -lXrandr -lXxf86vm -lXinerama -lXcursor  -pthread -Wall -std=c++0x -o game
     13        @echo $(CHECK)
     14        $(CC)
    315
    416clean:
Note: See TracChangeset for help on using the changeset viewer.