ncurses 5.7 - patch 20100220
[ncurses.git] / Ada95 / src / Makefile.in
index a3de1954896540d1ccb408e81dbdff7c393ad47f..7ce4549bd6b76595cde201606304ac1d11a29b51 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 1998 Free Software Foundation, Inc.                          #
+# Copyright (c) 1998-2007,2009 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"), #
 # authorization.                                                             #
 ##############################################################################
 #
-#  Author: Juergen Pfeifer <juergen.pfeifer@gmx.net> 1996
+#  Author:  Juergen Pfeifer, 1996
 #
-#  Version Control
-#  $Revision: 1.20 $
+#  $Id: Makefile.in,v 1.34 2009/01/11 01:11:44 tom Exp $
 #
 .SUFFIXES:
 
@@ -37,20 +36,22 @@ SHELL               = /bin/sh
 THIS           = Makefile
 
 MODEL          = ../../@DFT_OBJ_SUBDIR@
+
+DESTDIR                = @DESTDIR@
+
+top_srcdir     = @top_srcdir@
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
-libdir         = @libdir@
-includedir     = @includedir@
-datadir                = @datadir@
-ticdir         = $(datadir)/terminfo
-ADA_INCLUDE    = @ADA_INCLUDE@
+
+ADA_INCLUDE    = $(DESTDIR)@ADA_INCLUDE@
+ADA_OBJECTS    = $(DESTDIR)@ADA_OBJECTS@
 
 INSTALL                = @INSTALL@
-INSTALL_DATA   = @INSTALL_DATA@
+INSTALL_LIB    = @INSTALL@ @INSTALL_LIB@
 
 AR             = @AR@
-AR_OPTS                = @AR_OPTS@
+ARFLAGS                = @ARFLAGS@
 AWK            = @AWK@
 LN_S           = @LN_S@
 
@@ -75,20 +76,26 @@ LDFLAGS             = @LDFLAGS@ @LD_MODEL@ @LIBS@
 RANLIB         = @RANLIB@
 ################################################################################
 ADA             = @cf_ada_compiler@
+ADAPREP                = gnatprep
 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
 
 ADAMAKE         = @cf_ada_make@
-ADAMAKEFLAGS    = 
+ADAMAKEFLAGS    =
 
 CARGS           = -cargs $(ADAFLAGS)
 LARGS           =
 
+LIBRARY_FILE   = libAdaCurses.a
 ALIB            = @cf_ada_package@
 ABASE           = $(ALIB)-curses
 
 LIBALIS=$(ALIB).ali                                    \
        $(ABASE)-aux.ali                                \
        $(ABASE).ali                                    \
+       $(ABASE)-terminfo.ali                           \
+       $(ABASE)-termcap.ali                            \
+       $(ABASE)-putwin.ali                             \
+       $(ABASE)-trace.ali                              \
        $(ABASE)-mouse.ali                              \
        $(ABASE)-panels.ali                             \
        $(ABASE)-menus.ali                              \
@@ -125,6 +132,10 @@ GENALIS=$(ABASE)-menus-menu_user_data.ali          \
 LIBOBJS=$(ALIB).o                                      \
        $(ABASE)-aux.o                                  \
        $(ABASE).o                                      \
+       $(ABASE)-terminfo.o                             \
+       $(ABASE)-termcap.o                              \
+       $(ABASE)-putwin.o                               \
+       $(ABASE)-trace.o                                \
        $(ABASE)-mouse.o                                \
        $(ABASE)-panels.o                               \
        $(ABASE)-menus.o                                \
@@ -159,40 +170,44 @@ GENOBJS=$(ABASE)-menus-menu_user_data.o                   \
        $(ABASE)-text_io-complex_io.o
 
 
-all ::  libAdaCurses.a
+all ::  $(LIBRARY_FILE)
        @echo done
 
-libAdaCurses.a :: dotouch $(LIBOBJS) @cf_generic_objects@
-       $(AR) $(AR_OPTS) $@ $(LIBOBJS) @cf_generic_objects@
-
-dotouch :
-       @sh -c 'for f in $(LIBALIS) $(GENALIS); do test -f $$f || touch $$f; done'
+$(LIBRARY_FILE) :: $(LIBOBJS) @cf_generic_objects@
+       $(AR) $(ARFLAGS) $@ $(LIBOBJS) @cf_generic_objects@
 
 sources :
-       @
+       @echo made $@
 
 libs \
 install \
-install.libs \
+install.libs :: $(LIBRARY_FILE)
+       @echo made $(LIBRARY_FILE)
+
+install \
+install.libs :: $(LIBRARY_FILE)
+       @$(top_srcdir)/tar-copy.sh $(LIBRARY_FILE) . $(ADA_OBJECTS)
+       @echo made $@
+
 uninstall \
 uninstall.libs ::
-       @
+       @echo made $@
 
 generics: $(GENALIS)
-       @
+       @echo made $@
 
 mostlyclean ::
        rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
 
 clean :: mostlyclean
-       rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS)
+       rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS) $(ABASE)-trace.adb
 
 distclean :: clean
        rm -f Makefile
 
 realclean :: distclean
 
-BASEDEPS=$(ABASE).ads $(srcdir)/$(ABASE)-aux.ads $(srcdir)/$(ABASE).adb
+BASEDEPS=$(ABASE).ads $(ABASE)-aux.ads $(ABASE).adb
 
 $(ALIB).o: $(srcdir)/$(ALIB).ads
        $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
@@ -202,8 +217,36 @@ $(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
        $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
 
 
-$(ABASE).o: $(srcdir)/$(ABASE).adb $(BASEDEPS)
-       $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE).adb
+$(ABASE).o: $(ABASE).adb $(BASEDEPS)
+       $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE).adb
+
+
+$(ABASE)-terminfo.o: \
+               $(srcdir)/$(ABASE)-terminfo.ads \
+               $(srcdir)/$(ABASE)-terminfo.adb $(BASEDEPS)
+       $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-terminfo.adb
+
+
+$(ABASE)-termcap.o: \
+               $(srcdir)/$(ABASE)-termcap.ads \
+               $(srcdir)/$(ABASE)-termcap.adb $(BASEDEPS)
+       $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-termcap.adb
+
+
+$(ABASE)-putwin.o: \
+               $(srcdir)/$(ABASE)-putwin.ads \
+               $(srcdir)/$(ABASE)-putwin.adb $(BASEDEPS)
+       $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-putwin.adb
+
+
+$(ABASE)-trace.adb : $(srcdir)/$(ABASE)-trace.adb_p
+       rm -f $@
+       $(ADAPREP) -DADA_TRACE=@ADA_TRACE@ -DPRAGMA_UNREF=@PRAGMA_UNREF@ $(srcdir)/$(ABASE)-trace.adb_p $@
+
+$(ABASE)-trace.o: \
+               $(ABASE)-trace.ads \
+               $(ABASE)-trace.adb $(BASEDEPS)
+       $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE)-trace.adb
 
 
 $(ABASE)-mouse.o: \