############################################################################
#** interpcom-1.2  (command interpreter)                                  **
#** A test program for the mini-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_ : ../libint_m.a main.o int_ini.o
	$(CC) main.o int_ini.o ../libint_m.a -lm -o test_


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

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

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

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

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

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

dyn : main.o int_ini.o
	$(CC) main.o int_ini.o -linter -lm -o test_
