blob: 366e666bef8851f8e9eba710b166f4075f026d42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
-include config.mk
include glslv.mk
PROG := vulkan
EPRINTF_PATH ?= ../eprintf
PKG_CONFIG ?= pkg-config
LN ?= ln -sf
LIBS := vulkan glfw3
CPPFLAGS += -D_POSIX_C_SOURCE=200112L -DGLFW_INCLUDE_VULKAN
CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBS)) -std=c11 -MMD -MP
LDFLAGS += -Wl,--as-needed
LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBS))
GLSLVFLAGS += -V
OBJ := vulkan.o eprintf.o strlist.o fragment.o vertex.o
ifeq ("$(WITH_VALIDATION)", "yes")
CPPFLAGS += -DWITH_VALIDATION
OBJ += validation.o
endif
DEP := $(OBJ:.o=.d)
all: $(PROG)
$(PROG): $(OBJ)
clean:
$(RM) $(OBJ) $(DEP) $(PROG)
include $(EPRINTF_PATH)/module.mk
deplinks: $(EPRINTF_FILES)
-include $(DEP)
.PHONY: all clean
|