ncurses 4.1
[ncurses.git] / Ada95 / gen / Makefile.in
1 #----------------------------------------------------------------------------
2 #                                                                          --
3 #                            GNAT ncurses Binding                          --
4 #                                gen/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.8 $
23 #
24 .SUFFIXES:
25
26 SHELL           = /bin/sh
27 THIS            = Makefile
28
29 srcdir          = @srcdir@
30 prefix          = @prefix@
31 exec_prefix     = @exec_prefix@
32 libdir          = @libdir@
33 includedir      = @includedir@
34 datadir         = @datadir@
35 ticdir          = $(datadir)/terminfo
36
37 INSTALL         = @INSTALL@
38 INSTALL_DATA    = @INSTALL_DATA@
39
40 AWK             = @AWK@
41 LN_S            = @LN_S@
42
43 CC              = @CC@
44 CFLAGS          = @CFLAGS@
45
46 CPPFLAGS        = @ACPPFLAGS@ \
47                   -DHAVE_CONFIG_H -I$(srcdir)
48
49 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
50
51 CFLAGS_NORMAL   = $(CCFLAGS)
52 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
53 CFLAGS_PROFILE  = $(CCFLAGS) -pg
54 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
55
56 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
57
58 LINK            = $(CC)
59 LD_FLAGS        = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
60
61 RANLIB          = @RANLIB@
62
63 LIB_CURSES      = -L ../../lib -lncurses
64
65 M4              = m4
66 M4FLAGS         =
67
68 DEL_ADAMODE     = sed -e '/^\-\-\ \ \-\*\-\ ada\ \-\*\-.*/d'
69
70 ################################################################################
71 ALIB            = @nc_ada_package@
72 ABASE           = $(ALIB)-curses
73
74 ADA_SRCDIR      = ../ada_include
75 ADA_OBJDIR      = ../ada_objects
76 OBJDIR          = ../objects
77
78 GEN_FILES0      = Base_Defs
79
80 GEN_FILES1      = Key_Definitions                       \
81                   Old_Keys                              \
82                   Character_Attribute_Set_Rep           \
83                   AC_Rep                                \
84                   Color_Defs                            \
85                   ACS_Map                               \
86                   Linker_Options                        \
87                   Base_Defs
88
89 GEN_FILES2      = Menu_Opt_Rep                          \
90                   Menu_Base_Defs                        \
91                   Menu_Linker_Options                   \
92                   Item_Rep
93
94 GEN_FILES3      = Form_Opt_Rep                          \
95                   Form_Base_Defs                        \
96                   Form_Linker_Options                   \
97                   Field_Rep
98
99 GEN_FILES4      = Mouse_Base_Defs                       \
100                   Mouse_Event_Rep                       \
101                   Panel_Linker_Options
102
103 GEN_TARGETS     = $(ADA_SRCDIR)/$(ABASE).ads                            \
104                   $(ADA_SRCDIR)/$(ABASE)-menus.ads                      \
105                   $(ADA_SRCDIR)/$(ABASE)-forms.ads                      \
106                   $(ADA_SRCDIR)/$(ABASE)-mouse.ads                      \
107                   $(ADA_SRCDIR)/$(ABASE)-panels.ads                     \
108                   $(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads       \
109                   $(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads       \
110                   $(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads       \
111                   $(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads      \
112                   $(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads
113
114 GEN_SRC         = $(srcdir)/$(ABASE).ads.m4                             \
115                   $(srcdir)/$(ABASE)-menus.ads.m4                       \
116                   $(srcdir)/$(ABASE)-forms.ads.m4                       \
117                   $(srcdir)/$(ABASE)-mouse.ads.m4                       \
118                   $(srcdir)/$(ABASE)-panels.ads.m4                      \
119                   $(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4        \
120                   $(srcdir)/$(ABASE)-menus-item_user_data.ads.m4        \
121                   $(srcdir)/$(ABASE)-forms-form_user_data.ads.m4        \
122                   $(srcdir)/$(ABASE)-forms-field_user_data.ads.m4       \
123                   $(srcdir)/$(ABASE)-panels-user_data.ads.m4
124
125
126 all:    $(GEN_TARGETS) dirs
127         @
128
129 dirs:
130         @-mkdir $(OBJDIR) $(ADA_OBJDIR)
131
132 gen:    gen.o
133         @ECHO_LINK@ $(LINK) $(CFLAGS_NORMAL) gen.o $(LD_FLAGS) -o $@ $(LIB_CURSES)
134
135 gen.o:  $(srcdir)/gen.c
136         $(CC) $(CFLAGS_NORMAL) -c -o $@ $(srcdir)/gen.c
137
138 Character_Attribute_Set_Rep: gen
139         ./gen B A >$@
140
141 Base_Defs: gen
142         ./gen B B >$@
143
144 Color_Defs: gen
145         ./gen B C >$@
146
147 Key_Definitions: gen
148         ./gen B K >$@
149
150 Old_Keys: gen
151         ./gen B O >$@
152
153 ACS_Map: gen
154         ./gen B M >$@
155
156 AC_Rep: gen
157         ./gen B R >$@
158
159 Linker_Options: gen
160         ./gen B L >$@
161
162 Menu_Opt_Rep: gen
163         ./gen M R >$@
164
165 Menu_Base_Defs: gen
166         ./gen M B >$@
167
168 Menu_Linker_Options: gen
169         ./gen M L >$@
170
171 Item_Rep: gen
172         ./gen M I >$@
173
174 Form_Opt_Rep: gen
175         ./gen F R >$@
176
177 Form_Base_Defs: gen
178         ./gen F B >$@
179
180 Form_Linker_Options: gen
181         ./gen F L >$@
182
183 Field_Rep: gen
184         ./gen F I >$@
185
186 Mouse_Base_Defs: gen
187         ./gen P B >$@
188
189 Mouse_Event_Rep: gen
190         ./gen P M >$@
191
192 Panel_Linker_Options: gen
193         ./gen P L >$@
194
195 $(ADA_SRCDIR)/$(ABASE).ads:     $(srcdir)/$(ABASE).ads.m4 \
196                                 $(GEN_FILES1) $(srcdir)/normal.m4
197         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
198         $(srcdir)/$(ABASE).ads.m4 |\
199         $(DEL_ADAMODE) >$@
200
201 $(ADA_SRCDIR)/$(ABASE)-menus.ads: $(srcdir)/$(ABASE)-menus.ads.m4 \
202                                   $(GEN_FILES2) $(srcdir)/normal.m4
203         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
204         $(srcdir)/$(ABASE)-menus.ads.m4 |\
205         $(DEL_ADAMODE) >$@
206
207 $(ADA_SRCDIR)/$(ABASE)-forms.ads: $(srcdir)/$(ABASE)-forms.ads.m4 \
208                                   $(GEN_FILES3) $(srcdir)/normal.m4
209         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
210         $(srcdir)/$(ABASE)-forms.ads.m4 |\
211         $(DEL_ADAMODE) >$@
212
213 $(ADA_SRCDIR)/$(ABASE)-mouse.ads: $(srcdir)/$(ABASE)-mouse.ads.m4 \
214                                   $(GEN_FILES4) $(srcdir)/normal.m4
215         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
216         $(srcdir)/$(ABASE)-mouse.ads.m4 |\
217         $(DEL_ADAMODE) >$@
218
219 $(ADA_SRCDIR)/$(ABASE)-panels.ads: $(srcdir)/$(ABASE)-panels.ads.m4 \
220                                    $(srcdir)/normal.m4
221         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
222         $(srcdir)/$(ABASE)-panels.ads.m4 |\
223         $(DEL_ADAMODE) >$@
224
225 $(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads: \
226                 $(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 \
227                 $(srcdir)/normal.m4
228         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
229         $(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 |\
230         $(DEL_ADAMODE) >$@
231
232 $(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads: \
233                 $(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 \
234                 $(srcdir)/normal.m4
235         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
236         $(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 |\
237         $(DEL_ADAMODE) >$@
238
239 $(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads: \
240                 $(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 \
241                 $(srcdir)/normal.m4
242         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
243         $(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 |\
244         $(DEL_ADAMODE) >$@
245
246 $(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads: \
247                 $(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 \
248                 $(srcdir)/normal.m4
249         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
250         $(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 |\
251         $(DEL_ADAMODE) >$@
252
253 $(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads: \
254                 $(srcdir)/$(ABASE)-panels-user_data.ads.m4 \
255                 $(srcdir)/normal.m4
256         $(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
257         $(srcdir)/$(ABASE)-panels-user_data.ads.m4 |\
258         $(DEL_ADAMODE) >$@
259
260 install :: 
261
262 install.libs ::
263
264 install.progs ::
265
266 tags:
267         ctags *.[ch]
268
269 TAGS:
270         etags *.[ch]
271
272 clean ::
273         rm -f a.out core gen *.o $(GEN_FILES1) $(GEN_FILES2) $(GEN_FILES3) \
274         $(GEN_FILES4) $(GEN_TARGETS)
275
276 mostlyclean :: clean
277
278 distclean :: mostlyclean
279         rm -f Makefile
280
281 realclean :: distclean
282
283 ###############################################################################
284 # The remainder of this file is automatically generated during configuration
285 ###############################################################################