1 # $Id: Makefile.in,v 1.17 1997/05/05 22:39:30 tom Exp $
2 ################################################################################
3 # Copyright 1996,1997 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 form 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 CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
67 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
70 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
72 MK_SHARED_LIB = @MK_SHARED_LIB@
73 REL_VERSION = @nc_cv_rel_version@
74 ABI_VERSION = @nc_cv_abi_version@
78 LIBRARIES = @LIBS_TO_MAKE@
81 LINT_OPTS = @LINT_OPTS@
82 LINT_LIBS = -lform -lncurses @LIBS@
84 ################################################################################
86 install :: ../include/form.h $(LIBRARIES)
88 $(INSTALL_PREFIX)$(libdir) :
89 $(srcdir)/../mkinstalldirs $@
91 # make copies to simplify include-paths while still keeping form's include
92 # file in this directory.
93 ../include/form.h : $(srcdir)/form.h
95 cp $(srcdir)/form.h $@
98 $(srcdir)/form.priv.h \
100 ../include/mf_common.h \
101 ../include/curses.h \
111 -rm -f tags TAGS *~ ../include/form.h
118 realclean :: distclean
120 ../include/mf_common.h \
122 cd ../menu && $(MAKE) $@
124 ###############################################################################
125 # The remainder of this file is automatically generated during configuration
126 ###############################################################################