ncurses 4.1
[ncurses.git] / Ada95 / ada_include / Makefile.in
1 #----------------------------------------------------------------------------
2 #                                                                          --
3 #                            GNAT ncurses Binding                          --
4 #                                src/Makefile                              --
5 #                                                                          --
6 #  Version 00.92                                                           --
7 #                                                                          --
8 #  The ncurses Ada95 binding is copyrighted 1996 by                        --
9 #  Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de                     --
10 #                                                                          --
11 #  Permission is hereby granted to reproduce and distribute this           --
12 #  binding by any means and for any fee, whether alone or as part          --
13 #  of a larger distribution, in source or in binary form, PROVIDED         --
14 #  this notice is included with any such distribution, and is not          --
15 #  removed from any of its header files. Mention of ncurses and the        --
16 #  author of this binding in any applications linked with it is            --
17 #  highly appreciated.                                                     --
18 #                                                                          --
19 #  This binding comes AS IS with no warranty, implied or expressed.        --
20 #----------------------------------------------------------------------------
21 #  Version Control
22 #  $Revision: 1.6 $
23 #
24 .SUFFIXES:
25
26 SHELL           = /bin/sh
27 THIS            = Makefile
28
29 MODEL           = ../../@DFT_OBJ_SUBDIR@
30 srcdir          = @srcdir@
31 prefix          = @prefix@
32 exec_prefix     = @exec_prefix@
33 libdir          = @libdir@
34 includedir      = @includedir@
35 datadir         = @datadir@
36 ticdir          = $(datadir)/terminfo
37
38 INSTALL         = @INSTALL@
39 INSTALL_DATA    = @INSTALL_DATA@
40
41 AWK             = @AWK@
42 LN_S            = @LN_S@
43
44 CC              = @CC@
45 CFLAGS          = @CFLAGS@
46
47 CPPFLAGS        = @ACPPFLAGS@ \
48                   -DHAVE_CONFIG_H -I$(srcdir)
49
50 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
51
52 CFLAGS_NORMAL   = $(CCFLAGS)
53 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
54 CFLAGS_PROFILE  = $(CCFLAGS) -pg
55 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
56
57 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
58
59 LINK            = $(CC)
60 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
61
62 RANLIB          = @RANLIB@
63 ################################################################################
64 ADA             = @nc_ada_compiler@
65 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
66
67 ADAMAKE         = @nc_ada_make@
68 ADAMAKEFLAGS    = 
69
70 CARGS           = -cargs $(ADAFLAGS)
71 LARGS           =
72
73 ALIB            = @nc_ada_package@
74 ABASE           = $(ALIB)-curses
75
76 ADA_OBJDIR      = ../ada_objects
77 OBJDIR          = ../objects
78
79 LIBALIS=$(ADA_OBJDIR)/$(ALIB).ali              \
80         $(ADA_OBJDIR)/$(ABASE)-aux.ali         \
81         $(ADA_OBJDIR)/$(ABASE).ali             \
82         $(ADA_OBJDIR)/$(ABASE)-mouse.ali       \
83         $(ADA_OBJDIR)/$(ABASE)-panels.ali      \
84         $(ADA_OBJDIR)/$(ABASE)-menus.ali       \
85         $(ADA_OBJDIR)/$(ABASE)-forms.ali       \
86         $(ADA_OBJDIR)/$(ABASE)-text_io.ali     \
87         $(ADA_OBJDIR)/$(ABASE)-text_io-aux.ali
88
89 LIBOBJS=$(ADA_OBJDIR)/$(ALIB).o                \
90         $(ADA_OBJDIR)/$(ABASE)-aux.o           \
91         $(ADA_OBJDIR)/$(ABASE).o               \
92         $(ADA_OBJDIR)/$(ABASE)-mouse.o         \
93         $(ADA_OBJDIR)/$(ABASE)-panels.o        \
94         $(ADA_OBJDIR)/$(ABASE)-menus.o         \
95         $(ADA_OBJDIR)/$(ABASE)-forms.o         \
96         $(ADA_OBJDIR)/$(ABASE)-text_io.o       \
97         $(ADA_OBJDIR)/$(ABASE)-text_io-aux.o
98
99
100 all :: $(LIBALIS)
101         @echo done
102
103 clean ::
104         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
105
106 mostlyclean :: clean
107         rm -f $(LIBALIS) $(LIBOBJS)
108
109 distclean :: mostlyclean
110         rm -f Makefile
111
112 realclean :: distclean
113
114 BASEDEPS=$(ABASE).ads $(srcdir)/$(ABASE)-aux.ads
115
116 $(ADA_OBJDIR)/$(ALIB).o: $(srcdir)/$(ALIB).ads
117         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
118
119 $(ADA_OBJDIR)/$(ALIB).ali: $(ADA_OBJDIR)/$(ALIB).o
120         if [ -f $(ALIB).ali ]; then \
121            ln -f $(ALIB).ali $@ ;\
122            rm -f $(ALIB).ali ;\
123         fi
124
125 $(ADA_OBJDIR)/$(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
126         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
127
128 $(ADA_OBJDIR)/$(ABASE)-aux.ali: $(ADA_OBJDIR)/$(ABASE)-aux.o
129         if [ -f $(ABASE)-aux.ali ]; then \
130            ln -f $(ABASE)-aux.ali $@ ;\
131            rm -f $(ABASE)-aux.ali ;\
132         fi
133
134 $(ADA_OBJDIR)/$(ABASE).o: $(srcdir)/$(ABASE).adb $(BASEDEPS)
135         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE).adb
136
137 $(ADA_OBJDIR)/$(ABASE).ali: $(ADA_OBJDIR)/$(ABASE).o
138         if [ -f $(ABASE).ali ]; then \
139            ln -f $(ABASE).ali $@ ;\
140            rm -f $(ABASE).ali ;\
141         fi
142
143 $(ADA_OBJDIR)/$(ABASE)-mouse.o: \
144                 $(ABASE)-mouse.ads \
145                 $(srcdir)/$(ABASE)-mouse.adb $(BASEDEPS)
146         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-mouse.adb
147
148 $(ADA_OBJDIR)/$(ABASE)-mouse.ali: $(ADA_OBJDIR)/$(ABASE)-mouse.o
149         if [ -f $(ABASE)-mouse.ali ]; then \
150            ln -f $(ABASE)-mouse.ali $@ ;\
151            rm -f $(ABASE)-mouse.ali ;\
152         fi
153
154 $(ADA_OBJDIR)/$(ABASE)-panels.o: \
155                 $(ABASE)-panels.ads \
156                 $(srcdir)/$(ABASE)-panels.adb $(BASEDEPS)
157         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels.adb
158
159 $(ADA_OBJDIR)/$(ABASE)-panels.ali: $(ADA_OBJDIR)/$(ABASE)-panels.o
160         if [ -f $(ABASE)-panels.ali ]; then \
161            ln -f $(ABASE)-panels.ali $@ ;\
162            rm -f $(ABASE)-panels.ali ;\
163         fi
164
165 $(ADA_OBJDIR)/$(ABASE)-menus.o: \
166                 $(ABASE)-menus.ads \
167                 $(srcdir)/$(ABASE)-menus.adb $(BASEDEPS)
168         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus.adb
169
170 $(ADA_OBJDIR)/$(ABASE)-menus.ali: $(ADA_OBJDIR)/$(ABASE)-menus.o
171         if [ -f $(ABASE)-menus.ali ]; then \
172            ln -f $(ABASE)-menus.ali $@ ;\
173            rm -f $(ABASE)-menus.ali ;\
174         fi
175
176 $(ADA_OBJDIR)/$(ABASE)-forms.o: \
177                 $(ABASE)-forms.ads \
178                 $(srcdir)/$(ABASE)-forms.adb $(BASEDEPS)
179         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms.adb
180
181 $(ADA_OBJDIR)/$(ABASE)-forms.ali: $(ADA_OBJDIR)/$(ABASE)-forms.o
182         if [ -f $(ABASE)-forms.ali ]; then \
183            ln -f $(ABASE)-forms.ali $@ ;\
184            rm -f $(ABASE)-forms.ali ;\
185         fi
186
187 $(ADA_OBJDIR)/$(ABASE)-text_io.o: \
188                 $(srcdir)/$(ABASE)-text_io.ads \
189                 $(srcdir)/$(ABASE)-text_io.adb $(BASEDEPS)
190         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io.adb
191
192 $(ADA_OBJDIR)/$(ABASE)-text_io.ali: $(ADA_OBJDIR)/$(ABASE)-text_io.o
193         if [ -f $(ABASE)-text_io.ali ]; then \
194            ln -f $(ABASE)-text_io.ali $@ ;\
195            rm -f $(ABASE)-text_io.ali ;\
196         fi
197
198 $(ADA_OBJDIR)/$(ABASE)-text_io-aux.o: \
199                 $(srcdir)/$(ABASE)-text_io-aux.ads \
200                 $(srcdir)/$(ABASE)-text_io-aux.adb $(BASEDEPS)
201         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-aux.adb
202
203 $(ADA_OBJDIR)/$(ABASE)-text_io-aux.ali: $(ADA_OBJDIR)/$(ABASE)-text_io-aux.o
204         if [ -f $(ABASE)-text_io-aux.ali ]; then \
205            ln -f $(ABASE)-text_io-aux.ali $@ ;\
206            rm -f $(ABASE)-text_io-aux.ali ;\
207         fi