# Makefile for Guile.  Used by all of the example programs
#

GUILE_INCLUDE  = $(shell guile-config compile)
GUILE_LIB      = 

LFLAGS      = $(shell guile-config link)
WRAP        = $(IFILE:.i=_wrap.c)

all::	
	swig -guile $(IFILE)
	$(CC) $(SRCS) $(WRAP) $(GUILE_INCLUDE) $(GUILE_LIB) $(LFLAGS) -o $(TARGET)

clean::
	cd simple; make clean
	cd matrix; make clean
	rm -f *~ .~* 

