############################################################################
#** interpcom-1.2  (command interpreter)                                  **
#** makefile for the application funct_graph of 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 CFLAGS
export MAKE
export CC

CC = gcc
CFLAGS = -Wall
all :  funct_graph 

funct_graph : main.o names.o funct_graphcmd.o ../lib2/libgraph.a ../lib1/libfunct.a ../cephes/libcephes.a
	$(CC) main.o names.o funct_graphcmd.o ../lib2/libgraph.a ../lib1/libfunct.a \
../cephes/libcephes.a ../../libinter.a -L/usr/X11R6/lib -lX11 -lg2 -lm \
-o funct_graph

../lib2/libgraph.a:
	cd ../lib2; make libgraph.a
	
main.o : main.c
	$(CC) main.c -c $(CFLAGS) -I../.. -I../lib2 -I../lib1 -o main.o

names.o : names.c
	$(CC) names.c -c $(CFLAGS) -I../.. -I../lib2 -I../lib1 -o names.o

funct_graphcmd.o : funct_graphcmd.c
	$(CC) funct_graphcmd.c -c $(CFLAGS) -I../.. -I../lib2 -I../lib1 -o funct_graphcmd.o

clean-all :
	rm -f funct_graph *.a *.o *bck *%

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

dyn : main.o names.o funct_graphcmd.o ../lib2/libgraph.a ../lib1/libfunct.a ../cephes/libcephes.a
	$(CC) main.o names.o funct_graphcmd.o ../lib2/libgraph.a ../lib1/libfunct.a \
../cephes/libcephes.a -linter -L/usr/X11R6/lib -lX11 -lg2 -lm \
-o funct_graph
