1998-03-01 12:21:12 +08:00
|
|
|
##############################################################################
|
|
|
|
# Copyright (c) 1998 Free Software Foundation, Inc. #
|
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# Author: Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> 1996
|
|
|
|
#
|
1997-05-15 12:00:00 +08:00
|
|
|
# Version Control
|
1998-03-01 12:21:12 +08:00
|
|
|
# $Revision: 1.18 $
|
1997-05-15 12:00:00 +08:00
|
|
|
#
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
THIS = Makefile
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
1997-05-15 12:00:00 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
datadir = @datadir@
|
|
|
|
ticdir = $(datadir)/terminfo
|
1998-03-01 12:21:12 +08:00
|
|
|
ADA_INCLUDE = @ADA_INCLUDE@
|
|
|
|
ADA_OBJECTS = @ADA_OBJECTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
AWK = @AWK@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
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@)
|
|
|
|
|
|
|
|
LINK = $(CC)
|
|
|
|
LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
|
|
|
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
|
|
|
LIB_CURSES = -L ../../lib -lncurses
|
|
|
|
|
|
|
|
M4 = m4
|
|
|
|
M4FLAGS =
|
|
|
|
|
|
|
|
DEL_ADAMODE = sed -e '/^\-\-\ \ \-\*\-\ ada\ \-\*\-.*/d'
|
|
|
|
|
|
|
|
################################################################################
|
1998-03-01 12:21:12 +08:00
|
|
|
ALIB = @cf_ada_package@
|
1997-05-15 12:00:00 +08:00
|
|
|
ABASE = $(ALIB)-curses
|
|
|
|
|
|
|
|
ADA_SRCDIR = ../ada_include
|
|
|
|
ADA_OBJDIR = ../ada_objects
|
|
|
|
|
|
|
|
GEN_FILES0 = Base_Defs
|
|
|
|
|
|
|
|
GEN_FILES1 = Key_Definitions \
|
|
|
|
Old_Keys \
|
|
|
|
Character_Attribute_Set_Rep \
|
|
|
|
AC_Rep \
|
|
|
|
Color_Defs \
|
|
|
|
ACS_Map \
|
|
|
|
Linker_Options \
|
1998-03-01 12:21:12 +08:00
|
|
|
Base_Defs \
|
|
|
|
Version_Info
|
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 \
|
|
|
|
Panel_Linker_Options
|
|
|
|
|
|
|
|
GEN_TARGETS = $(ADA_SRCDIR)/$(ABASE).ads \
|
|
|
|
$(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 \
|
|
|
|
$(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
|
|
|
|
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
all: $(ADA_OBJDIR) $(GEN_TARGETS)
|
1997-05-15 12:00:00 +08:00
|
|
|
@
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
sources:
|
|
|
|
|
|
|
|
$(ADA_OBJDIR) \
|
|
|
|
$(ADA_INCLUDE) \
|
|
|
|
$(ADA_OBJECTS) :
|
|
|
|
$(top_srcdir)/mkinstalldirs $@
|
|
|
|
|
|
|
|
install \
|
|
|
|
install.libs :: $(ADA_INCLUDE)
|
|
|
|
@echo installing package $(ABASE) in $(ADA_INCLUDE)
|
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ABASE)[-.]*' $(ADA_SRCDIR) $(ADA_INCLUDE)
|
|
|
|
@test $(srcdir) != ./ && $(top_srcdir)/tar-copy.sh '$(ABASE)[-.]*' $(srcdir)/../ada_include $(ADA_INCLUDE)
|
|
|
|
|
|
|
|
install \
|
|
|
|
install.libs :: $(ADA_OBJECTS)
|
|
|
|
@echo installing package $(ABASE) in $(ADA_OBJECTS)
|
|
|
|
@$(top_srcdir)/tar-copy.sh '$(ABASE)[-.]*' $(ADA_OBJDIR) $(ADA_OBJECTS)
|
|
|
|
|
|
|
|
uninstall \
|
|
|
|
uninstall.libs ::
|
|
|
|
@echo removing package $(ABASE) from $(ADA_INCLUDE)
|
|
|
|
-@cd $(ADA_INCLUDE) && rm -f $(ABASE)[-.]*
|
|
|
|
|
|
|
|
uninstall \
|
|
|
|
uninstall.libs ::
|
|
|
|
@echo removing package $(ABASE) from $(ADA_OBJECTS)
|
|
|
|
-@cd $(ADA_OBJECTS) && rm -f $(ABASE)[-.]*
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
gen: gen.o
|
|
|
|
@ECHO_LINK@ $(LINK) $(CFLAGS_NORMAL) gen.o $(LD_FLAGS) -o $@ $(LIB_CURSES)
|
|
|
|
|
|
|
|
gen.o: $(srcdir)/gen.c
|
|
|
|
$(CC) $(CFLAGS_NORMAL) -c -o $@ $(srcdir)/gen.c
|
|
|
|
|
|
|
|
Character_Attribute_Set_Rep: gen
|
|
|
|
./gen B A >$@
|
|
|
|
|
|
|
|
Base_Defs: gen
|
|
|
|
./gen B B >$@
|
|
|
|
|
|
|
|
Color_Defs: gen
|
|
|
|
./gen B C >$@
|
|
|
|
|
|
|
|
Key_Definitions: gen
|
|
|
|
./gen B K >$@
|
|
|
|
|
|
|
|
Old_Keys: gen
|
|
|
|
./gen B O >$@
|
|
|
|
|
|
|
|
ACS_Map: gen
|
|
|
|
./gen B M >$@
|
|
|
|
|
|
|
|
AC_Rep: gen
|
|
|
|
./gen B R >$@
|
|
|
|
|
|
|
|
Linker_Options: gen
|
|
|
|
./gen B L >$@
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
Version_Info: gen
|
|
|
|
./gen B V >$@
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
Menu_Opt_Rep: gen
|
|
|
|
./gen M R >$@
|
|
|
|
|
|
|
|
Menu_Base_Defs: gen
|
|
|
|
./gen M B >$@
|
|
|
|
|
|
|
|
Menu_Linker_Options: gen
|
|
|
|
./gen M L >$@
|
|
|
|
|
|
|
|
Item_Rep: gen
|
|
|
|
./gen M I >$@
|
|
|
|
|
|
|
|
Form_Opt_Rep: gen
|
|
|
|
./gen F R >$@
|
|
|
|
|
|
|
|
Form_Base_Defs: gen
|
|
|
|
./gen F B >$@
|
|
|
|
|
|
|
|
Form_Linker_Options: gen
|
|
|
|
./gen F L >$@
|
|
|
|
|
|
|
|
Field_Rep: gen
|
|
|
|
./gen F I >$@
|
|
|
|
|
|
|
|
Mouse_Base_Defs: gen
|
|
|
|
./gen P B >$@
|
|
|
|
|
|
|
|
Mouse_Event_Rep: gen
|
|
|
|
./gen P M >$@
|
|
|
|
|
|
|
|
Panel_Linker_Options: gen
|
|
|
|
./gen P L >$@
|
|
|
|
|
|
|
|
$(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) >$@
|
|
|
|
|
|
|
|
$(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]
|
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.[ch]
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
mostlyclean ::
|
|
|
|
-rm -f a.out core gen *.o
|
|
|
|
-rm -f $(GEN_FILES1)
|
|
|
|
-rm -f $(GEN_FILES2)
|
|
|
|
-rm -f $(GEN_FILES3)
|
|
|
|
-rm -f $(GEN_FILES4)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
clean :: mostlyclean
|
|
|
|
-rm -f $(GEN_TARGETS)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
distclean :: clean
|
1997-05-15 12:00:00 +08:00
|
|
|
rm -f Makefile
|
|
|
|
|
|
|
|
realclean :: distclean
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# The remainder of this file is automatically generated during configuration
|
|
|
|
###############################################################################
|