diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..475c788 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +SRCS=\ + cube.c + +OBJS=$(SRCS:.c=.o) + +INCS=\ + gettime.h\ + linmath.h + +LIBS=-L/local/xorg/lib -lvulkan -lxcb -lm + +TARGET=cube + +GLSV=glslangValidator + +SPV=cube-vert.spv cube-frag.spv + +CFLAGS=-O0 -g -DVK_USE_PLATFORM_XCB_KHR -I/local/xorg/include + +all: $(TARGET) $(SPV) + +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + +$(OBJS): $(INCS) + +cube-vert.spv: cube.vert + $(GLSV) -V -o $@ cube.vert + +cube-frag.spv: cube.frag + $(GLSV) -V -o $@ cube.frag + +clean: + rm -f $(TARGET) $(OBJS) $(SPV) |