Changeset 5a643d3 in opengl-game for makefile


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.