You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
314 B
27 lines
314 B
7 months ago
|
.PHONY: run clean
|
||
|
|
||
|
SHADERS = vert.spv frag.spv
|
||
|
CC = gcc
|
||
|
LIBS = -lvulkan -lglfw -lm
|
||
|
CFLAGS = $(LIBS)
|
||
|
OUT = main
|
||
|
SRC = main.c
|
||
|
|
||
|
all: $(SHADERS) $(OUT)
|
||
|
|
||
|
$(OUT): $(SRC)
|
||
|
$(CC) $(CFLAGS) $(SRC) -o $(OUT)
|
||
|
|
||
|
run: all
|
||
|
./$(OUT)
|
||
|
|
||
|
clean:
|
||
|
rm $(SHADERS)
|
||
|
rm $(OUT)
|
||
|
|
||
|
%.spv: %.vert
|
||
|
glslc $< -o $@
|
||
|
|
||
|
%.spv: %.frag
|
||
|
glslc $< -o $@
|