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. #
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.
23 # This makes the following:
24 # libraries (normal/debug/profile/shared)
26 # The variable 'srcdir' refers to the source-distribution, and can be set with
27 # the configure script by "--srcdir=DIR".
29 # The rules are organized to produce the libraries for the configured models,
31 # turn off _all_ suffix rules; we'll generate our own
37 MODEL = @DFT_LWR_MODEL@
38 INSTALL_PREFIX = @INSTALL_PREFIX@
41 exec_prefix = @exec_prefix@
43 includedir = @includedir@
46 INSTALL_DATA = @INSTALL_DATA@
57 CPPFLAGS = @CPPFLAGS@ \
60 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
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
70 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
73 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
75 MK_SHARED_LIB = @MK_SHARED_LIB@
76 REL_VERSION = @nc_cv_rel_version@
77 ABI_VERSION = @nc_cv_abi_version@
81 LIBRARIES = @LIBS_TO_MAKE@
84 LINT_OPTS = @LINT_OPTS@
85 LINT_LIBS = -lmenu -lncurses @LIBS@
87 ################################################################################
88 all :: ../include/menu.h ../include/eti.h ../include/mf_common.h $(LIBRARIES)
90 $(INSTALL_PREFIX)$(libdir) :
91 $(srcdir)/../mkinstalldirs $@
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
97 cp $(srcdir)/menu.h $@
98 ../include/eti.h : $(srcdir)/eti.h
100 cp $(srcdir)/eti.h $@
101 ../include/mf_common.h : $(srcdir)/mf_common.h
103 cp $(srcdir)/mf_common.h $@
106 $(srcdir)/menu.priv.h \
108 $(srcdir)/mf_common.h \
109 ../include/curses.h \
119 -rm -f tags TAGS *~ ../include/menu.h ../include/eti.h \
120 ../include/mf_common.h
127 realclean :: distclean
129 ###############################################################################
130 # The remainder of this file is automatically generated during configuration
131 ###############################################################################