mirror of https://github.com/encounter/SDL.git
parent
10979d37fb
commit
ac20167ef7
|
@ -30,6 +30,7 @@ AR = @AR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
RC = @RC@
|
RC = @RC@
|
||||||
LINKER = @LINKER@
|
LINKER = @LINKER@
|
||||||
|
LIBTOOLLINKERTAG = @LIBTOOLLINKERTAG@
|
||||||
|
|
||||||
TARGET = libSDL2.la
|
TARGET = libSDL2.la
|
||||||
OBJECTS = @OBJECTS@
|
OBJECTS = @OBJECTS@
|
||||||
|
@ -153,13 +154,13 @@ update-revision:
|
||||||
.PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
|
.PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
|
||||||
|
|
||||||
$(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS)
|
$(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS)
|
||||||
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(LINKER) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
|
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=$(LIBTOOLLINKERTAG) --mode=link $(LINKER) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
|
||||||
|
|
||||||
$(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
|
$(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
|
||||||
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(LINKER) -static -o $@ $(SDLMAIN_OBJECTS) -rpath $(libdir)
|
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=$(LIBTOOLLINKERTAG) --mode=link $(LINKER) -static -o $@ $(SDLMAIN_OBJECTS) -rpath $(libdir)
|
||||||
|
|
||||||
$(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
|
$(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
|
||||||
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(LINKER) -static -o $@ $(SDLTEST_OBJECTS) -rpath $(libdir)
|
$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=$(LIBTOOLLINKERTAG) --mode=link $(LINKER) -static -o $@ $(SDLTEST_OBJECTS) -rpath $(libdir)
|
||||||
|
|
||||||
install: all install-bin install-hdrs install-lib install-data
|
install: all install-bin install-hdrs install-lib install-data
|
||||||
install-bin:
|
install-bin:
|
||||||
|
|
|
@ -690,6 +690,7 @@ ALSA_CFLAGS
|
||||||
POW_LIB
|
POW_LIB
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
ALLOCA
|
ALLOCA
|
||||||
|
LIBTOOLLINKERTAG
|
||||||
LINKER
|
LINKER
|
||||||
PKG_CONFIG_LIBDIR
|
PKG_CONFIG_LIBDIR
|
||||||
PKG_CONFIG_PATH
|
PKG_CONFIG_PATH
|
||||||
|
@ -16020,13 +16021,16 @@ esac
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-haiku*)
|
*-*-haiku*)
|
||||||
LINKER='$(CXX)'
|
LINKER='$(CXX)'
|
||||||
|
LIBTOOLLINKERTAG='CXX'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
LINKER='$(CC)'
|
LINKER='$(CC)'
|
||||||
|
LIBTOOLLINKERTAG='CC'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test x$srcdir != x.; then
|
if test x$srcdir != x.; then
|
||||||
INCLUDE="-Iinclude $INCLUDE"
|
INCLUDE="-Iinclude $INCLUDE"
|
||||||
elif test -d .git; then
|
elif test -d .git; then
|
||||||
|
|
|
@ -85,12 +85,15 @@ dnl use CXX for linker on Haiku
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-haiku*)
|
*-*-haiku*)
|
||||||
LINKER='$(CXX)'
|
LINKER='$(CXX)'
|
||||||
|
LIBTOOLLINKERTAG='CXX'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
LINKER='$(CC)'
|
LINKER='$(CC)'
|
||||||
|
LIBTOOLLINKERTAG='CC'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(LINKER)
|
AC_SUBST(LINKER)
|
||||||
|
AC_SUBST(LIBTOOLLINKERTAG)
|
||||||
|
|
||||||
if test x$srcdir != x.; then
|
if test x$srcdir != x.; then
|
||||||
INCLUDE="-Iinclude $INCLUDE"
|
INCLUDE="-Iinclude $INCLUDE"
|
||||||
|
|
Loading…
Reference in New Issue