- Timestamp:
- Jul 2, 2019, 5:16:02 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- b6127d2
- Parents:
- 826df16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
makefile
r826df16 rab65f84 2 2 OS = $(shell uname) 3 3 CC = g++ 4 CFLAGS = -std=c++1 1-Wall -pedantic -rdynamic4 CFLAGS = -std=c++17 -Wall -pedantic -rdynamic 5 5 # -rdynamic is to generate debug info for dynamic symbols on debian-based 6 6 # systems (tested on Linux Mint) … … 34 34 $(CC) $^ $(DEP) $(CFLAGS) -o $@ 35 35 36 # from the mac makefile 37 #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 38 #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 36 CXX_FLAGS = -std=c++17 -Wall -pedantic # -O3 -rdynamic 39 37 40 CXX_FLAGS = -std=c++17 -Wall -pedantic # -O3 38 ifeq ($(OS),Darwin) 39 VULKAN_SDK_PATH = /Users/dportnoy15/Development/vulkan-sdk-macos-1.1.108.0/macOS 40 endif 41 ifeq ($(OS),Linux) 42 VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64 43 endif 41 44 42 VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64 45 LIB_PATHS = -I$(VULKAN_SDK_PATH)/include 46 ifeq ($(OS),Darwin) 47 LIB_PATHS := -Wl,-rpath,$(VULKAN_SDK_PATH)/lib $(LIB_PATHS) 48 endif 49 ifeq ($(OS),Linux) 50 LIB_PATHS := -L$(VULKAN_SDK_PATH)/lib $(LIB_PATHS) 51 endif 43 52 44 LIB_PATHS = -L$(VULKAN_SDK_PATH)/lib -I$(VULKAN_SDK_PATH)/include 45 LIBS = -lvulkan -lSDL2 53 LIBS = -lSDL2 54 ifeq ($(OS),Darwin) 55 LIBS := $(VULKAN_SDK_PATH)/lib/libvulkan.dylib $(LIBS) 56 endif 57 ifeq ($(OS),Linux) 58 LIBS := -lvulkan $(LIBS) 59 endif 46 60 47 61 LIB_FLAGS = $(LIB_PATHS) $(LIBS)
Note:
See TracChangeset
for help on using the changeset viewer.