############################################################################
#** interpcom-1.2  (mini-command interpreter)                             **
#** A test program for the interpcom library                              **
#**                                                                       **
#** Copyright (C) 1999  Jean-Marc Drezet                                  **
#**                                                                       **
#**  This library is free software; you can redistribute it and/or        **
#**  modify it under the terms of the GNU Library General Public          **
#**  License as published by the Free Software Foundation; either         **
#**  version 2 of the License, or (at your option) any later version.     **
#**									  **
#**  This library 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    **
#**  Library General Public License for more details. 			  **
#**									  **
#**  You should have received a copy of the GNU Library General Public    **
#**  License along with this library; if not, write to the Free		  **
#**  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   **
#**                                                                       **
#** Please mail any bug reports/fixes/enhancements to me at:              **
#**      drezet@math.jussieu.fr                                           **
#** or                                                                    **
#**      Jean-Marc Drezet                                                 **
#**      Institut de Mathematiques                                        **
#**      Aile 45-55                                                       **
#**      2, place Jussieu                                                 **
#**      75251 Paris Cedex 05                                             **
#**      France			 					  **
#**                                                                       **
############################################################################

export MAKE

all : test_

test_ : ../libinter.a main.o int_ini.o
	$(CC) *.o ../libinter.a -lm -o test_

int_ini.c : ../convert/convert
	../convert/convert ./interp.ini ./int_ini.c int_txt int_nb

../convert/convert :
	cd ../convert; $(MAKE)

main.o : main.c
	$(CC) -c main.c $(CFLAGS) -I.. -o main.o

int_ini.o : int_ini.c
	$(CC) -c int_ini.c $(CFLAGS) -I.. -o int_ini.o

clean-all :
	rm -f test_ *.o *bck *%

clean :
	rm -f *.o *bck *%
	
dyn : main.o int_ini.o
	$(CC) *.o -linter -lm -o test_

