ncurses 6.2 - patch 20200906
[ncurses.git] / c++ / Makefile.in
index eb44da753619616d420d4b071fe5191d3086b1c7..1efb2691d3e2e513076a9e1ca225bee631facc07 100644 (file)
@@ -1,6 +1,7 @@
-# $Id: Makefile.in,v 1.110 2015/05/01 00:47:26 tom Exp $
+# $Id: Makefile.in,v 1.127 2020/09/05 19:01:14 tom Exp $
 ##############################################################################
-# Copyright (c) 1998-2013,2014 Free Software Foundation, Inc.                #
+# Copyright 2018,2020 Thomas E. Dickey                                       #
+# Copyright 1998-2015,2016 Free Software Foundation, Inc.                    #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
 # copy of this software and associated documentation files (the "Software"), #
@@ -34,7 +35,7 @@
 # turn off _all_ suffix rules; we'll generate our own
 .SUFFIXES:
 
-SHELL          = /bin/sh
+SHELL          = @SHELL@
 VPATH          = @srcdir@
 
 CF_MFLAGS      = @cf_cv_makeflags@
@@ -58,7 +59,7 @@ INCLUDEDIR    = $(DESTDIR)$(includedir)$(includesubdir)
 PACKAGE                = @PACKAGE@
 
 LIBTOOL                = @LIBTOOL_CXX@
-LIBTOOL_OPTS   = @LIBTOOL_OPTS@
+LIBTOOL_OPTS   = @LIBTOOL_OPTS@ @LIBTOOL_OPTS_CXX@
 LIBTOOL_CLEAN  = @LIB_CLEAN@
 LIBTOOL_COMPILE        = @LIB_COMPILE@
 LIBTOOL_LINK   = @LIB_LINK@
@@ -67,9 +68,10 @@ LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
 LIBTOOL_VERSION = @LIBTOOL_VERSION@
 LT_UNDEF       = @LT_UNDEF@
 
-INSTALL                = @INSTALL@
-INSTALL_LIB    = @INSTALL@ @INSTALL_LIB@
+INSTALL                = @INSTALL@ 
+INSTALL_LIB    = $(INSTALL) @INSTALL_LIB@
 INSTALL_DATA   = @INSTALL_DATA@
+INSTALL_OPT_P  = @INSTALL_OPT_P@
 
 AR             = @AR@
 ARFLAGS                = @ARFLAGS@
@@ -87,7 +89,7 @@ CXXFLAGS      = @CXXFLAGS@ @EXTRA_CXXFLAGS@
 CXXLIBS                = @CXXLIBS@
 
 INCDIR         = ../include
-CPPFLAGS       = -DHAVE_CONFIG_H @CPPFLAGS@
+CPPFLAGS       = -DHAVE_CONFIG_H -DBUILDING_NCURSES_CXX -I../c++ @CPPFLAGS@
 
 CTAGS          = @CTAGS@
 ETAGS          = @ETAGS@
@@ -96,9 +98,9 @@ CC            = ${CXX}
 CCFLAGS                = $(CPPFLAGS) $(CXXFLAGS)
 
 CFLAGS_LIBTOOL = $(CCFLAGS)
-CFLAGS_NORMAL  = $(CCFLAGS)
-CFLAGS_DEBUG   = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
-CFLAGS_PROFILE = $(CCFLAGS) -pg
+CFLAGS_NORMAL  = $(CCFLAGS) -DNCURSES_STATIC
+CFLAGS_DEBUG   = $(CCFLAGS) -DNCURSES_STATIC @CXX_G_OPT@ -DTRACE
+CFLAGS_PROFILE = $(CCFLAGS) -DNCURSES_STATIC -pg
 CFLAGS_SHARED  = $(CCFLAGS) @CC_SHARED_OPTS@
 
 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
@@ -112,7 +114,11 @@ LOCAL_LIBDIR       = @top_builddir@/lib
 
 LINK           = @LINK_PROGS@ $(LIBTOOL_LINK) @CXXLDFLAGS@
 SHLIB_DIRS     = -L../lib
