Changeset 17714b8 in opengl-game for makefile


Ignore:
Timestamp:
Aug 29, 2019, 7:52:09 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
850e84c
Parents:
8a40f4b
git-author:
Dmitry Portnoy <dmp1488@…> (08/29/19 04:32:59)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (08/29/19 19:52:09)
Message:

Update the README and makefile to correctly setup and build vulkangame with SDL2 on Ubuntu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • makefile

    r8a40f4b r17714b8  
    4747endif
    4848ifeq ($(OS),Linux)
    49         LIBS := -lvulkan $(LIBS)
     49        LIBS = `pkg-config --static --libs sdl2 glfw3`
     50        LIBS := -lvulkan $(LIBS) -lSDL2_image -lSDL2_ttf # TODO: figure out how to statically link these, ideally using pkg-config
    5051endif
    5152
    5253LIB_FLAGS = $(LIB_PATHS) $(LIBS)
     54
     55vulkanref: vulkan-ref.cpp game-gui-sdl.cpp game-gui-glfw.cpp
     56        $(CC) $(CXX_FLAGS) -o $@ $^ $(LIB_FLAGS)
    5357
    5458vulkangame: vulkan-game.cpp game-gui-sdl.cpp game-gui-glfw.cpp
     
    6165clean:
    6266        rm -f newgame
     67        rm -f vulkanref
    6368        rm -f vulkangame
    6469        rm -f shaders/*.spv
Note: See TracChangeset for help on using the changeset viewer.