]> ncurses.scripts.mit.edu Git - ncurses.git/blob - form/Makefile.in
054b7b5811c2bc94add3512b92a4ed48f3140da4
[ncurses.git] / form / Makefile.in
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.                                                         #
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 form 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 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
66
67 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
68
69 LINK            = $(CC)
70 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
71
72 MK_SHARED_LIB   = @MK_SHARED_LIB@
73 REL_VERSION     = @nc_cv_rel_version@
74 ABI_VERSION     = @nc_cv_abi_version@
75
76 RANLIB          = @RANLIB@
77
78 LIBRARIES       = @LIBS_TO_MAKE@
79
80 LINT            = @LINT@
81 LINT_OPTS       = @LINT_OPTS@
82 LINT_LIBS       = -lform -lncurses @LIBS@
83
84 ################################################################################
85 all \
86 install ::      ../include/form.h $(LIBRARIES)
87
88 $(INSTALL_PREFIX)$(libdir) :
89         $(srcdir)/../mkinstalldirs $@
90
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
94         -rm -f $@
95         cp $(srcdir)/form.h $@
96
97 FORM_PRIV_H = \
98         $(srcdir)/form.priv.h \
99         $(srcdir)/form.h \
100         ../include/mf_common.h \
101         ../include/curses.h \
102         ../include/eti.h
103
104 tags:
105         ctags *.[ch]
106
107 TAGS:
108         etags *.[ch]
109
110 clean ::
111         -rm -f tags TAGS *~ ../include/form.h
112
113 distclean :: clean
114         -rm -f Makefile
115
116 mostlyclean :: clean
117
118 realclean :: distclean
119
120 ../include/mf_common.h \
121 ../include/eti.h :
122         cd ../menu && $(MAKE) $@
123
124 ###############################################################################
125 # The remainder of this file is automatically generated during configuration
126 ###############################################################################