-SHLIB_LIST     = $(SHLIB_DIRS) -lform@USE_LIB_SUFFIX@ -lmenu@USE_LIB_SUFFIX@ -lpanel@USE_LIB_SUFFIX@ -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
+SHLIB_LIST     = $(SHLIB_DIRS) \
+               -l@FORM_NAME@@USE_LIB_SUFFIX@ \
+               -l@MENU_NAME@@USE_LIB_SUFFIX@ \
+               -l@PANEL_NAME@@USE_LIB_SUFFIX@ \
+               -lncurses@USE_LIB_SUFFIX@ @SHLIB_LIST@
 
 LIBROOT                = ncurses++
 
@@ -172,7 +178,7 @@ mostlyclean ::
        -rm -f core tags TAGS *~ *.bak *.i *.ii *.ln *.atac trace
 
 clean :: mostlyclean
-       -sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
+       -$(SHELL) -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
        -rm -rf $(MODEL)/SunWS_cache
        -$(LIBTOOL_CLEAN) rm -f demo$x $(AUTO_SRC) $(LIBRARIES) $(OBJS_DEMO)
        -rm -rf .libs *.dSYM
@@ -184,29 +190,34 @@ realclean :: distclean
 
 ###############################################################################
 
-internal_h     = $(srcdir)/internal.h \
-                 $(INCDIR)/ncurses_cfg.h \
-                 $(INCDIR)/nc_mingw.h \
-                 $(INCDIR)/nc_string.h
-
-etip_h         = etip.h \
-                 $(INCDIR)/ncurses_dll.h
+HEADER_DEPS    = @INTERNALS_HDR@ \
+       etip.h \
+       ../include/curses.h \
+       ../include/eti.h \
+       ../include/form.h \
+       ../include/menu.h \
+       ../include/ncurses_cfg.h \
+       ../include/ncurses_def.h \
+       ../include/ncurses_dll.h \
+       ../include/panel.h \
+       ../include/unctrl.h \
+       $(INCDIR)/nc_string.h \
+       $(srcdir)/cursesp.h \
+       $(srcdir)/cursesw.h \
+       $(srcdir)/cursslk.h \
+       $(srcdir)/internal.h
 
 cursesw_h      = $(srcdir)/cursesw.h \
-                 $(etip_h) \
-                 $(INCDIR)/curses.h
+                 $(HEADER_DEPS)
 
 cursesp_h      = $(srcdir)/cursesp.h \
-                 $(cursesw_h) \
-                 $(INCDIR)/panel.h
+                 $(cursesw_h)
 
 cursesf_h      = $(srcdir)/cursesf.h \
-                 $(cursesp_h) \
-                 $(INCDIR)/form.h
+                 $(cursesp_h)
 
 cursesm_h      = $(srcdir)/cursesm.h \
-                 $(cursesp_h) \
-                 $(INCDIR)/menu.h
+                 $(cursesp_h)
 
 cursslk_h      = $(srcdir)/cursslk.h \
                  $(cursesw_h)
@@ -228,12 +239,12 @@ $(INCDIR)/panel.h :
 OBJS_DEMO = $(MODEL)/demo$o
 
 $(MODEL)/demo$o : $(srcdir)/demo.cc \
-               $(internal_h) \
+               $(HEADER_DEPS) \
                $(cursesf_h) \
                $(cursesm_h) \
                $(cursesapp_h)
        @echo 'compiling demo (obj_s)'
-       @$(LIBTOOL_COMPILE) $(CXX) $(CFLAGS_DEFAULT) -c $(srcdir)/demo.cc -o $@
+       @cd $(MODEL) && $(LIBTOOL_COMPILE) $(CXX) $(CFLAGS_DEFAULT) -c $(top_srcdir)/c++/demo.cc -o $@
 
 demo$x:        $(OBJS_DEMO) \
        $(LIBRARIES)  \
@@ -242,7 +253,7 @@ demo$x:     $(OBJS_DEMO) \
 
 etip.h:        $(srcdir)/etip.h.in $(srcdir)/edit_cfg.sh
        cp $(srcdir)/etip.h.in $@
-       sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
+       $(SHELL) $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
 
 ###############################################################################
 # The remainder of this file is automatically generated during configuration