Files
Deltara 21f99e8c9c Fixed linking error in Linux makefile
Issue caused was the failure to build because PortAudio was not being linked at all.
2023-03-28 20:44:21 -04:00

36 lines
914 B
INI

STATIC = 0
RSDK_LIBS += -pthread
SUBSYSTEM ?= OGL
ifeq ($(SUBSYSTEM),OGL)
# VIDEO: GLFW
# INPUTS: Keyboard and GLFW
# AUDIO: SDL2
RSDK_LIBS += -lglfw
RSDK_CFLAGS += `$(PKGCONFIG) --cflags --static sdl2 glew`
RSDK_LIBS += `$(PKGCONFIG) --libs --static sdl2 glew`
endif
ifeq ($(SUBSYSTEM),VK)
# VIDEO: GLFW w/ VulkanRenderDevice
# INPUTS: Keyboard and GLFW
# AUDIO: SDL2
RSDK_LIBS += -lglfw
DEFINES += -DVULKAN_USE_GLFW
RSDK_CFLAGS += `$(PKGCONFIG) --cflags --static sdl2`
RSDK_LIBS += `$(PKGCONFIG) --libs --static sdl2 vulkan`
endif
ifeq ($(SUBSYSTEM),SDL2)
# EVERYTHING: SDL2
RSDK_CFLAGS += `$(PKGCONFIG) --cflags --static sdl2`
RSDK_LIBS += `$(PKGCONFIG) --libs --static sdl2`
endif
RSDK_CFLAGS += `$(PKGCONFIG) --cflags --static theora theoradec zlib portaudio`
RSDK_LIBS += `$(PKGCONFIG) --libs --static theora theoradec zlib portaudio`