Browse Source

Build: add in vulkan deps

main
heck 2 years ago
parent
commit
c1ad3c7a28
  1. 15
      Makefile.conf
  2. 5
      build.conf.example

15
Makefile.conf

@ -40,6 +40,11 @@ else ifneq (,$(findstring clang,$(CXX)))
endif
LIBS:=-lstdc++
LIBS+=-lpthread
LIBS+=-lm
LIBS+=-lglfw
LIBS+=-lVulkan
LIBS+=-lglm_shared
LDFLAGS+=$(LIBS)
@ -47,10 +52,12 @@ LDFLAGS+=$(LIBS)
HERE:=$(dir $(lastword $(MAKEFILE_LIST)))
-include $(HERE)build.conf
COMPILE_FLAGS+=-isystem$(SYS_PREFIX)/include
COMPILE_FLAGS+=-I$(PREFIX)/include
LDFLAGS+=-L$(SYS_PREFIX)/lib
LDFLAGS+=-L$(PREFIX)/lib
COMPILE_FLAGS+=-isystem$(MACOS_SYS_PREFIX)/include
COMPILE_FLAGS+=-isystem$(PORTS_SYS_PREFIX)/include
COMPILE_FLAGS+=-I$(USER_PREFIX)/include
LDFLAGS+=-L$(MACOS_SYS_PREFIX)/lib
LDFLAGS+=-L$(PORTS_SYS_PREFIX)/lib
LDFLAGS+=-L$(USER_PREFIX)/lib
ifeq ($(DEBUG),1)
COMPILE_FLAGS+=-g -O0 -DDEBUG

5
build.conf.example

@ -1,5 +1,8 @@
# The following values reflect the defaults
# uncomment and adjust
# USER_PREFIX=$(HOME)/local-3x
# MACOS_SYS_PREFIX=/Users/heck/VulkanSDK/1.3.250.0/macOS/
# PORTS_SYS_PREFIX=/opt/local/
# DEBUG?=1
# PREFIX=/opt/local

Loading…
Cancel
Save