Don't build the vk renderer when WITH_REFVK is no.

This is the third or forth try, already. *grrr* WITH_REFVK isn't enough,
as long as the target is there. Wrap the whole target in an if-block.
This commit is contained in:
Yamagi 2021-03-10 10:50:02 +01:00
parent 18a9827b74
commit 2a18f02186

View file

@ -677,6 +677,7 @@ build/ref_soft/%.o: %.c
# ----------
# The vk renderer lib
ifeq ($(WITH_REFVK),yes)
ifeq ($(YQ2_OSTYPE), Windows)
ref_vk:
@echo "===> Building ref_vk.dll"
@ -696,6 +697,7 @@ build/ref_vk/%.o: %.c
@echo "===> CC $<"
${Q}mkdir -p $(@D)
${Q}$(CC) -c $(CFLAGS) $(SDLCFLAGS) $(INCLUDE) -o $@ $<
endif # WITH_REFVK
# ----------