ncurses 5.6 - patch 20070915
[ncurses.git] / Ada95 / src / Makefile.in
index 46b232ad08a9da1e042e8a94ed8880613d3fc479..1c072bf607658d852e3977014fb04b5dcfe8313e 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 1998 Free Software Foundation, Inc.                          #
+# Copyright (c) 1998-2003,2004 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.19 $
+#  $Id: Makefile.in,v 1.31 2007/09/15 18:22:24 tom Exp $
 #
 .SUFFIXES:
 
@@ -37,13 +36,10 @@ SHELL               = /bin/sh
 THIS           = Makefile
 
 MODEL          = ../../@DFT_OBJ_SUBDIR@
+DESTDIR                = @DESTDIR@
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
-libdir         = @libdir@
-includedir     = @includedir@
-datadir                = @datadir@
-ticdir         = $(datadir)/terminfo
 ADA_INCLUDE    = @ADA_INCLUDE@
 
 INSTALL                = @INSTALL@
@@ -75,6 +71,7 @@ LDFLAGS               = @LDFLAGS@ @LD_MODEL@ @LIBS@
 RANLIB         = @RANLIB@
 ################################################################################
 ADA             = @cf_ada_compiler@
+ADAPREP                = gnatprep
 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
 
 ADAMAKE         = @cf_ada_make@
@@ -89,6 +86,10 @@ 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 +126,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                                \
@@ -169,28 +174,30 @@ dotouch :
        @sh -c 'for f in $(LIBALIS) $(GENALIS); do test -f $$f || touch $$f; done'
 
 sources :
-       @
+       @echo made $@
 
-install ::
-install.libs ::
-uninstall ::
+libs \
+install \
+install.libs \
+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
@@ -200,8 +207,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: \