#* --------------------------------------------------------------------*/
#*    Copyright (c) 1992-1998 by Manuel Serrano. All rights reserved.  */
#*                                                                     */
#*                                     ,--^,                           */
#*                               _ ___/ /|/                            */
#*                           ,;'( )__, ) '                             */
#*                          ;;  //   L__.                              */
#*                          '   \   /  '                               */
#*                               ^   ^                                 */
#*                                                                     */
#*                                                                     */
#*    This program is distributed in the hope that it will be useful.  */
#*    Use and copying of this software and preparation of derivative   */
#*    works based upon this software are permitted, so long as the     */
#*    following conditions are met:                                    */
#*           o credit to the authors is acknowledged following         */
#*             current academic behaviour                              */
#*           o no fees or compensation are charged for use, copies,    */
#*             or access to this software                              */
#*           o this copyright notice is included intact.               */
#*      This software is made available AS IS, and no warranty is made */
#*      about the software or its performance.                         */
#*                                                                     */
#*      Bug descriptions, use reports, comments or suggestions are     */
#*      welcome. Send them to                                          */
#*        Manuel Serrano -- Manuel.Serrano@unice.fr                    */
#*-------------------------------------------------------------------- */
#*=====================================================================*/
#*    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
