Eliminate dependency generation step entirely
Instead, create an empty .dep file that is replaced with the actual dependencies once the file is compiled.
This commit is contained in:
parent
c0b3a8bd35
commit
8a66174c54
2 changed files with 47 additions and 104 deletions
|
@ -1,9 +1,9 @@
|
|||
dnl
|
||||
dnl Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2017,
|
||||
dnl 2018
|
||||
dnl Jonathan Schleifer <js@heap.zone>
|
||||
dnl 2018, 2020
|
||||
dnl Jonathan Schleifer <js@nil.im>
|
||||
dnl
|
||||
dnl https://heap.zone/git/?p=buildsys.git
|
||||
dnl https://git.nil.im/buildsys.git
|
||||
dnl
|
||||
dnl Permission to use, copy, modify, and/or distribute this software for any
|
||||
dnl purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -37,12 +37,15 @@ AC_DEFUN([BUILDSYS_INIT], [
|
|||
esac
|
||||
|
||||
AC_CONFIG_COMMANDS_PRE([
|
||||
AC_SUBST(CC_DEPENDS, $GCC)
|
||||
AC_SUBST(CXX_DEPENDS, $GXX)
|
||||
AC_SUBST(OBJC_DEPENDS, $GOBJC)
|
||||
AC_SUBST(OBJCXX_DEPENDS, $GOBJCXX)
|
||||
AS_IF([test x"$GCC" = x"yes"],
|
||||
[AC_SUBST(DEP_CFLAGS, '-MD -MF $${out%.o}.dep')])
|
||||
AS_IF([test x"$GXX" = x"yes"],
|
||||
[AC_SUBST(DEP_CXXFLAGS, '-MD -MF $${out%.o}.dep')])
|
||||
AS_IF([test x"$GOBJC" = x"yes"],
|
||||
[AC_SUBST(DEP_OBJCFLAGS, '-MD -MF $${out%.o}.dep')])
|
||||
AS_IF([test x"$GOBJCXX" = x"yes"],
|
||||
[AC_SUBST(DEP_OBJCXXFLAGS, '-MD -MF $${out%.o}.dep')])
|
||||
|
||||
AMIGA_LIB_LDFLAGS="-nostartfiles"
|
||||
AC_SUBST(AMIGA_LIB_CFLAGS)
|
||||
AC_SUBST(AMIGA_LIB_LDFLAGS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue