X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2FMakefile.in;h=aba25fdaaaae2a5220c61ad9b21bc009cd095e26;hp=e08a9b9b445363171f51a07c95d07fc8e65223dc;hb=9b51794524995304d8788e42aacb36feede9364f;hpb=f259fb41d8f08b7e042eb928b839b59c8e39098c diff --git a/ncurses/Makefile.in b/ncurses/Makefile.in index e08a9b9b..aba25fda 100644 --- a/ncurses/Makefile.in +++ b/ncurses/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.180 2021/07/03 15:27:09 tom Exp $ +# $Id: Makefile.in,v 1.182 2021/08/19 23:43:40 tom Exp $ ############################################################################## # Copyright 2018-2020,2021 Thomas E. Dickey # # Copyright 1998-2017,2018 Free Software Foundation, Inc. # @@ -193,7 +193,8 @@ HEADER_DEPS = @INTERNALS_HDR@ \ $(INCDIR)/nc_win32.h \ $(INCDIR)/term_entry.h \ $(srcdir)/curses.priv.h \ - $(srcdir)/new_pair.h + $(srcdir)/new_pair.h \ + $(srcdir)/term.priv.h TEST_DEPS = ../lib/@LIB_PREFIX@ncurses@DFT_DEP_SUFFIX@ TEST_ARGS = @LDFLAGS_STATIC@ @TEST_ARGS@ @LDFLAGS_SHARED@ @@ -219,6 +220,7 @@ win32con = $(srcdir)/win32con ################################################################################ @MAKE_PHONY@.PHONY : all +@MAKE_PHONY@.PHONY : check @MAKE_PHONY@.PHONY : clean @MAKE_PHONY@.PHONY : distclean @MAKE_PHONY@.PHONY : libs @@ -327,6 +329,7 @@ realclean :: distclean ( cd ../include && $(MAKE) $(TOP_MFLAGS) ) # These rules build test-programs for the modules that have test-drivers +@MAKE_PHONY@.PHONY : test_progs test_progs : $(TEST_PROGS) ./link_test.c : $(base)/MKlib_gen.sh ../include/curses.h @@ -357,6 +360,23 @@ report_hashing$x : \ $(srcdir)/report_hashing.c $(TEST_DEPS) @ECHO_LD@ $(CC) -o $@ $(CFLAGS_DEFAULT) report_hashing.c $(TEST_LDFLAGS) +# Verify that each header-file can be compiled without including another. +@MAKE_PHONY@.PHONY : check_headers +check_headers: + @$(SHELL) -c "for header in *.h;\ + do \ + echo \"** testing \$${header}\" ; \ + echo \"#include <\$${header}>\" >headers.c; \ + echo \"int main(void) { return 0; }\" >>headers.c; \ + $(CC) -c $(CFLAGS) $(CPPFLAGS) headers.c; \ + done" + -@rm -f headers.* + +@MAKE_PHONY@.PHONY : check_objects +check_objects: test_progs + +check :: check_headers check_objects + ############################################################################### # The remainder of this file is automatically generated during configuration ###############################################################################