version 1.7, 2003/11/14 03:20:07 |
version 1.8, 2003/11/15 09:06:20 |
|
|
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.6 2003/11/12 13:31:45 iwane Exp $ |
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.7 2003/11/14 03:20:07 ohara Exp $ |
# |
# |
# |
# |
# |
# |
|
|
RM =/bin/rm |
RM =/bin/rm |
CP =/bin/cp |
CP =/bin/cp |
|
|
CFLAGS=-I$(PREFIX)/include |
CFLAGS=-I$(PREFIX)/include -g |
CPPFLAGS=$(CFLAGS) |
CPPFLAGS=$(CFLAGS) |
|
|
|
# WITH_GMP <== for ox_toolkit -- include "gmp.h" |
|
# __GMP_FALE_H__ <== -- dont include "gmp_fake.h" |
|
DEFS=-DWITH_GMP=1 -D__GMP_FAKE_H__ |
|
|
PREFIX=$(OpenXM_HOME) |
PREFIX=$(OpenXM_HOME) |
|
|
MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
MASTER_CITES=ftp.math.sci.kobe-u.ac.jp |
Line 36 GMPOPT=NTL_GMP_LIP=on GMP_PREFIX=${OpenXM_HOME} GMP_IN |
|
Line 40 GMPOPT=NTL_GMP_LIP=on GMP_PREFIX=${OpenXM_HOME} GMP_IN |
|
.SUFFIXES: .cpp .o .c |
.SUFFIXES: .cpp .o .c |
|
|
SRCC=oxserv.c oxstack.c |
SRCC=oxserv.c oxstack.c |
SRCP=main.cpp ntl.cpp ntlconv.cpp |
SRCP=main.cpp ntl.cpp ntlconv.cpp cmon.cpp |
|
|
OBJC=$(SRCC:.c=.o) $(SRCP:.cpp=.o) |
OBJC=$(SRCC:.c=.o) $(SRCP:.cpp=.o) |
|
|
|
|
|
|
|
|
$(PROG): $(OBJC) $(LIBDIR)/libox.a $(NTL_LIBDIR)/libntl.a |
$(PROG): $(OBJC) $(LIBDIR)/libox.a $(NTL_LIBDIR)/libntl.a |
$(CPP) $(CPPFLAGS) -L$(LIBDIR) -L$(NTL_LIBDIR) $(OBJC) -o $@ -lntl -lgmp -lox -lgc |
$(CPP) $(CPPFLAGS) -L$(LIBDIR) -L$(NTL_LIBDIR) $(OBJC) -o $@ -lntl -lgmp -lox -lgc ${LIBS} |
|
|
|
|
ox_ntl_debug: ntl.cpp ntl.h oxstack.o |
ox_ntl_debug: ntl.cpp ntl.h oxstack.o |
Line 54 ox_ntl_debug: ntl.cpp ntl.h oxstack.o |
|
Line 58 ox_ntl_debug: ntl.cpp ntl.h oxstack.o |
|
oxserv_debug: oxserv.h oxserv.c |
oxserv_debug: oxserv.h oxserv.c |
$(CC) $(CFLAGS) -g -D__OXSERV_DEBUG=1 -L$(LIBDIR) oxserv.c oxstack.o -o $@ -lox -lgc |
$(CC) $(CFLAGS) -g -D__OXSERV_DEBUG=1 -L$(LIBDIR) oxserv.c oxstack.o -o $@ -lox -lgc |
|
|
cpp.exe: cpp.cpp |
|
$(CPP) $(CPPFLAGS) -g -L/usr/local/lib -L$(LIBDIR) -L$(NTL_LIBDIR) cpp.cpp -o $@ -lntl -lgmp -lox -lgc |
|
|
|
oxserv.c: oxserv.h oxstack.h |
oxserv.c: oxserv.h oxstack.h |
|
|
oxstack.c: oxstack.h |
oxstack.c: oxstack.h |
Line 66 main.cpp: oxserv.h ntl.h oxstack.h |
|
Line 67 main.cpp: oxserv.h ntl.h oxstack.h |
|
ntl.cpp: ntl.h |
ntl.cpp: ntl.h |
|
|
.cpp.o: |
.cpp.o: |
$(CPP) $(CPPFLAGS) -c $< -o $@ |
$(CPP) $(CPPFLAGS) $(DEFS) -c $< -o $@ |
|
|
.c.o: |
.c.o: |
$(CC) $(CFLAGS) -c $< -o $@ |
$(CC) $(CFLAGS) $(DEFS) -c $< -o $@ |
|
|
install: all |
install: all |
$(CP) $(PROG) $(PREFIX)/bin |
$(CP) $(PROG) $(PREFIX)/bin |
|
|
fi |
fi |
|
|
extract-ntl: fetch-ntl |
extract-ntl: fetch-ntl |
-mkdir work |
-mkdir ${WORK} |
@if [ ! -f .extract-ntl-done ]; then \ |
@if [ ! -f .extract-ntl-done ]; then \ |
(cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ |
(cd ${WORK}; tar xvzf ${DISTDIR}/${DISTFILE}); \ |
touch .extract-ntl-done; \ |
touch .extract-ntl-done; \ |
Line 104 build-ntl: patch-ntl |
|
Line 105 build-ntl: patch-ntl |
|
(cd ${WORK}/${DISTFILEDIR}/src; \ |
(cd ${WORK}/${DISTFILEDIR}/src; \ |
LD_LIBRARY_PATH=${OpenXM_HOME}/lib; \ |
LD_LIBRARY_PATH=${OpenXM_HOME}/lib; \ |
export LD_LIBRARY_PATH; \ |
export LD_LIBRARY_PATH; \ |
./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX} ${GMPOPT}; make); \ |
./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX} ${GMPOPT}; |
|
make); \ |
touch .build-ntl-done; \ |
touch .build-ntl-done; \ |
fi |
fi |
|
|