Change "_check." to ".check.", to avoid a problem

Estimated hours taken: 0.5
Branches: main

Mmake.common.in:
runtime/Mmakefile:
trace/Mmakefile:
	Change "_check." to ".check.", to avoid a problem
	where the rule for %_check.c: %.h was being accidentally
	triggered for compiler/recompilation_check.c.
This commit is contained in:
Fergus Henderson
2001-06-29 15:55:08 +00:00
parent 47f305fe0b
commit 39d1c17f93
3 changed files with 12 additions and 12 deletions

View File

@@ -256,12 +256,12 @@ BOEHMGC_MAKEFILE=@BOEHMGC_MAKEFILE@
# This rule helps to check that header files is self-contained, i.e. that each
# header file foo.h includes any other header files that define types
# used by foo.h. It creates a foo_check.c file that contains only a single
# `#include' statement that includes foo.h; compiling foo_check.c will fail
# used by foo.h. It creates a foo.check.c file that contains only a single
# `#include' statement that includes foo.h; compiling foo.check.c will fail
# if foo.h is not self-contained.
%_check.c : %.h
echo "#include \"$*.h\"" > $*_check.c
%.check.c : %.h
echo "#include \"$*.h\"" > $*.check.c
# This rule checks whether a header file defines any macros it shouldn't.
# It generates the list of macros defined in the header file, and filters this
@@ -270,10 +270,10 @@ BOEHMGC_MAKEFILE=@BOEHMGC_MAKEFILE@
# the HEADER_CLEAN_FILTER make variable to contain this command.
AWK = awk
%_check.macros: %.h %_check.c
%.check.macros: %.h %.check.c
-$(MGNUC) $(ALL_GRADEFLAGS) $(ALL_MGNUCFLAGS) \
-DMERCURY_BOOTSTRAP_H \
-E $*_check.c \
-E $*.check.c \
-nostdinc -dN \
2> /dev/null | $(AWK) '/^#define/ { print $$2; }' | \
$(HEADER_CLEAN_FILTER) | sort -u > $@

View File

@@ -191,9 +191,9 @@ THREADLIBS = \
esac \
`
HDR_CHECK_CS = $(HDRS:.h=_check.c)
HDR_CHECK_OBJS = $(HDRS:.h=_check.$O)
HDR_CHECK_MACROS = $(HDRS:.h=_check.macros)
HDR_CHECK_CS = $(HDRS:.h=.check.c)
HDR_CHECK_OBJS = $(HDRS:.h=.check.$O)
HDR_CHECK_MACROS = $(HDRS:.h=.check.macros)
OBJ_CHECKS = $(OBJS:%=%.obj_check)
#-----------------------------------------------------------------------------#

View File

@@ -76,9 +76,9 @@ RUNTIME_HDRS = \
OBJS = $(CFILES:.c=.$O)
PIC_OBJS = $(CFILES:.c=.$(EXT_FOR_PIC_OBJECTS))
HDR_CHECK_CS = $(HDRS:.h=_check.c)
HDR_CHECK_OBJS = $(HDRS:.h=_check.$O)
HDR_CHECK_MACROS = $(HDRS:.h=_check.macros)
HDR_CHECK_CS = $(HDRS:.h=.check.c)
HDR_CHECK_OBJS = $(HDRS:.h=.check.$O)
HDR_CHECK_MACROS = $(HDRS:.h=.check.macros)
OBJ_CHECKS = $(OBJS:%=%.obj_check)
LDFLAGS = -L$(BROWSER_DIR) -L$(LIBRARY_DIR) \