diff --git a/Makefile.conf b/Makefile.conf index 9f2944f..d2ca640 100644 --- a/Makefile.conf +++ b/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 diff --git a/build.conf.example b/build.conf.example index 592a445..fd84fed 100644 --- a/build.conf.example +++ b/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