1 #----------------------------------------------------------------------------
3 # GNAT ncurses Binding --
8 # The ncurses Ada95 binding is copyrighted 1996 by --
9 # Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de --
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. --
19 # This binding comes AS IS with no warranty, implied or expressed. --
20 #----------------------------------------------------------------------------
29 MODEL = ../../@DFT_OBJ_SUBDIR@
32 exec_prefix = @exec_prefix@
34 includedir = @includedir@
36 ticdir = $(datadir)/terminfo
39 INSTALL_DATA = @INSTALL_DATA@
47 CPPFLAGS = @ACPPFLAGS@ \
48 -DHAVE_CONFIG_H -I$(srcdir)
50 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
52 CFLAGS_NORMAL = $(CCFLAGS)
53 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
54 CFLAGS_PROFILE = $(CCFLAGS) -pg
55 CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
57 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
60 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
63 ################################################################################
64 ada_srcdir=../ada_include
65 ada_objdir=../ada_objects
67 LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
69 ADA = @nc_ada_compiler@
70 ADAFLAGS = @ADAFLAGS@ -I$(srcdir)
72 ADAMAKE = @nc_ada_make@
73 ADAMAKEFLAGS = -aI$(srcdir) -aI$(ada_srcdir) -aI$(srcdir)/$(ada_srcdir) -aO$(ada_objdir)
75 ALIB = @nc_ada_package@
76 ABASE = $(ALIB)-curses
78 CARGS =-cargs $(ADAFLAGS)
79 LARGS =-largs -L../../lib $(LD_FLAGS)
83 TOUR_OBJS = tour.o sample.o sample-curses_demo.o sample-explanation.o \
84 sample-form_demo.o sample-function_key_setting.o \
85 sample-header_handler.o sample-helpers.o \
86 sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o \
87 sample-menu_demo-aux.o sample-text_io_demo.o \
88 sample-curses_demo-attributes.o sample-curses_demo-mouse.o \
89 sample-form_demo-aux.o sample-my_field_type.o
95 $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
97 explain.msg: $(srcdir)/explain.txt
98 cp $(srcdir)/explain.txt $@
101 rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] explain.msg
109 realclean :: distclean