blob: 5b4002733608850f2847858cc5b3f9bf0f19b0e0 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301##############################################################################
Steve Kondikae271bc2015-11-15 02:50:53 +01002# Copyright (c) 1998-2012,2015 Free Software Foundation, Inc. #
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05303# #
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#
Steve Kondikae271bc2015-11-15 02:50:53 +010031# $Id: Makefile.in,v 1.49 2015/08/05 23:15:41 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053032#
33.SUFFIXES:
34
Steve Kondikae271bc2015-11-15 02:50:53 +010035SHELL = @SHELL@
36VPATH = @srcdir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053037THIS = Makefile
38
Steve Kondikae271bc2015-11-15 02:50:53 +010039x = @EXEEXT@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053040
41srcdir = @srcdir@
42prefix = @prefix@
43exec_prefix = @exec_prefix@
Steve Kondikae271bc2015-11-15 02:50:53 +010044bindir = @bindir@
45datarootdir = @datarootdir@
46datadir = @datadir@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053047libdir = @libdir@
48includedir = @includedir@
49
50INSTALL = @INSTALL@
51INSTALL_DATA = @INSTALL_DATA@
52
53AWK = @AWK@
54LN_S = @LN_S@
55
56CC = @CC@
57CFLAGS = @CFLAGS@
58
59CPPFLAGS = @ACPPFLAGS@ \
60 -DHAVE_CONFIG_H -I$(srcdir)
61
62CCFLAGS = $(CPPFLAGS) $(CFLAGS)
63
64CFLAGS_NORMAL = $(CCFLAGS)
65CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
66CFLAGS_PROFILE = $(CCFLAGS) -pg
67CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
68
69CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
70
71REL_VERSION = @cf_cv_rel_version@
72ABI_VERSION = @cf_cv_abi_version@
73LOCAL_LIBDIR = @top_builddir@/lib
74
75LINK = $(CC)
76LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
77
78RANLIB = @RANLIB@
79################################################################################
Steve Kondikae271bc2015-11-15 02:50:53 +010080BINDIR = $(DESTDIR)$(bindir)
81DATADIR = $(DESTDIR)$(datadir)
82LIBDIR = $(DESTDIR)$(libdir)
83
84MY_DATADIR = $(DATADIR)/AdaCurses
85
86################################################################################
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053087ada_srcdir=../src
88
89LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
90
91ADA = @cf_ada_compiler@
92ADAFLAGS = @ADAFLAGS@ -I$(srcdir)
93
94ADAMAKE = @cf_ada_make@
95ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
96
97ALIB = @cf_ada_package@
98ABASE = $(ALIB)-curses
99
100CARGS =-cargs $(ADAFLAGS)
Steve Kondikae271bc2015-11-15 02:50:53 +0100101LARGS =-largs -L../lib -lAdaCurses @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530102
Steve Kondikae271bc2015-11-15 02:50:53 +0100103PROGS = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530104
Steve Kondikae271bc2015-11-15 02:50:53 +0100105all :: $(PROGS)
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530106 @echo made $@
107
108sources :
109 @echo made $@
110
111libs \
112install \
113install.libs ::
114 @echo made $@
115
116uninstall \
117uninstall.libs ::
118 @echo made $@
119
Steve Kondikae271bc2015-11-15 02:50:53 +0100120install.examples :: $(BINDIR) $(PROGS)
121 $(INSTALL) $(PROGS) $(BINDIR)
122
123install.examples :: $(MY_DATADIR)
124 $(INSTALL_DATA) explain.txt $(MY_DATADIR)
125
126uninstall.examples ::
127 -cd $(BINDIR) && rm -f $(PROGS)
128 -rmdir $(BINDIR)
129 -rm -f $(MY_DATADIR)/explain.txt
130 -rmdir $(MY_DATADIR)
131
132$(BINDIR) \
133$(MY_DATADIR) :
134 mkdir -p $@
135
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530136ncurses$x :
137 $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
138
Steve Kondikae271bc2015-11-15 02:50:53 +0100139tour$x :
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530140 $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
141
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530142rain$x :
143 $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
144
145mostlyclean:
146 @echo made $@
147
148clean :: mostlyclean
149 rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
Steve Kondikae271bc2015-11-15 02:50:53 +0100150 trace screendump b~*.ad[bs]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530151
152distclean :: clean
153 rm -f Makefile
154
155realclean :: distclean
156 @echo made $@