version 1.4, 2005/07/20 13:02:23 |
version 1.6, 2013/10/18 01:33:08 |
|
|
# $OpenXM: OpenXM/src/ox_maple/Makefile,v 1.3 2004/07/02 13:10:43 takayama Exp $ |
# $OpenXM: OpenXM/src/ox_maple/Makefile,v 1.5 2008/09/19 13:01:05 iwane Exp $ |
all: libsimple.so libsimple2.so |
|
|
|
|
PROG=ox_maple |
|
|
|
CC = gcc |
|
RM ?= /bin/rm |
|
MAKE ?= make |
|
|
|
|
|
CFLAGS += -Wall -g -O2 -I$(OpenXM_HOME)/include -I$(OpenXM_HOME)/src/ox_ntl -I$(MAPLE)/extern/include |
|
|
|
|
|
LIBS_MPL= -L$(MAPLE)/bin.IBM_INTEL_LINUX -lmaplec -Wl,--no-as-needed -lrt |
|
LIBS= -loxsv -lox -lgmp -lgc |
|
LDFLAGS= -L$(OpenXM_HOME)/lib |
|
|
|
|
|
DEFS += -D__GMP_FALE_H__ |
|
|
|
.SUFFIXES: .o .c |
|
|
|
SRCC= m2c.c c2m.c oxmaples.c |
|
|
|
OBJC = $(SRCC:.c=.o) |
|
|
|
all:: $(PROG) libsimple.so libsimple2.so |
|
|
|
$(PROG): $(OBJC) main.o $(OpenXM_HOME)/lib/liboxsv.so |
|
$(CC) $(OBJC) main.o -o $@ $(LIBS_MPL) $(LDFLAGS) $(LIBS) |
|
|
|
$(OpenXM_HOME)/lib/liboxsv.so: |
|
(cd ../ox_ntl; make liboxsv.so && make install_lib) |
|
|
|
.c.o: |
|
$(CC) $(CFLAGS) -c $< $(DEFS) |
|
|
|
clean: |
|
-$(RM) -f $(OBJC) main.o local.o |
|
-$(RM) -f $(PROG) |
|
-$(RM) -f simple.o simple2.o libsimple.so libsimple2.so |
|
|
|
|
|
#---------------------------------------------- |
libsimple.so: simple.c |
libsimple.so: simple.c |
gcc -fpic -fPIC -I../../include -c simple.c |
gcc -fpic -fPIC -I../../include -c simple.c |
gcc -shared -Wl,-soname,libsimple.so -o libsimple.so simple.o -L../../lib -lox -lgmp -lgc |
gcc -shared -Wl,-soname,libsimple.so -o libsimple.so simple.o -L../../lib -lox -lgmp -lgc |
Line 9 libsimple2.so: simple2.c |
|
Line 49 libsimple2.so: simple2.c |
|
gcc -fpic -fPIC -I../../include -c simple2.c |
gcc -fpic -fPIC -I../../include -c simple2.c |
gcc -shared -Wl,-soname,libsimple2.so -o libsimple2.so simple2.o -L../../lib -lox -lgmp -lgc |
gcc -shared -Wl,-soname,libsimple2.so -o libsimple2.so simple2.o -L../../lib -lox -lgmp -lgc |
|
|
clean: |
|
rm -f *~ *.o libsimple.so libsimple2.so |
|
rm -f mwrap_* |
|