mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-05-13 23:37:18 +03:00
16 lines
449 B
Makefile
16 lines
449 B
Makefile
SRCROOT?=..
|
|
|
|
THISFILE:=$(SRCROOT)/devtools/makefile_base_posix.mak
|
|
MAKEFILE_BASE:=$(notdir $(THISFILE))
|
|
MAKEFILE_LINK:=$(THISFILE).link
|
|
|
|
-include $(MAKEFILE_LINK)
|
|
|
|
$(MAKEFILE_LINK): $(shell which $(CC)) $(THISFILE)
|
|
if [ "$(shell printf "$(shell $(CC) -dumpversion)\n8" | sort -Vr | head -1)" = 8 ]; then \
|
|
$(COMPILE.cpp) -o gcc9+support.o gcc9+support.c ;\
|
|
ln -sf $(MAKEFILE_BASE).default $@ ;\
|
|
else \
|
|
ln -sf $(MAKEFILE_BASE).gcc8 $@ ;\
|
|
fi
|