]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/Makefile.in
ncurses 6.5 - patch 20240504
[ncurses.git] / test / Makefile.in
index b511d71a213e58dff1e173670d87f030002c1a4a..1d546285a98b465bc0091d76a341064e574a0169 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.126 2021/03/13 20:55:43 tom Exp $
+# $Id: Makefile.in,v 1.130 2021/12/18 23:00:28 tom Exp $
 ##############################################################################
 # Copyright 2020,2021 Thomas E. Dickey                                       #
 # Copyright 1998-2017,2018 Free Software Foundation, Inc.                    #
@@ -44,6 +44,8 @@ destdir               =
 x              = @EXEEXT@
 o              = .@OBJEXT@
 
+PACKAGE                = @PACKAGE@
+
 MODEL          = ../@DFT_OBJ_SUBDIR@
 top_srcdir     = @top_srcdir@
 srcdir         = @srcdir@
@@ -52,18 +54,19 @@ exec_prefix = @exec_prefix@
 datarootdir    = @datarootdir@
 
 bindir         = @bindir@
+libexecdir     = @libexecdir@
 libdir         = @libdir@
-includedir     = @includedir@
-includesubdir  = @includesubdir@
 datarootdir    = @datarootdir@
 datadir                = @datadir@
 
+real_bindir    = $(libexecdir)/$(PACKAGE)
+
 BINDIR         = $(DESTDIR)$(bindir)
+LIBEXECDIR     = $(DESTDIR)$(libexecdir)
 LIBDIR         = $(DESTDIR)$(libdir)
-INCLUDEDIR     = $(DESTDIR)$(includedir)$(includesubdir)
 DATADIR                = $(DESTDIR)$(datadir)
 
-PACKAGE                = @PACKAGE@
+REAL_BINDIR    = $(LIBEXECDIR)/$(PACKAGE)
 
 LIBTOOL                = @LIBTOOL@
 LIBTOOL_OPTS   = @LIBTOOL_OPTS@
@@ -153,4 +156,22 @@ HEADER_DEPS        = \
        $(incdir)/unctrl.h \
        $(INCDIR)/nc_alloc.h
 
+################################################################################
+
+@MAKE_PHONY@.PHONY :   all
+@MAKE_PHONY@.PHONY :   check
+
+all::
+
+# Verify that each header-file can be compiled without including another.
+check::
+       @$(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.*
+
 # The rest is generated from the "programs" and "modules" files...