mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Fix build invalidation issue with GNU Make
The `HDRS` and/or `INCS` variables need to be defined in order for `mkdeps.com` to compute build dependencies for `o//depend`. We're using INCS here since makeint.h is the evil kind of header that isn't actually defining a library interface but rather is a hodgepodge of common code.
This commit is contained in:
parent
8141988e92
commit
f4fc16754a
28 changed files with 29 additions and 26 deletions
2
third_party/make/ar.c
vendored
2
third_party/make/ar.c
vendored
|
@ -14,7 +14,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "libc/alg/alg.h"
|
||||
#include "third_party/make/dep.h"
|
||||
|
|
2
third_party/make/arscan.c
vendored
2
third_party/make/arscan.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/* clang-format off */
|
||||
|
||||
#ifdef TEST
|
||||
|
|
2
third_party/make/commands.c
vendored
2
third_party/make/commands.c
vendored
|
@ -14,7 +14,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/filedef.h"
|
||||
|
|
2
third_party/make/default.c
vendored
2
third_party/make/default.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/variable.h"
|
||||
|
|
2
third_party/make/dir.c
vendored
2
third_party/make/dir.c
vendored
|
@ -14,7 +14,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/filedef.h"
|
||||
|
|
2
third_party/make/expand.c
vendored
2
third_party/make/expand.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/job.h"
|
||||
|
|
2
third_party/make/file.c
vendored
2
third_party/make/file.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
|
|
2
third_party/make/function.c
vendored
2
third_party/make/function.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/variable.h"
|
||||
|
|
2
third_party/make/guile.c
vendored
2
third_party/make/guile.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
|
||||
int
|
||||
guile_gmake_setup (const floc *flocp UNUSED)
|
||||
|
|
2
third_party/make/hash.c
vendored
2
third_party/make/hash.c
vendored
|
@ -14,7 +14,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "libc/assert.h"
|
||||
#include "third_party/make/hash.h"
|
||||
|
|
2
third_party/make/implicit.c
vendored
2
third_party/make/implicit.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/rule.h"
|
||||
#include "third_party/make/dep.h"
|
||||
|
|
2
third_party/make/job.c
vendored
2
third_party/make/job.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "third_party/make/debug.h"
|
||||
#include "third_party/make/filedef.h"
|
||||
|
|
2
third_party/make/load.c
vendored
2
third_party/make/load.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
|
||||
int
|
||||
load_file (const floc *flocp, const char **ldname UNUSED, int noerror)
|
||||
|
|
2
third_party/make/loadapi.c
vendored
2
third_party/make/loadapi.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/variable.h"
|
||||
|
|
2
third_party/make/main.c
vendored
2
third_party/make/main.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/os.h"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
|
|
3
third_party/make/make.mk
vendored
3
third_party/make/make.mk
vendored
|
@ -13,6 +13,9 @@ THIRD_PARTY_MAKE_BINS = \
|
|||
THIRD_PARTY_MAKE_A = \
|
||||
o/$(MODE)/third_party/make/make.a
|
||||
|
||||
THIRD_PARTY_MAKE_INCS = \
|
||||
o/$(MODE)/third_party/make/makeint.inc
|
||||
|
||||
THIRD_PARTY_MAKE_CHECKS = \
|
||||
$(THIRD_PARTY_MAKE_A).pkg
|
||||
|
||||
|
|
2
third_party/make/misc.c
vendored
2
third_party/make/misc.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/debug.h"
|
||||
|
|
2
third_party/make/output.c
vendored
2
third_party/make/output.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/os.h"
|
||||
#include "third_party/make/output.h"
|
||||
#include "libc/calls/struct/flock.h"
|
||||
|
|
2
third_party/make/posixos.c
vendored
2
third_party/make/posixos.c
vendored
|
@ -14,7 +14,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
/**/
|
||||
#include "libc/sysv/consts/sa.h"
|
||||
#include "third_party/make/debug.h"
|
||||
|
|
2
third_party/make/read.c
vendored
2
third_party/make/read.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/job.h"
|
||||
|
|
2
third_party/make/remake.c
vendored
2
third_party/make/remake.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/job.h"
|
||||
#include "third_party/make/commands.h"
|
||||
|
|
2
third_party/make/remote-stub.c
vendored
2
third_party/make/remote-stub.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/job.h"
|
||||
#include "third_party/make/commands.h"
|
||||
|
|
2
third_party/make/rule.c
vendored
2
third_party/make/rule.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
#include "third_party/make/job.h"
|
||||
|
|
2
third_party/make/signame.c
vendored
2
third_party/make/signame.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
|
||||
/* If the system provides strsignal, we don't need it. */
|
||||
|
||||
|
|
2
third_party/make/strcache.c
vendored
2
third_party/make/strcache.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/hash.h"
|
||||
|
||||
/* A string cached here will never be freed, so we don't need to worry about
|
||||
|
|
2
third_party/make/variable.c
vendored
2
third_party/make/variable.c
vendored
|
@ -15,7 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License along with
|
||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/dep.h"
|
||||
|
|
2
third_party/make/vpath.c
vendored
2
third_party/make/vpath.c
vendored
|
@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with
|
|||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* clang-format off */
|
||||
#include "third_party/make/makeint.h"
|
||||
#include "third_party/make/makeint.inc"
|
||||
#include "third_party/make/filedef.h"
|
||||
#include "third_party/make/variable.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue