#*---------------------------------------------------------------------*/
#*   A pratical implementation for the Scheme programming language     */
#*                                                                     */
#*                                    ,--^,                            */
#*                              _ ___/ /|/                             */
#*                          ,;'( )__, ) '                              */
#*                         ;;  //   L__.                               */
#*                         '   \\   /  '                               */
#*                              ^   ^                                  */
#*                                                                     */
#*   Copyright (c) 1992-1999 Manuel Serrano                            */
#*                                                                     */
#*     Bug descriptions, use reports, comments or suggestions are      */
#*     welcome. Send them to                                           */
#*       bigloo-request@kaolin.unice.fr                                */
#*       http://kaolin.unice.fr/bigloo                                 */
#*                                                                     */
#*   This program is free software; you can redistribute it            */
#*   and/or modify it under the terms of the GNU General Public        */
#*   License as published by the Free Software Foundation; either      */
#*   version 2 of the License, or (at your option) any later version.  */
#*                                                                     */
#*   This program is distributed in the hope that it will be useful,   */
#*   but WITHOUT 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 along with this program; if not, write to the Free        */
#*   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,   */
#*   MA 02111-1307, USA.                                               */
#*---------------------------------------------------------------------*/
#*=====================================================================*/
#*    serrano/prgm/project/bigloo/cigloo0.4/Example/Makefile           */
#*    -------------------------------------------------------------    */
#*    Author      :  Manuel Serrano                                    */
#*    Creation    :  Tue Dec  5 10:30:51 1995                          */
#*    Last change :  Wed Oct 22 07:48:00 1997 (serrano)                */
#*    -------------------------------------------------------------    */
#*    The `example' Makefile                                           */
#*=====================================================================*/

#*---------------------------------------------------------------------*/
#*    The flags                                                        */
#*---------------------------------------------------------------------*/
CC              = gcc
BIGLOO          = bigloo
CIGLOO		= cigloo
CIFLAGS		= -open-includes 
SHELL           = /bin/sh
BFLAGS          = -O3 -cg
CFLAGS		= -w

#*---------------------------------------------------------------------*/
#*    all                                                              */
#*---------------------------------------------------------------------*/
all: b-file.o c-file.o
	$(BIGLOO) $(BFLAGS) b-file.o c-file.o -o ctest

#*---------------------------------------------------------------------*/
#*    Clean                                                            */
#*---------------------------------------------------------------------*/
clean: 
	@- \rm -f b-file.c ex ctest
	@- \rm -f *.o
	@- \rm -f *.sch 
	@- \rm -f *~

#*---------------------------------------------------------------------*/
#*    c-file.o                                                         */
#*---------------------------------------------------------------------*/
c-file.o: c-file.c c-file.h
	$(CC) $(CFLAGS) c-file.c -c

#*---------------------------------------------------------------------*/
#*    b-file.o                                                         */
#*---------------------------------------------------------------------*/
b-file.o: b-file.scm b-file.sch
	$(BIGLOO) $(BFLAGS) b-file.scm -c

#*---------------------------------------------------------------------*/
#*    b-file.sch                                                       */
#*---------------------------------------------------------------------*/
b-file.sch: c-file.c c-file.h
	$(CIGLOO) $(CIFLAGS) c-file.c -o b-file.sch
