refactor makefile

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@515 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-30 07:44:37 +00:00
parent 1ae9b9408c
commit b0bee1e90b
7 changed files with 146 additions and 133 deletions

17
mk/vulkan.mk Normal file
View File

@@ -0,0 +1,17 @@
# $Id$
ifeq ($(TARGET),NetBSD)
VULKAN_NO_STRING_HELPER = 1
endif
ifeq ($(VULKAN_NO_STRING_HELPER),1)
VK_STRING_HELPER_DEFINE =
else
VK_STRING_HELPER_DEFINE = -DHAS_VK_ENUM_STRING_HELPER
endif
CFLAGS += $(VK_STRING_HELPER_DEFINE)
ifeq ($(VULKAN),1)
L_OBJS += src/widget/vulkan.o
EXAMPLES += examples/vkdemos/vulkan$(EXEC)
endif