]> ncurses.scripts.mit.edu Git - ncurses.git/blob - menu/Makefile.in
ncurses 4.1
[ncurses.git] / menu / Makefile.in
1 # $Id: Makefile.in,v 1.16 1997/02/15 17:10:04 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 # Makefile for menu source code.
22 #
23 # This makes the following:
24 #       libraries (normal/debug/profile/shared)
25 #
26 # The variable 'srcdir' refers to the source-distribution, and can be set with
27 # the configure script by "--srcdir=DIR".
28 #
29 # The rules are organized to produce the libraries for the configured models,
30
31 # turn off _all_ suffix rules; we'll generate our own
32 .SUFFIXES:
33
34 SHELL           = /bin/sh
35 THIS            = Makefile
36
37 MODEL           = @DFT_LWR_MODEL@
38 INSTALL_PREFIX  = @INSTALL_PREFIX@
39 srcdir          = @srcdir@
40 prefix          = @prefix@
41 exec_prefix     = @exec_prefix@
42 libdir          = @libdir@
43 includedir      = @includedir@
44
45 INSTALL         = @INSTALL@
46 INSTALL_DATA    = @INSTALL_DATA@
47
48 AR              = @AR@
49 AR_OPTS         = @AR_OPTS@
50 AWK             = @AWK@
51 LD              = @LD@
52 LN_S            = @LN_S@
53
54 CC              = @CC@
55 CFLAGS          = @CFLAGS@
56
57 CPPFLAGS        = @CPPFLAGS@ \
58                   -DHAVE_CONFIG_H 
59
60 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
61
62 CFLAGS_NORMAL   = $(CCFLAGS)
63 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
64 CFLAGS_PROFILE  = $(CCFLAGS) -pg
65 # Juergen Pfeifer reports:
66 # "Unfortunately -O crashes my linker on Linux and -O2 works"
67 # If your linker coughs and dies, try uncommenting the -O2
68 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@ # -O2
69
70 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
71
72 LINK            = $(CC)
73 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
74
75 MK_SHARED_LIB   = @MK_SHARED_LIB@
76 REL_VERSION     = @nc_cv_rel_version@
77 ABI_VERSION     = @nc_cv_abi_version@
78
79 RANLIB          = @RANLIB@
80
81 LIBRARIES       = @LIBS_TO_MAKE@
82
83 LINT            = @LINT@
84 LINT_OPTS       = @LINT_OPTS@
85 LINT_LIBS       = -lmenu -lncurses @LIBS@
86
87 ################################################################################
88 all ::  ../include/menu.h ../include/eti.h ../include/mf_common.h $(LIBRARIES)
89
90 $(INSTALL_PREFIX)$(libdir) :
91         $(srcdir)/../mkinstalldirs $@
92
93 # make copies to simplify include-paths while still keeping menu's include
94 # file in this directory.
95 ../include/menu.h : $(srcdir)/menu.h
96         -rm -f $@
97         cp $(srcdir)/menu.h $@
98 ../include/eti.h : $(srcdir)/eti.h
99         -rm -f $@
100         cp $(srcdir)/eti.h $@
101 ../include/mf_common.h : $(srcdir)/mf_common.h
102         -rm -f $@
103         cp $(srcdir)/mf_common.h $@
104
105 MENU_PRIV_H = \
106         $(srcdir)/menu.priv.h \
107         $(srcdir)/menu.h \
108         $(srcdir)/mf_common.h \
109         ../include/curses.h \
110         $(srcdir)/eti.h
111
112 tags:
113         ctags *.[ch]
114
115 TAGS:
116         etags *.[ch]
117
118 clean ::
119         -rm -f tags TAGS *~ ../include/menu.h ../include/eti.h \
120                ../include/mf_common.h
121
122 distclean :: clean
123         -rm -f Makefile
124
125 mostlyclean :: clean
126
127 realclean :: distclean
128
129 ###############################################################################
130 # The remainder of this file is automatically generated during configuration
131 ###############################################################################