## ----------------------------------------------------------------------------
##                                                                           --
##  Filename        : $Source: /cvsroot/gnade/gnade/contrib/objects/apps/Makefile,v $
##  Description     : Makefile for the odb package                           --
##  Author          : Michael Erdmann <Michael.Erdmann@snafu.de>             --
##  Created On      : 1-May-2002                                             --
##  Last Modified By: $Author: merdmann $                                    --
##  Last Modified On: $Date: 2007/01/14 15:54:37 $                           --
##  Version         : $Revision: 1.4 $				     --
##  Status          : $State: Exp $					     --
##                                                                           --
##  Copyright (C) 2006 Michael Erdmann                                       --
##                                                                           --
##  ODB is copyrighted by the persons and institutions enumerated in the     --
##  AUTHORS file. This file is located in the root directory of the          --
##  ODB distribution.                                                        --
##                                                                           --
##  ODB is free software; you can redistribute it and/or modify it under     --
##  terms of the  GNU General Public License as published  by the Free Soft- --
##  ware  Foundation;  either version 2,  or (at your option) any later ver- --
##  sion. ABE is distributed in the hope that it will be useful, but WITH-   --
##  OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
##  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
##  for  more details.  You should have  received  a copy of the GNU General --
##  Public License  distributed with GNAT;  see file COPYING.  If not, write --
##  to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
##  MA 02111-1307, USA.                                                      --
##                                                                           --
##  As a special exception,  if other files  instantiate  generics from      --
##  ODB Ada units, or you link ABE Ada units or libraries with other         --
##  files  to produce an executable, these  units or libraries do not by     --
##  itself cause the resulting  executable  to  be covered  by the  GNU      --
##  General  Public  License.  This exception does not however invalidate    --
##  any other reasons why  the executable file  might be covered by the      --
##  GNU Public License.                                                      --
##                                                                           --
##  Contact                                                                  --
##  =======                                                                  --
##  Error reports shall be handled via http://gnade.sourceforge.net          --
##                                                                           --
##  Author contact:                                                          --
##               purl:/net/michael.erdmann                                   --
##                                                                           --
## ----------------------------------------------------------------------------
##
##  Functional Description
##  ======================
##
##  THis is the top level makefile for the ODB package. It makes explicit usage
##  of the GNAT project file facility.
##

## all global targets
all ::  demo insert billing

dist:: all

install:: insert
	./insert test.inp

demo: demo.adb person_browser.ads person_browser.adb
	gnatmake -x -P./demo.gpr

insert: insert.adb
	gnatmake -x -P./insert.gpr

billing: billing.adb billing_run.ads billing_run.adb
	gnatmake -x -P./billing

## clean out local compilation results
clean ::
	$(RM) *~*

## Cleanup completly
distclean :: clean
	gnatclean -P./demo.gpr
	gnatclean -P./insert.gpr
	gnatclean -P./billing.gpr
	$(RM) *.ali *.o *.sql data.*
