1998-03-01 12:21:12 +08:00
|
|
|
##############################################################################
|
2007-01-14 09:43:23 +08:00
|
|
|
# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. #
|
1998-03-01 12:21:12 +08:00
|
|
|
# #
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a #
|
|
|
|
# copy of this software and associated documentation files (the "Software"), #
|
|
|
|
# to deal in the Software without restriction, including without limitation #
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, distribute #
|
|
|
|
# with modifications, sublicense, and/or sell copies of the Software, and to #
|
|
|
|
# permit persons to whom the Software is furnished to do so, subject to the #
|
|
|
|
# following conditions: #
|
|
|
|
# #
|
|
|
|
# The above copyright notice and this permission notice shall be included in #
|
|
|
|
# all copies or substantial portions of the Software. #
|
|
|
|
# #
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL #
|
|
|
|
# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING #
|
|
|
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER #
|
|
|
|
# DEALINGS IN THE SOFTWARE. #
|
|
|
|
# #
|
|
|
|
# Except as contained in this notice, the name(s) of the above copyright #
|
|
|
|
# holders shall not be used in advertising or otherwise to promote the sale, #
|
|
|
|
# use or other dealings in this Software without prior written #
|
|
|
|
# authorization. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
2002-10-13 11:35:53 +08:00
|
|
|
# Author: Juergen Pfeifer, 1996
|
1998-03-01 12:21:12 +08:00
|
|
|
#
|
2007-09-16 06:30:31 +08:00
|
|
|
# $Id: Makefile.in,v 1.60 2007/09/15 17:55:33 tom Exp $
|
1997-05-15 12:00:00 +08:00
|
|
|
#
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
THIS = Makefile
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
x = @PROG_EXT@
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
2000-10-21 12:42:11 +08:00
|
|
|
DESTDIR = @DESTDIR@
|
1997-05-15 12:00:00 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2007-04-08 09:10:28 +08:00
|
|
|
bindir = @bindir@
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
ADA_INCLUDE = $(DESTDIR)@ADA_INCLUDE@
|
|
|
|
ADA_OBJECTS = $(DESTDIR)@ADA_OBJECTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
2007-04-08 09:10:28 +08:00
|
|
|
INSTALL_PROG = @INSTALL_PROGRAM@
|
1997-05-15 12:00:00 +08:00
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
AWK = @AWK@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
2004-02-09 10:15:26 +08:00
|
|
|
CC = @CC@
|
2000-10-21 12:42:11 +08:00
|
|
|
HOST_CC = @BUILD_CC@
|
1997-05-15 12:00:00 +08:00
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
|
|
|
|
CPPFLAGS = @ACPPFLAGS@ \
|
|
|
|
-DHAVE_CONFIG_H -I$(srcdir)
|
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
|
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
|
|
|
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
|
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
REL_VERSION = @cf_cv_rel_version@
|
|
|
|
ABI_VERSION = @cf_cv_abi_version@
|
|
|
|
LOCAL_LIBDIR = @top_builddir@/lib
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
LINK = $(HOST_CC)
|
2007-02-04 09:44:56 +08:00
|
|
|
LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS) @TINFO_ARGS2@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
M4 = m4
|
|
|
|
M4FLAGS =
|
|
|
|
|
2007-04-08 09:10:28 +08:00
|
|
|
ADACURSES_CONFIG = adacurses-config
|
|
|
|
|
2007-09-16 06:30:31 +08:00
|
|
|
WRAPPER = sh $(top_srcdir)/misc/shlib
|
2000-10-21 12:42:11 +08:00
|
|
|
GENERATE = ./gen$x '@DFT_ARG_SUFFIX@'
|
1997-05-15 12:00:00 +08:00
|
|
|
DEL_ADAMODE = sed -e '/^\-\-\ \ \-\*\-\ ada\ \-\*\-.*/d'
|
|
|
|
|
2000-07-09 10:46:08 +08:00
|
|
|
GNATHTML = `type -p gnathtml || type -p gnathtml.pl`
|
|
|
|
GNATHP = www.gnat.com
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
################################################################################
|
1998-03-01 12:21:12 +08:00
|
|
|
ALIB = @cf_ada_package@
|
1997-05-15 12:00:00 +08:00
|
|
|
ABASE = $(ALIB)-curses
|
|
|
|
|
1999-10-24 12:32:42 +08:00
|
|
|
ADA_SRCDIR = ../src
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
GEN_FILES0 = Base_Defs
|
|
|
|
|
2007-04-01 08:48:02 +08:00
|
|
|
GEN_FILES1 = ACS_Map \
|
1997-05-15 12:00:00 +08:00
|
|
|
AC_Rep \
|
2007-04-01 08:48:02 +08:00
|
|
|
Base_Defs \
|
|
|
|
Character_Attribute_Set_Rep \
|
1997-05-15 12:00:00 +08:00
|
|
|
Color_Defs \
|
2007-04-01 08:48:02 +08:00
|
|
|
Key_Definitions \
|
1997-05-15 12:00:00 +08:00
|
|
|
Linker_Options \
|
2007-04-01 08:48:02 +08:00
|
|
|
Old_Keys \
|
|
|
|
Public_Variables \
|
|
|
|
Trace_Defs \
|
2002-10-13 11:35:53 +08:00
|
|
|
Version_Info \
|
2007-04-01 08:48:02 +08:00
|
|
|
Window_Offsets
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
GEN_FILES2 = Menu_Opt_Rep \
|
|
|
|
Menu_Base_Defs \
|
|
|
|
Menu_Linker_Options \
|
|
|
|
Item_Rep
|
|
|
|
|
|
|
|
GEN_FILES3 = Form_Opt_Rep \
|
|
|
|
Form_Base_Defs \
|
|
|
|
Form_Linker_Options \
|
|
|
|
Field_Rep
|
|
|
|
|
|
|
|
GEN_FILES4 = Mouse_Base_Defs \
|
|
|
|
Mouse_Event_Rep \
|
1999-10-24 12:32:42 +08:00
|
|
|
Mouse_Events \
|
1997-05-15 12:00:00 +08:00
|
|
|
Panel_Linker_Options
|
|
|
|
|
1999-10-24 12:32:42 +08:00
|
|
|
GEN_FILES5 = Chtype_Def \
|
|
|
|
Eti_Defs
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
GEN_TARGETS = $(ADA_SRCDIR)/$(ABASE).ads \
|
2007-04-01 08:48:02 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE).adb \
|
1999-10-24 12:32:42 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-aux.ads \
|
2002-10-13 11:35:53 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-trace.ads \
|
1997-05-15 12:00:00 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-mouse.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-panels.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads \
|
1998-03-01 12:21:12 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-field_types.ads \
|
1997-05-15 12:00:00 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads \
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads
|
|
|
|
|
|
|
|
GEN_SRC = $(srcdir)/$(ABASE).ads.m4 \
|
2007-04-01 08:48:02 +08:00
|
|
|
$(srcdir)/$(ABASE).adb.m4 \
|
1999-10-24 12:32:42 +08:00
|
|
|
$(srcdir)/$(ABASE)-aux.ads.m4 \
|
2002-10-13 11:35:53 +08:00
|
|
|
$(srcdir)/$(ABASE)-trace.ads.m4 \
|
1997-05-15 12:00:00 +08:00
|
|
|
$(srcdir)/$(ABASE)-menus.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-mouse.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-panels.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 \
|
1998-03-01 12:21:12 +08:00
|
|
|
$(srcdir)/$(ABASE)-forms-field_types.ads.m4 \
|
1997-05-15 12:00:00 +08:00
|
|
|
$(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-panels-user_data.ads.m4
|
|
|
|
|
|
|
|
|
2000-07-09 10:46:08 +08:00
|
|
|
all \
|
|
|
|
libs : $(GEN_TARGETS)
|
2005-10-10 02:41:57 +08:00
|
|
|
@echo made $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
sources:
|
|
|
|
|
|
|
|
$(ADA_INCLUDE) \
|
|
|
|
$(ADA_OBJECTS) :
|
2007-04-08 09:10:28 +08:00
|
|
|
sh $(top_srcdir)/mkdirs.sh $@
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
install \
|
|
|
|
install.libs :: $(ADA_INCLUDE)
|
2000-10-21 12:42:11 +08:00
|
|
|
@echo installing package $(ALIB) in $(ADA_INCLUDE)
|
2006-12-18 12:32:42 +08:00
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ALIB)*.ad?' $(ADA_SRCDIR) $(ADA_INCLUDE)
|
2000-10-21 12:42:11 +08:00
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ALIB)[-.]*.ad?' $(ADA_SRCDIR) $(ADA_INCLUDE)
|
2006-12-18 12:32:42 +08:00
|
|
|
@test $(srcdir) != ./ && $(top_srcdir)/tar-copy.sh '$(ALIB)*.ad?' $(srcdir)/../src $(ADA_INCLUDE)
|
2000-10-21 12:42:11 +08:00
|
|
|
@test $(srcdir) != ./ && $(top_srcdir)/tar-copy.sh '$(ALIB)[-.]*.ad?' $(srcdir)/../src $(ADA_INCLUDE)
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
install \
|
|
|
|
install.libs :: $(ADA_OBJECTS)
|
2000-10-21 12:42:11 +08:00
|
|
|
@echo installing package $(ALIB) in $(ADA_OBJECTS)
|
2004-02-09 10:15:26 +08:00
|
|
|
@-chmod a-wx $(ADA_SRCDIR)/*.ali
|
2006-12-18 12:32:42 +08:00
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ALIB)*.ali' $(ADA_SRCDIR) $(ADA_OBJECTS)
|
2000-10-21 12:42:11 +08:00
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ALIB)[-.]*.ali' $(ADA_SRCDIR) $(ADA_OBJECTS)
|
2004-02-09 10:15:26 +08:00
|
|
|
@-chmod u+x $(ADA_SRCDIR)/*.ali
|
1998-03-01 12:21:12 +08:00
|
|
|
|
2007-04-08 09:10:28 +08:00
|
|
|
install \
|
|
|
|
install.libs :: $(DESTDIR)$(bindir) adacurses-config
|
|
|
|
$(INSTALL_PROG) adacurses-config $(DESTDIR)$(bindir)/$(ADACURSES_CONFIG)
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
uninstall \
|
|
|
|
uninstall.libs ::
|
2000-10-21 12:42:11 +08:00
|
|
|
@echo removing package $(ALIB) from $(ADA_INCLUDE)
|
|
|
|
-@cd $(ADA_INCLUDE) && rm -f $(ALIB)[-.]*
|
1998-03-01 12:21:12 +08:00
|
|
|
|
|
|
|
uninstall \
|
|
|
|
uninstall.libs ::
|
2000-10-21 12:42:11 +08:00
|
|
|
@echo removing package $(ALIB) from $(ADA_OBJECTS)
|
|
|
|
-@cd $(ADA_OBJECTS) && rm -f $(ALIB)[-.]*
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2007-04-08 09:10:28 +08:00
|
|
|
uninstall \
|
|
|
|
uninstall.libs ::
|
|
|
|
-rm -f $(DESTDIR)$(bindir)/$(ADACURSES_CONFIG)
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
gen$x: gen.o
|
2005-10-10 02:41:57 +08:00
|
|
|
@ECHO_LINK@ $(LINK) $(CFLAGS_NORMAL) gen.o $(LD_FLAGS) -o $@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
gen.o: $(srcdir)/gen.c
|
2000-10-21 12:42:11 +08:00
|
|
|
$(HOST_CC) $(CFLAGS_NORMAL) -c -o $@ $(srcdir)/gen.c
|
2007-04-01 08:48:02 +08:00
|
|
|
################################################################################
|
2000-10-21 12:42:11 +08:00
|
|
|
Character_Attribute_Set_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B A" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Base_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B B" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Color_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B C" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2007-04-01 08:48:02 +08:00
|
|
|
Window_Offsets: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B D" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Key_Definitions: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B K" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2007-04-01 08:48:02 +08:00
|
|
|
Linker_Options: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B L" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
ACS_Map: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B M" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2007-04-01 08:48:02 +08:00
|
|
|
Old_Keys: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B O" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
|
|
|
|
Public_Variables: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B P" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
AC_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B R" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Version_Info: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B V" >$@
|
1999-10-24 12:32:42 +08:00
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
Trace_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B T" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
################################################################################
|
2000-10-21 12:42:11 +08:00
|
|
|
Menu_Opt_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) M R" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Menu_Base_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) M B" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Menu_Linker_Options: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) M L" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Item_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) M I" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
################################################################################
|
2000-10-21 12:42:11 +08:00
|
|
|
Form_Opt_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) F R" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Form_Base_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) F B" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Form_Linker_Options: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) F L" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Field_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) F I" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
################################################################################
|
2000-10-21 12:42:11 +08:00
|
|
|
Mouse_Base_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) P B" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Mouse_Event_Rep: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) P M" >$@
|
1999-10-24 12:32:42 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Mouse_Events: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) B E" >$@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Panel_Linker_Options: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) P L" >$@
|
1999-10-24 12:32:42 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Chtype_Def: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) E C" >$@
|
1999-10-24 12:32:42 +08:00
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
Eti_Defs: gen$x
|
2007-09-16 06:30:31 +08:00
|
|
|
$(WRAPPER) "$(GENERATE) E E" >$@
|
2007-04-01 08:48:02 +08:00
|
|
|
################################################################################
|
1997-05-15 12:00:00 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE).ads: $(srcdir)/$(ABASE).ads.m4 \
|
|
|
|
$(GEN_FILES1) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE).ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
2007-04-01 08:48:02 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE).adb: $(srcdir)/$(ABASE).adb.m4 \
|
|
|
|
$(GEN_FILES1) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE).adb.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
1999-10-24 12:32:42 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-aux.ads: $(srcdir)/$(ABASE)-aux.ads.m4 \
|
|
|
|
$(GEN_FILES5) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-aux.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
2002-10-13 11:35:53 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-trace.ads: $(srcdir)/$(ABASE)-trace.ads.m4 \
|
|
|
|
$(GEN_FILES5) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-trace.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus.ads: $(srcdir)/$(ABASE)-menus.ads.m4 \
|
|
|
|
$(GEN_FILES2) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-menus.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms.ads: $(srcdir)/$(ABASE)-forms.ads.m4 \
|
|
|
|
$(GEN_FILES3) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-mouse.ads: $(srcdir)/$(ABASE)-mouse.ads.m4 \
|
|
|
|
$(GEN_FILES4) $(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-mouse.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-panels.ads: $(srcdir)/$(ABASE)-panels.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-panels.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-field_types.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-forms-field_types.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms-field_types.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
$(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
$(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads: \
|
|
|
|
$(srcdir)/$(ABASE)-panels-user_data.ads.m4 \
|
|
|
|
$(srcdir)/normal.m4
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
|
|
|
|
$(srcdir)/$(ABASE)-panels-user_data.ads.m4 |\
|
|
|
|
$(DEL_ADAMODE) >$@
|
|
|
|
|
|
|
|
install.progs ::
|
|
|
|
|
|
|
|
tags:
|
|
|
|
ctags *.[ch]
|
|
|
|
|
2007-04-08 09:10:28 +08:00
|
|
|
@MAKE_UPPER_TAGS@TAGS:
|
|
|
|
@MAKE_UPPER_TAGS@ etags *.[ch]
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
mostlyclean ::
|
2000-10-21 12:42:11 +08:00
|
|
|
-rm -f a.out core gen$x *.o
|
1998-03-01 12:21:12 +08:00
|
|
|
-rm -f $(GEN_FILES1)
|
|
|
|
-rm -f $(GEN_FILES2)
|
|
|
|
-rm -f $(GEN_FILES3)
|
|
|
|
-rm -f $(GEN_FILES4)
|
1999-10-24 12:32:42 +08:00
|
|
|
-rm -f $(GEN_FILES5)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
clean :: mostlyclean
|
2000-07-09 10:46:08 +08:00
|
|
|
-rm -f $(GEN_TARGETS) instab.tmp *.ad[bs] *.html *.ali *.tmp
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
distclean :: clean
|
2007-04-08 09:10:28 +08:00
|
|
|
-rm -f adacurses-config
|
|
|
|
-rm -f Makefile
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
realclean :: distclean
|
|
|
|
|
2000-07-09 10:46:08 +08:00
|
|
|
HTML_DIR = ../../doc/html/ada
|
|
|
|
|
|
|
|
instab.tmp : table.m4 $(GEN_SRC)
|
|
|
|
@rm -f $@
|
|
|
|
@for f in $(GEN_SRC) ; do \
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=table.m4 $$f | $(DEL_ADAMODE) >> $@ ;\
|
|
|
|
done;
|
|
|
|
|
|
|
|
$(HTML_DIR)/table.html : instab.tmp
|
|
|
|
@-touch $@
|
|
|
|
@-chmod +w $@
|
|
|
|
@echo '<!DOCTYPE HTML' > $@
|
|
|
|
@echo 'PUBLIC "-//IETF//DTD HTML 3.0//EN">' >> $@
|
|
|
|
@echo '<HTML>' >> $@
|
|
|
|
@echo '<HEAD>' >> $@
|
|
|
|
@echo '<TITLE>Correspondence between ncurses C and Ada functions</TITLE>' >>$@
|
|
|
|
@echo '</HEAD>' >> $@
|
|
|
|
@echo '<BODY>' >> $@
|
|
|
|
@echo '<H1>Correspondence between ncurses C and Ada functions</H1>' >>$@
|
|
|
|
@echo '<H2>Sorted by C function name</H2>' >>$@
|
|
|
|
@echo '<TABLE ALIGN=CENTER BORDER>' >>$@
|
|
|
|
@echo '<TR ALIGN=LEFT>' >>$@
|
|
|
|
@echo '<TH>C name</TH><TH>Ada name</TH><TH>man page</TH></TR>' >>$@
|
|
|
|
@sort < instab.tmp >> $@
|
|
|
|
@echo '</TABLE></BODY></HTML>' >>$@
|
|
|
|
@rm -f instab.tmp
|
|
|
|
|
|
|
|
adahtml:
|
2005-10-10 02:41:57 +08:00
|
|
|
@find $(HTML_DIR) -type f -exec rm -f {} \;
|
2000-07-09 10:46:08 +08:00
|
|
|
@mkdir -p $(HTML_DIR)
|
|
|
|
cp -p ../src/*.ad[sb] . && chmod +w *.ad[sb]
|
|
|
|
ln -sf ../src/*.ali .
|
2007-05-06 08:26:41 +08:00
|
|
|
@echo "Filtering generated files"
|
|
|
|
@for f in $(GEN_SRC); do \
|
|
|
|
h=`basename $$f` ;\
|
2000-07-09 10:46:08 +08:00
|
|
|
g=`basename $$f .ads.m4` ;\
|
2007-05-06 08:26:41 +08:00
|
|
|
if test "$$g" != "$$h" ; then \
|
|
|
|
$(M4) $(M4FLAGS) -DM4MACRO=html.m4 $$f | $(DEL_ADAMODE) > $$g.ads ;\
|
|
|
|
echo "... $$g.ads" ;\
|
|
|
|
fi \
|
2000-07-09 10:46:08 +08:00
|
|
|
done
|
|
|
|
@-rm -f $(HTML_DIR)/$(ALIB)*.htm*
|
|
|
|
$(GNATHTML) -d -f $(ALIB)*.ads
|
|
|
|
for f in html/$(ALIB)*.htm*; do \
|
|
|
|
a=`basename $$f` ; \
|
|
|
|
sed -e 's/You may also.*body.*//' <$$f |\
|
|
|
|
sed -e 's%GNAT%<A HREF="http://$(GNATHP)">GNAT</A>%g' |\
|
|
|
|
sed -e 's%<A HREF%<A HREF%g' |\
|
|
|
|
sed -e 's%">%">%g' |\
|
|
|
|
sed -e 's/3X/3x/g' |\
|
2002-10-13 11:35:53 +08:00
|
|
|
sed -e 's/$$\([ABCDEFGHIJKLMNOPQRSTUVWXZabcdefghijklmnopqrstuvwxz0123456789_]*:.*\)\$$/@\1@/' |\
|
2000-07-09 10:46:08 +08:00
|
|
|
sed -e 's%</A>%</A>%g' > $$a.tmp ;\
|
2007-05-06 08:26:41 +08:00
|
|
|
mv $$a.tmp $$f ;\
|
2004-02-09 10:15:26 +08:00
|
|
|
done
|
2000-07-09 10:46:08 +08:00
|
|
|
@rm -f *.ad[sb] *.ali *.tmp
|
|
|
|
@for f in funcs.htm main.htm ; do \
|
|
|
|
sed -e "\%<A HREF=funcs/ .htm>\[ \]</A>%d" < html/$$f > $$f ;\
|
|
|
|
mv $$f html/$$f ;\
|
|
|
|
done
|
|
|
|
@rm -f "html/funcs/ .htm"
|
|
|
|
@cp -pdrf html/* $(HTML_DIR)/
|
|
|
|
@rm -rf html
|
|
|
|
|
|
|
|
html : adahtml $(HTML_DIR)/table.html
|
2005-10-10 02:41:57 +08:00
|
|
|
@echo made $@
|
2000-07-09 10:46:08 +08:00
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
###############################################################################
|
|
|
|
# The remainder of this file is automatically generated during configuration
|
|
|
|
###############################################################################
|