Backport changes to old Makefile

This commit is contained in:
David Carlier 2020-08-09 15:52:11 +00:00
parent 0200434187
commit 1412d0201c

View file

@ -424,7 +424,30 @@ release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1
endif
endif
ifeq ($(YQ2_OSTYPE), Linux)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
endif
ifeq ($(YQ2_OSTYPE), Darwin)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
endif
ifeq ($(YQ2_OSTYPE), SunOS)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
endif
ifeq ($(YQ2_OSTYPE), FreeBSD)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
release/quake2 : LDFLAGS += -lexecinfo
endif
ifeq ($(YQ2_OSTYPE), OpenBSD)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
release/quake2 : LDFLAGS += -lexecinfo
endif
ifeq ($(YQ2_OSTYPE), Haiku)
release/quake2 : CFLAGS += -DHAVE_EXECINFO
release/quake2 : LDFLAGS += -lexecinfo
endif