[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_maple

File: [local] / OpenXM / src / ox_maple / Makefile (download)

Revision 1.3, Fri Jul 2 13:10:43 2004 UTC (19 years, 10 months ago) by takayama
Branch: MAIN
CVS Tags: RELEASE_1_2_3
Changes since 1.2: +7 -3 lines

A sample implementation to call ox_asir from Maple.
Ctrl-C is handled by a heuristic way.
See comments in the source codes.

 Example:
   maple
   read `simple2.ml`;
   ox_start_asir();
   ox_execute_string("fctr(x^1000-y^1000");");
   ox_pop_string();
   ctrl-C      ===> ox_asir is restarted.
   ox_execute_string("1+2;");
   ox_pop_string();

# $OpenXM: OpenXM/src/ox_maple/Makefile,v 1.3 2004/07/02 13:10:43 takayama Exp $
all:   libsimple.so  libsimple2.so

libsimple.so: simple.c
	gcc -fpic -fPIC -I../../include -c simple.c
	gcc -shared -Wl,-soname,libsimple.so -o libsimple.so simple.o ../ox_toolkit/libox.so

libsimple2.so: simple2.c
	gcc -fpic -fPIC -I../../include -c simple2.c
	gcc -shared -Wl,-soname,libsimple2.so -o libsimple2.so simple2.o ../ox_toolkit/libox.so

clean:
	rm -f *~ *.o libsimple.so libsimple2.so
	rm -f mwrap_*