|
|
@ -11,31 +11,28 @@ SPV_FILES = $(VERT_SPV) $(FRAG_SPV) $(COMP_SPV)
|
|
|
|
|
|
|
|
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS :=
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS :=
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
OS :=
|
|
|
|
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
CC = clang
|
|
|
|
GDB = gdb
|
|
|
|
CPP = clang++
|
|
|
|
|
|
|
|
GDB = GDB
|
|
|
|
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
LDFLAGS += -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/lib
|
|
|
|
DSYM = dsymutil
|
|
|
|
CC = /opt/homebrew/opt/llvm/bin/clang
|
|
|
|
GDB = lldb
|
|
|
|
CPP = /opt/homebrew/opt/llvm/bin/clang++
|
|
|
|
|
|
|
|
DSYM = /opt/homebrew/opt/llvm/bin/dsymutil
|
|
|
|
|
|
|
|
GDB = /opt/homebrew/opt/llvm/bin/lldb
|
|
|
|
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS = roleplay.dSYM
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS = roleplay.dSYM
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CC ?= clang
|
|
|
|
|
|
|
|
CXX ?= clang++
|
|
|
|
|
|
|
|
|
|
|
|
export MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=1
|
|
|
|
export MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=1
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: all
|
|
|
|
all: roleplay $(SPV_FILES)
|
|
|
|
all: roleplay $(SPV_FILES)
|
|
|
|
|
|
|
|
|
|
|
|
roleplay: $(OBJECTS)
|
|
|
|
roleplay: $(OBJECTS)
|
|
|
|
$(CPP) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CPP) $(CFLAGS) -Wno-nullability-completeness -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-private-field -Wno-unused-variable -c -o $@ $<
|
|
|
|
$(CXX) $(CFLAGS) -std=c++14 -Wno-nullability-completeness -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-private-field -Wno-unused-variable -c -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|