feature/imgui-sdl
points-test
Last change
on this file since f898c5f was f898c5f, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
Add files from the vulkan tutorial
|
-
Property mode
set to
100644
|
File size:
680 bytes
|
Line | |
---|
1 | VULKAN_SDK_PATH = /Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0
|
---|
2 | CC = g++
|
---|
3 |
|
---|
4 | # Add -DNDEBUG in prod builds to turn off debugging
|
---|
5 | CXX_FLAGS = -O3 -std=c++11
|
---|
6 |
|
---|
7 | CXX_INCLUDES = -I/Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS/include -I/usr/local/Cellar/sdl2/2.0.9_1/include/SDL2
|
---|
8 |
|
---|
9 | # -Wl,-rpath is required to link vulkan dynamically
|
---|
10 | # Check if I can do it statically, like in Linux
|
---|
11 | LIBFLAGS = -Wl,-rpath,$(VULKAN_SDK_PATH)/macOS/lib $(VULKAN_SDK_PATH)/macOS/lib/libvulkan.dylib -L/usr/local/Cellar/sdl2/2.0.9_1/lib -lSDL2
|
---|
12 |
|
---|
13 | vulkan-hello-world: main.cpp game-gui-sdl.cpp
|
---|
14 | $(CC) $(CXX_FLAGS) $^ -o $@ $(CXX_INCLUDES) $(LIBFLAGS)
|
---|
15 |
|
---|
16 | clean:
|
---|
17 | rm -f vulkan-hello-world
|
---|
Note:
See
TracBrowser
for help on using the repository browser.