VULKAN_SDK_PATH = /Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0 CC = g++ # Add -DNDEBUG in prod builds to turn off debugging CXX_FLAGS = -O3 -std=c++11 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 # -Wl,-rpath is required to link vulkan dynamically # Check if I can do it statically, like in Linux 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 vulkan-hello-world: main.cpp game-gui-sdl.cpp $(CC) $(CXX_FLAGS) $^ -o $@ $(CXX_INCLUDES) $(LIBFLAGS) clean: rm -f vulkan-hello-world