ncurses 6.1 - patch 20190907
[ncurses.git] / Ada95 / src / Makefile.in
index 557c8a51de10a72ce46af70c7b5bb7c938540446..bdfe0a81e5e78e51211da3b36c0ed779f64fd730 100644 (file)
@@ -1,5 +1,5 @@
 ##############################################################################
-# Copyright (c) 1998-2015,2016 Free Software Foundation, Inc.                #
+# Copyright (c) 1998-2018,2019 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"), #
@@ -28,7 +28,7 @@
 #
 #  Author:  Juergen Pfeifer, 1996
 #
-#  $Id: Makefile.in,v 1.73 2016/09/18 00:25:32 tom Exp $
+#  $Id: Makefile.in,v 1.87 2019/09/07 20:53:06 tom Exp $
 #
 .SUFFIXES:
 
@@ -54,7 +54,7 @@ LIBDIR                = $(DESTDIR)$(libdir)
 ADA_INCLUDE    = $(DESTDIR)@ADA_INCLUDE@
 ADA_OBJECTS    = $(DESTDIR)@ADA_OBJECTS@
 
-INSTALL                = @INSTALL@
+INSTALL                = @INSTALL@ @INSTALL_OPT_O@
 INSTALL_LIB    = @INSTALL@ @INSTALL_LIB@
 
 AR             = @AR@
@@ -83,14 +83,14 @@ LDFLAGS             = @LDFLAGS@ @LD_MODEL@ @LIBS@
 RANLIB         = @RANLIB@
 
 ################################################################################
-ADA             = @cf_ada_compiler@
+ADA            = @cf_ada_compiler@
 ADAPREP                = gnatprep
-ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
+ADAFLAGS       = @ADAFLAGS@ -I. -I$(srcdir)
 
-LIB_NAME       = AdaCurses
+LIB_NAME       = @ADA_LIBNAME@
 SONAME         = @ADA_SHAREDLIB@
 
-GNAT_PROJECT   = AdaCurses.gpr
+GNAT_PROJECT   = @ADA_LIBNAME@.gpr
 
 # build/source are the Ada95 tree
 BUILD_DIR      = ..
@@ -99,8 +99,8 @@ SOURCE_DIR    = ..
 BUILD_DIR_LIB  = $(BUILD_DIR)/lib
 SOURCE_DIR_SRC = $(SOURCE_DIR)/src
 
-ADAMAKE         = @cf_ada_make@
-ADAMAKEFLAGS    = \
+ADAMAKE                = @cf_ada_make@
+ADAMAKEFLAGS   = \
        -P$(GNAT_PROJECT) \
        -XBUILD_DIR=`cd $(BUILD_DIR);pwd` \
        -XSOURCE_DIR=`cd $(SOURCE_DIR);pwd` \
@@ -213,7 +213,7 @@ clean :: mostlyclean
        rm -f $(ABASE)-trace.adb
 
 distclean :: clean
-       rm -f Makefile
+       rm -f Makefile library.gpr
 
 realclean :: distclean
 
@@ -270,7 +270,11 @@ STATIC_DIRS = \
 @USE_GNAT_PROJECTS@            $(ABASE)-trace.adb \
 @USE_GNAT_PROJECTS@            $(STATIC_C_OBJS) \
 @USE_GNAT_PROJECTS@            $(STATIC_DIRS)
-@USE_GNAT_PROJECTS@    $(SHELL) $(srcdir)/library-cfg.sh $(srcdir)/library.gpr $(CFLAGS_NORMAL) >$(GNAT_PROJECT)
+@USE_GNAT_PROJECTS@    @cf_ada_config@gprconfig --batch --config=Ada --config=C,,,,@cf_ada_config_C@
+@USE_GNAT_PROJECTS@    -rm -f $(GNAT_PROJECT)
+@USE_GNAT_PROJECTS@    $(SHELL) $(srcdir)/library-cfg.sh static $(srcdir)/library.gpr $(CFLAGS_NORMAL) >$(GNAT_PROJECT)
+@USE_GNAT_PROJECTS@    @echo "Using GNAT Project:"
+@USE_GNAT_PROJECTS@    @-$(SHELL) -c "diff -u $(srcdir)/library.gpr $(GNAT_PROJECT); exit 0"
 @USE_GNAT_PROJECTS@    $(ADAMAKE) $(ADAMAKEFLAGS) -XLIB_KIND=static
 @USE_GNAT_PROJECTS@    $(AR) $(ARFLAGS) $@ $(STATIC_C_OBJS)
 @USE_GNAT_PROJECTS@    -rm -f $(GNAT_PROJECT)
@@ -304,7 +308,11 @@ SHARED_DIRS = \
 @MAKE_ADA_SHAREDLIB@           $(SHARED_DIRS) \
 @MAKE_ADA_SHAREDLIB@           $(SHARED_OBJS)
 @MAKE_ADA_SHAREDLIB@   cp $(SHARED_OBJS) $(BUILD_DIR)/dynamic-obj/
-@MAKE_ADA_SHAREDLIB@   $(SHELL) $(srcdir)/library-cfg.sh $(srcdir)/library.gpr $(CFLAGS_SHARED) >$(GNAT_PROJECT)
+@MAKE_ADA_SHAREDLIB@   @cf_ada_config@gprconfig --batch --config=Ada --config=C,,,,@cf_ada_config_C@
+@MAKE_ADA_SHAREDLIB@   -rm -f $(GNAT_PROJECT)
+@MAKE_ADA_SHAREDLIB@   $(SHELL) $(srcdir)/library-cfg.sh dynamic $(srcdir)/library.gpr $(CFLAGS_SHARED) >$(GNAT_PROJECT)
+@MAKE_ADA_SHAREDLIB@   @echo "Making Ada shared-lib:"
+@MAKE_ADA_SHAREDLIB@   @-$(SHELL) -c "diff -u $(srcdir)/library.gpr $(GNAT_PROJECT); exit 0"
 @MAKE_ADA_SHAREDLIB@   $(ADAMAKE) $(ADAMAKEFLAGS) -XLIB_KIND=dynamic
 @MAKE_ADA_SHAREDLIB@   -rm -f $(GNAT_PROJECT)
 
@@ -344,6 +352,7 @@ uninstall.libs ::
 @MAKE_ADA_SHAREDLIB@   rm -f $(LIBDIR)/$(SHARED_LIBNAME)
 
 clean ::
-       rm -rf $(BUILD_DIR)/*-ali
-       rm -rf $(BUILD_DIR)/*-obj
-       rm -rf $(BUILD_DIR_LIB)
+       -rm -f default.cgpr
+       -rm -rf $(BUILD_DIR)/*-ali
+       -rm -rf $(BUILD_DIR)/*-obj
+       -rm -rf $(BUILD_DIR_LIB)