blob: 5ee78df0a3515162651a4a21998639f8606b8cd3 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301##############################################################################
2# Copyright (c) 1998-2004,2005 Free Software Foundation, Inc. #
3# #
4# Permission is hereby granted, free of charge, to any person obtaining a #
5# copy of this software and associated documentation files (the "Software"), #
6# to deal in the Software without restriction, including without limitation #
7# the rights to use, copy, modify, merge, publish, distribute, distribute #
8# with modifications, sublicense, and/or sell copies of the Software, and to #
9# permit persons to whom the Software is furnished to do so, subject to the #
10# following conditions: #
11# #
12# The above copyright notice and this permission notice shall be included in #
13# all copies or substantial portions of the Software. #
14# #
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
18# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
21# DEALINGS IN THE SOFTWARE. #
22# #
23# Except as contained in this notice, the name(s) of the above copyright #
24# holders shall not be used in advertising or otherwise to promote the sale, #
25# use or other dealings in this Software without prior written #
26# authorization. #
27##############################################################################
28#
29# Author: Juergen Pfeifer, 1996
30#
31# $Id: Makefile.in,v 1.34 2006/12/17 16:45:02 tom Exp $
32#
33.SUFFIXES:
34
35SHELL = /bin/sh
36THIS = Makefile
37
38x = @PROG_EXT@
39
40srcdir = @srcdir@
41prefix = @prefix@
42exec_prefix = @exec_prefix@
43libdir = @libdir@
44includedir = @includedir@
45
46INSTALL = @INSTALL@
47INSTALL_DATA = @INSTALL_DATA@
48
49AWK = @AWK@
50LN_S = @LN_S@
51
52CC = @CC@
53CFLAGS = @CFLAGS@
54
55CPPFLAGS = @ACPPFLAGS@ \
56 -DHAVE_CONFIG_H -I$(srcdir)
57
58CCFLAGS = $(CPPFLAGS) $(CFLAGS)
59
60CFLAGS_NORMAL = $(CCFLAGS)
61CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
62CFLAGS_PROFILE = $(CCFLAGS) -pg
63CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
64
65CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
66
67REL_VERSION = @cf_cv_rel_version@
68ABI_VERSION = @cf_cv_abi_version@
69LOCAL_LIBDIR = @top_builddir@/lib
70
71LINK = $(CC)
72LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
73
74RANLIB = @RANLIB@
75################################################################################
76ada_srcdir=../src
77
78LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
79
80ADA = @cf_ada_compiler@
81ADAFLAGS = @ADAFLAGS@ -I$(srcdir)
82
83ADAMAKE = @cf_ada_make@
84ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
85
86ALIB = @cf_ada_package@
87ABASE = $(ALIB)-curses
88
89CARGS =-cargs $(ADAFLAGS)
90LARGS =-largs @TEST_ARG2@ $(LD_FLAGS) -lAdaCurses
91
92PROGS = tour rain ncurses
93
94TOUR_OBJS = tour.o sample.o sample-curses_demo.o sample-explanation.o \
95 sample-form_demo.o sample-function_key_setting.o \
96 sample-header_handler.o sample-helpers.o \
97 sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o \
98 sample-menu_demo-aux.o sample-text_io_demo.o \
99 sample-curses_demo-attributes.o sample-curses_demo-mouse.o \
100 sample-form_demo-aux.o sample-my_field_type.o
101
102RAIN_OBJS = rain.o status.o
103
104NCURSES_OBJS = ncurses.o ncurses2-getch_test.o \
105 ncurses2-acs_and_scroll.o ncurses2-m.o \
106 ncurses2-acs_display.o ncurses2-menu_test.o \
107 ncurses2-attr_test.o ncurses2-overlap_test.o \
108 ncurses2-color_edit.o ncurses2-slk_test.o \
109 ncurses2-color_test.o ncurses2-test_sgr_attributes.o \
110 ncurses2-demo_forms.o ncurses2-trace_set.o \
111 ncurses2-demo_pad.o ncurses2-util.o \
112 ncurses2-demo_panels.o ncurses2.o \
113 ncurses2-flushinp_test.o
114
115
116all :: tour$x rain$x ncurses$x
117 @echo made $@
118
119sources :
120 @echo made $@
121
122libs \
123install \
124install.libs ::
125 @echo made $@
126
127uninstall \
128uninstall.libs ::
129 @echo made $@
130
131ncurses$x :
132 $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
133
134tour$x : explain.msg
135 $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
136
137explain.msg: $(srcdir)/explain.txt
138 cp $(srcdir)/explain.txt $@
139
140rain$x :
141 $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
142
143mostlyclean:
144 @echo made $@
145
146clean :: mostlyclean
147 rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
148 explain.msg trace screendump
149
150distclean :: clean
151 rm -f Makefile
152
153realclean :: distclean
154 @echo made $@