|
|
|
@ -11,31 +11,28 @@ SPV_FILES = $(VERT_SPV) $(FRAG_SPV) $(COMP_SPV)
|
|
|
|
|
|
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS :=
|
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
|
OS :=
|
|
|
|
|
ifeq ($(UNAME_S),Linux)
|
|
|
|
|
CC = clang
|
|
|
|
|
CPP = clang++
|
|
|
|
|
GDB = GDB
|
|
|
|
|
GDB = gdb
|
|
|
|
|
endif
|
|
|
|
|
ifeq ($(UNAME_S),Darwin)
|
|
|
|
|
LDFLAGS += -L/opt/homebrew/opt/llvm/lib -L/opt/homebrew/opt/llvm/lib/c++ -L/opt/homebrew/lib
|
|
|
|
|
CC = /opt/homebrew/opt/llvm/bin/clang
|
|
|
|
|
CPP = /opt/homebrew/opt/llvm/bin/clang++
|
|
|
|
|
DSYM = /opt/homebrew/opt/llvm/bin/dsymutil
|
|
|
|
|
GDB = /opt/homebrew/opt/llvm/bin/lldb
|
|
|
|
|
DSYM = dsymutil
|
|
|
|
|
GDB = lldb
|
|
|
|
|
EXTRA_DEBUG_REQUIREMENTS = roleplay.dSYM
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
CC ?= clang
|
|
|
|
|
CXX ?= clang++
|
|
|
|
|
|
|
|
|
|
export MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=1
|
|
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
all: roleplay $(SPV_FILES)
|
|
|
|
|
|
|
|
|
|
roleplay: $(OBJECTS)
|
|
|
|
|
$(CPP) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
|
$(CXX) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
|
|
%.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
|
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|