1998-03-01 12:21:12 +08:00
|
|
|
# $Id: Makefile.in,v 1.42 1998/02/19 16:54:54 florian Exp $
|
|
|
|
##############################################################################
|
|
|
|
# Copyright (c) 1998 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"), #
|
|
|
|
# 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. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997
|
|
|
|
#
|
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
|
|
|
|
|
|
|
|
MODEL = ../@DFT_OBJ_SUBDIR@
|
1998-03-01 12:21:12 +08:00
|
|
|
INSTALL_PREFIX = @INSTALL_PREFIX@
|
1997-05-15 12:00:00 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
AR = @AR@
|
|
|
|
AR_OPTS = @AR_OPTS@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
CXX = @CXX@
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
CXXLIBS = @CXXLIBS@
|
|
|
|
|
|
|
|
INCDIR = ../include
|
1998-03-01 12:21:12 +08:00
|
|
|
CPPFLAGS = -I../c++ -I$(INCDIR) -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CXXFLAGS)
|
|
|
|
|
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
1998-03-01 12:21:12 +08:00
|
|
|
CFLAGS_SHARED = $(CCFLAGS) # @CC_SHARED_OPTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
REL_VERSION = @cf_cv_rel_version@
|
|
|
|
ABI_VERSION = @cf_cv_abi_version@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
LINK = $(CXX)
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
LIBROOT = ncurses++
|
|
|
|
LIBNAME = ../lib/lib$(LIBROOT).a
|
|
|
|
|
|
|
|
LDFLAGS = @EXTRA_LDFLAGS@ -L../lib -L$(libdir) \
|
|
|
|
-l$(LIBROOT) \
|
|
|
|
@TEST_ARGS@ @LDFLAGS@ \
|
1997-05-15 12:00:00 +08:00
|
|
|
@LD_MODEL@ @LIBS@ @EXTRA_LIBS@ @LOCAL_LDFLAGS@ $(CXXLIBS)
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
LDFLAGS_NORMAL = $(LDFLAGS)
|
|
|
|
LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
|
|
|
|
LDFLAGS_PROFILE = $(LDFLAGS) -pg
|
|
|
|
LDFLAGS_SHARED = $(LDFLAGS) @CC_SHARED_OPTS@ # @LD_SHARED_OPTS@
|
|
|
|
|
|
|
|
LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
|
|
|
AUTO_SRC = \
|
|
|
|
etip.h
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
all: $(AUTO_SRC) $(LIBNAME) demo
|
|
|
|
|
|
|
|
sources : $(AUTO_SRC)
|
|
|
|
|
|
|
|
# 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 = \
|
|
|
|
$(MODEL)/cursesf.o \
|
1997-05-15 12:00:00 +08:00
|
|
|
$(MODEL)/cursesm.o \
|
|
|
|
$(MODEL)/cursesw.o \
|
|
|
|
$(MODEL)/cursesp.o \
|
1998-03-01 12:21:12 +08:00
|
|
|
$(MODEL)/cursslk.o \
|
|
|
|
$(MODEL)/cursesapp.o \
|
|
|
|
$(MODEL)/cursesmain.o
|
|
|
|
|
|
|
|
$(LIBNAME) : $(LIB_OBJS)
|
|
|
|
$(AR) $(AR_OPTS) $@ $?
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
|
|
|
OBJS_DEMO = $(MODEL)/demo.o
|
|
|
|
|
|
|
|
$(MODEL)/demo.o : $(srcdir)/demo.cc \
|
|
|
|
$(cursesf_h) $(cursesm_h) $(cursesapp_h)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
demo: $(OBJS_DEMO) \
|
1998-03-01 12:21:12 +08:00
|
|
|
$(LIBNAME) \
|
|
|
|
@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 $@
|
|
|
|
|
|
|
|
$(INSTALL_PREFIX)$(libdir) :
|
|
|
|
$(srcdir)/../mkinstalldirs $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
install \
|
|
|
|
install.libs:: $(LIBNAME) $(INSTALL_PREFIX)$(libdir)
|
|
|
|
$(INSTALL) $(LIBNAME) $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
uninstall \
|
|
|
|
uninstall.libs::
|
|
|
|
-rm -f $(INSTALL_PREFIX)$(libdir)/$(LIBNAME)
|
|
|
|
|
|
|
|
mostlyclean ::
|
|
|
|
-rm -f core tags TAGS *~ *.ln *.atac trace
|
|
|
|
|
|
|
|
clean :: mostlyclean
|
|
|
|
-rm -f demo $(AUTO_SRC) $(LIBNAME) $(LIB_OBJS) $(OBJS_DEMO)
|
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
|
|
|
|
###############################################################################
|