2004-03-24 Roland McGrath <roland@redhat.com>
* Makefile ($(objpfx)c++-types-check.out): Reduce duplication in defining this target. Also elide -Wstrict-prototypes from CFLAGS.
This commit is contained in:
parent
68dc4dcbdd
commit
ad243052be
14
Makefile
14
Makefile
@ -225,20 +225,18 @@ tests-clean:
|
|||||||
|
|
||||||
tests: $(objpfx)c++-types-check.out
|
tests: $(objpfx)c++-types-check.out
|
||||||
ifneq ($(CXX),no)
|
ifneq ($(CXX),no)
|
||||||
ifneq (,$(wildcard scripts/data/c++-types-$(config-machine)-$(config-os).data))
|
check-data := $(firstword $(wildcard \
|
||||||
$(objpfx)c++-types-check.out: scripts/data/c++-types-$(config-machine)-$(config-os).data
|
$(foreach M,$(config-machine) $(base-machine),\
|
||||||
scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
|
scripts/data/c++-types-$M-$(config-os).data)))
|
||||||
else
|
ifneq (,$(check-data))
|
||||||
ifneq (,$(wildcard scripts/data/c++-types-$(base-machine)-$(config-os).data))
|
$(objpfx)c++-types-check.out: $(check-data)
|
||||||
$(objpfx)c++-types-check.out: scripts/data/c++-types-$(base-machine)-$(config-os).data
|
scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99 -Wstrict-prototypes,$(CFLAGS)) $(CPPFLAGS) > $@
|
||||||
scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
|
|
||||||
else
|
else
|
||||||
$(objpfx)c++-types-check.out:
|
$(objpfx)c++-types-check.out:
|
||||||
@echo 'WARNING C++ tests not run; create a c++-types-XXX file'
|
@echo 'WARNING C++ tests not run; create a c++-types-XXX file'
|
||||||
@echo "not run" > $@
|
@echo "not run" > $@
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# The realclean target is just like distclean for the parent, but we want
|
# The realclean target is just like distclean for the parent, but we want
|
||||||
# the subdirs to know the difference in case they care.
|
# the subdirs to know the difference in case they care.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user