this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 35 lines 629 B view raw
1.PHONY: all run shaders 2 3SRC_DIR = src 4BUILD_DIR ?= tmp/build 5REGION ?= 14 6 7SRCS := $(wildcard $(SRC_DIR)/*.c) 8OBJS := $(SRCS:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.o) 9 10CC = gcc 11CFLAGS = -g -Ivendor -Ivendor/cglm-0.9.6/include -DDEBUG 12U9 = ./bin/u9map 13 14all: $(BUILD_DIR) $(U9) shaders 15 16$(BUILD_DIR): 17 mkdir -p $@ 18 19$(U9): $(OBJS) 20 $(CC) $(OBJS) -o $(U9) $(DEFS) -lglfw -lvulkan -lm 21 22$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c $(wildcard $(SRC_DIR)/*.h) 23 $(CC) $(CFLAGS) -c $< -o $@ 24 25shaders: bin/triangle.vert.spv bin/triangle.frag.spv 26 27bin/%.spv: shaders/%.glsl 28 glslc $< -o $@ 29 30run: $(U9) shaders 31 $(U9) $(REGION) 32 33clean: 34 rm $(BUILD_DIR)/* 35