]> ncurses.scripts.mit.edu Git - ncurses.git/blob - c++/Makefile.in
ncurses 4.1
[ncurses.git] / c++ / Makefile.in
1 # $Id: Makefile.in,v 1.20 1997/05/04 21:15:38 tom Exp $
2 ################################################################################
3 # Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                        #
4 # All Rights Reserved.                                                         #
5 #                                                                              #
6 # Permission to use, copy, modify, and distribute this software and its        #
7 # documentation for any purpose and without fee is hereby granted, provided    #
8 # that the above copyright notice appear in all copies and that both that      #
9 # copyright notice and this permission notice appear in supporting             #
10 # documentation, and that the name of the above listed copyright holder(s) not #
11 # be used in advertising or publicity pertaining to distribution of the        #
12 # software without specific, written prior permission. THE ABOVE LISTED        #
13 # COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,    #
14 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT #
15 # SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY SPECIAL,        #
16 # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM   #
17 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE   #
18 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR    #
19 # PERFORMANCE OF THIS SOFTWARE.                                                #
20 ################################################################################
21 #  Simple makefile for c++ window class demo
22
23 # turn off _all_ suffix rules; we'll generate our own
24 .SUFFIXES:
25
26 SHELL           = /bin/sh
27
28 MODEL           = ../@DFT_OBJ_SUBDIR@
29 srcdir          = @srcdir@
30 prefix          = @prefix@
31 exec_prefix     = @exec_prefix@
32 libdir          = @libdir@
33 includedir      = @includedir@
34
35 CXX             = @CXX@
36 CXXFLAGS        = @CXXFLAGS@
37 CXXLIBS         = @CXXLIBS@
38
39 INCDIR          = ../include
40 CPPFLAGS        = @CPPFLAGS@ -I$(INCDIR) -I$(srcdir)/../c++ -DHAVE_CONFIG_H
41
42 CCFLAGS         = $(CPPFLAGS) $(CXXFLAGS)
43
44 CFLAGS_NORMAL   = $(CCFLAGS)
45 CFLAGS_DEBUG    = $(CCFLAGS) @CXX_G_OPT@ -DTRACE
46 CFLAGS_PROFILE  = $(CCFLAGS) -pg
47 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
48
49 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
50
51 LINK            = $(CXX)
52 LDFLAGS         = -L../lib \
53         -lmenu@DFT_ARG_SUFFIX@ \
54         -lpanel@DFT_ARG_SUFFIX@ \
55         -lncurses@DFT_ARG_SUFFIX@ \
56         @LDFLAGS@ \
57         @LD_MODEL@ @LIBS@ @EXTRA_LIBS@ @LOCAL_LDFLAGS@ $(CXXLIBS)
58
59 all: demo
60
61 OBJS_DEMO = \
62         $(MODEL)/cursesm.o \
63         $(MODEL)/cursesw.o \
64         $(MODEL)/cursesp.o \
65         $(MODEL)/demo.o
66
67 demo:   $(OBJS_DEMO) \
68         ../lib/libmenu@DFT_DEP_SUFFIX@ \
69         ../lib/libpanel@DFT_DEP_SUFFIX@ \
70         ../lib/libncurses@DFT_DEP_SUFFIX@
71         @ECHO_LINK@ $(LINK) -o $@ $(OBJS_DEMO) $(LDFLAGS)
72
73 install:
74 install.libs:
75
76 clean ::
77         -rm -f core demo $(OBJS_DEMO)
78
79 distclean :: clean
80         -rm -f Makefile
81
82 mostlyclean :: clean
83
84 realclean :: distclean
85
86 ###############################################################################
87 # The remainder of this file is automatically generated during configuration
88 ###############################################################################