ncursesw-morphos/c++/Makefile.in

236 lines
7.0 KiB
Makefile
Raw Normal View History

# $Id: Makefile.in,v 1.79 2007/03/03 20:51:25 tom Exp $
1998-03-01 12:21:12 +08:00
##############################################################################
2006-12-18 12:32:42 +08:00
# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. #
1998-03-01 12:21:12 +08:00
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
# copy of this software and associated documentation files (the "Software"), #
# to deal in the Software without restriction, including without limitation #
# the rights to use, copy, modify, merge, publish, distribute, distribute #
# with modifications, sublicense, and/or sell copies of the Software, and to #
# permit persons to whom the Software is furnished to do so, subject to the #
# following conditions: #
# #
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
# DEALINGS IN THE SOFTWARE. #
# #
# Except as contained in this notice, the name(s) of the above copyright #
# holders shall not be used in advertising or otherwise to promote the sale, #
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
#
2004-02-09 10:15:26 +08:00
# Author: Thomas E. Dickey
1998-03-01 12:21:12 +08:00
#
1997-05-15 12:00:00 +08:00
# Simple makefile for c++ window class demo
# turn off _all_ suffix rules; we'll generate our own
.SUFFIXES:
SHELL = /bin/sh
1999-10-24 12:32:42 +08:00
CF_MFLAGS = @cf_cv_makeflags@
@SET_MAKE@
2004-02-09 10:15:26 +08:00
x = @EXEEXT@
o = .@OBJEXT@
1999-10-24 12:32:42 +08:00
1997-05-15 12:00:00 +08:00
MODEL = ../@DFT_OBJ_SUBDIR@
2000-10-21 12:42:11 +08:00
DESTDIR = @DESTDIR@
1997-05-15 12:00:00 +08:00
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
includedir = @includedir@
2004-02-09 10:15:26 +08:00
LIBTOOL = @LIBTOOL_CXX@
LIBTOOL_CLEAN = @LIB_CLEAN@
LIBTOOL_COMPILE = @LIB_COMPILE@
LIBTOOL_LINK = @LIB_LINK@
LIBTOOL_INSTALL = @LIB_INSTALL@
LIBTOOL_UNINSTALL = @LIB_UNINSTALL@
2000-10-21 12:42:11 +08:00
1998-03-01 12:21:12 +08:00
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
AR = @AR@
AR_OPTS = @AR_OPTS@
2002-10-13 11:35:53 +08:00
CXX_AR = @CXX_AR@
CXX_AR_OPTS = @CXX_AR_OPTS@
2004-02-09 10:15:26 +08:00
RANLIB = @LIB_PREP@
1998-03-01 12:21:12 +08:00
1997-05-15 12:00:00 +08:00
CXX = @CXX@
2005-10-10 02:41:57 +08:00
CPP = @CXXCPP@
CXXFLAGS = @CXXFLAGS@ @EXTRA_CXXFLAGS@
1997-05-15 12:00:00 +08:00
CXXLIBS = @CXXLIBS@
INCDIR = ../include
1999-10-24 12:32:42 +08:00
CPPFLAGS = -I../c++ -I$(INCDIR) -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
1997-05-15 12:00:00 +08:00
CCFLAGS = $(CPPFLAGS) $(CXXFLAGS)
2000-10-21 12:42:11 +08:00
CFLAGS_LIBTOOL = $(CCFLAGS)
1997-05-15 12:00:00 +08:00
CFLAGS_NORMAL = $(CCFLAGS)
CFLAGS_DEBUG = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
CFLAGS_PROFILE = $(CCFLAGS) -pg
1999-10-24 12:32:42 +08:00
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
1997-05-15 12:00:00 +08:00
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
2000-10-21 12:42:11 +08:00
NCURSES_MAJOR = @NCURSES_MAJOR@
NCURSES_MINOR = @NCURSES_MINOR@
1998-03-01 12:21:12 +08:00
REL_VERSION = @cf_cv_rel_version@
ABI_VERSION = @cf_cv_abi_version@
2006-12-18 12:32:42 +08:00
LOCAL_LIBDIR = @top_builddir@/lib
2004-02-09 10:15:26 +08:00
LINK = @LINK_PROGS@ $(LIBTOOL_LINK) $(CXX) @CXXLDFLAGS@
SHLIB_DIRS = -L../lib
SHLIB_LIST = $(SHLIB_DIRS) -lncurses@LIB_SUFFIX@ # @SHLIB_LIST@
2000-10-21 12:42:11 +08:00
LIBROOT = ncurses++
LIBNAME_LIBTOOL = @LIB_PREFIX@$(LIBROOT)@LIB_SUFFIX@.la
LIBNAME_NORMAL = @LIB_PREFIX@$(LIBROOT)@LIB_SUFFIX@.a
LIBNAME = @LIB_PREFIX@$(LIBROOT)@CXX_LIB_SUFFIX@
1998-03-01 12:21:12 +08:00
2002-10-13 11:35:53 +08:00
LINK_FLAGS = @EXTRA_LDFLAGS@ -L../lib -l$(LIBROOT)@LIB_SUFFIX@
1998-03-01 12:21:12 +08:00
2002-10-13 11:35:53 +08:00
LINK_LIBTOOL = @EXTRA_LDFLAGS@ -L../lib ../lib/$(LIBNAME)
2000-10-21 12:42:11 +08:00
LINK_NORMAL = $(LINK_FLAGS)
LINK_DEBUG = $(LINK_FLAGS)
LINK_PROFILE = $(LINK_FLAGS)
LINK_SHARED = $(LINK_FLAGS)
LDFLAGS = @TEST_ARGS@ @LDFLAGS@ \
2005-10-10 02:41:57 +08:00
@LD_MODEL@ @LIBS@ @LOCAL_LDFLAGS@ $(CXXLIBS)
1997-05-15 12:00:00 +08:00
2004-02-09 10:15:26 +08:00
LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
1998-03-01 12:21:12 +08:00
2000-10-21 12:42:11 +08:00
LDFLAGS_DEFAULT = $(LINK_@DFT_UPR_MODEL@) $(LDFLAGS_@DFT_UPR_MODEL@)
1998-03-01 12:21:12 +08:00
AUTO_SRC = \
etip.h
1997-05-15 12:00:00 +08:00
2000-07-09 10:46:08 +08:00
all \
libs :: $(AUTO_SRC) ../lib/$(LIBNAME)
all :: demo$x
1998-03-01 12:21:12 +08:00
sources : $(AUTO_SRC)
2002-10-13 11:35:53 +08:00
depend :
2005-10-10 02:41:57 +08:00
tags:
ctags *.[h] *.cc
1998-03-01 12:21:12 +08:00
# Build a conventional library for installing, since a shared library would
# pull in all of the ncurses libraries (panel, menu, form, ncurses) as direct
# dependencies.
LIB_OBJS = \
2004-02-09 10:15:26 +08:00
$(MODEL)/cursesf$o \
$(MODEL)/cursesm$o \
$(MODEL)/cursesw$o \
$(MODEL)/cursespad$o \
$(MODEL)/cursesp$o \
$(MODEL)/cursslk$o \
$(MODEL)/cursesapp$o \
$(MODEL)/cursesmain$o
1998-03-01 12:21:12 +08:00
2000-10-21 12:42:11 +08:00
../lib/$(LIBNAME_NORMAL) : $(LIB_OBJS)
2002-10-13 11:35:53 +08:00
$(CXX_AR) $(CXX_AR_OPTS) $@ $?
1998-03-01 12:21:12 +08:00
$(RANLIB) $@
2000-10-21 12:42:11 +08:00
../lib/$(LIBNAME_LIBTOOL) : $(LIB_OBJS)
2004-02-09 10:15:26 +08:00
cd ../lib && $(LIBTOOL_LINK) $(CXX) $(CXXFLAGS) \
-o $(LIBNAME) $(LIB_OBJS:$o=.lo) \
2000-10-21 12:42:11 +08:00
-rpath $(INSTALL_PREFIX)$(libdir) \
2004-02-09 10:15:26 +08:00
-version-info $(NCURSES_MAJOR):$(NCURSES_MINOR) $(SHLIB_LIST)
2000-10-21 12:42:11 +08:00
2004-02-09 10:15:26 +08:00
OBJS_DEMO = $(MODEL)/demo$o
1998-03-01 12:21:12 +08:00
2004-02-09 10:15:26 +08:00
$(MODEL)/demo$o : $(srcdir)/demo.cc \
1998-03-01 12:21:12 +08:00
$(cursesf_h) $(cursesm_h) $(cursesapp_h)
1997-05-15 12:00:00 +08:00
1999-10-24 12:32:42 +08:00
demo$x: $(OBJS_DEMO) \
../lib/$(LIBNAME) \
1998-03-01 12:21:12 +08:00
@TEST_DEPS@
@ECHO_LINK@ $(LINK) -o $@ $(OBJS_DEMO) $(LDFLAGS_DEFAULT)
etip.h: $(srcdir)/etip.h.in $(srcdir)/edit_cfg.sh
cp $(srcdir)/etip.h.in $@
sh $(srcdir)/edit_cfg.sh ../include/ncurses_cfg.h $@
2000-10-21 12:42:11 +08:00
$(DESTDIR)$(libdir) :
2002-10-13 11:35:53 +08:00
sh $(srcdir)/../mkinstalldirs $@
1997-05-15 12:00:00 +08:00
1998-03-01 12:21:12 +08:00
install \
2000-10-21 12:42:11 +08:00
install.libs:: ../lib/$(LIBNAME) $(DESTDIR)$(libdir)
2004-02-09 10:15:26 +08:00
$(LIBTOOL_INSTALL) $(INSTALL) ../lib/$(LIBNAME) $(DESTDIR)$(libdir)/$(LIBNAME)
1997-05-15 12:00:00 +08:00
1998-03-01 12:21:12 +08:00
uninstall \
uninstall.libs::
2004-02-09 10:15:26 +08:00
-$(LIBTOOL_UNINSTALL) rm -f $(DESTDIR)$(libdir)/$(LIBNAME)
1998-03-01 12:21:12 +08:00
mostlyclean ::
2002-10-13 11:35:53 +08:00
-rm -f core tags TAGS *~ *.bak *.i *.ii *.ln *.atac trace
1998-03-01 12:21:12 +08:00
clean :: mostlyclean
2004-02-09 10:15:26 +08:00
-sh -c "if test -n '$x' ; then $(MAKE) clean x=''; fi"
2002-10-13 11:35:53 +08:00
-rm -rf $(MODEL)/SunWS_cache
2005-10-10 02:41:57 +08:00
-$(LIBTOOL_CLEAN) rm -f demo$x $(AUTO_SRC) ../lib/$(LIBNAME) $(LIB_OBJS) $(OBJS_DEMO)
2000-10-21 12:42:11 +08:00
-rm -rf .libs
1997-05-15 12:00:00 +08:00
distclean :: clean
-rm -f Makefile
realclean :: distclean
1998-03-01 12:21:12 +08:00
###############################################################################
cursesw_h = $(srcdir)/cursesw.h \
etip.h \
$(INCDIR)/curses.h
cursesp_h = $(srcdir)/cursesp.h \
$(cursesw_h) \
$(INCDIR)/panel.h
cursesf_h = $(srcdir)/cursesf.h \
$(cursesp_h) \
$(INCDIR)/form.h
cursesm_h = $(srcdir)/cursesm.h \
$(cursesp_h) \
$(INCDIR)/menu.h
cursslk_h = $(srcdir)/cursslk.h \
$(cursesw_h)
cursesapp_h = $(srcdir)/cursesapp.h \
$(cursslk_h)
$(INCDIR)/form.h :
cd ../form && $(MAKE) $@
$(INCDIR)/menu.h :
cd ../menu && $(MAKE) $@
$(INCDIR)/panel.h :
cd ../panel && $(MAKE) $@
1997-05-15 12:00:00 +08:00
###############################################################################
# The remainder of this file is automatically generated during configuration
###############################################################################