version 1.8, 2003/11/15 09:06:20 |
version 1.9, 2003/11/17 12:04:20 |
|
|
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.7 2003/11/14 03:20:07 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_ntl/Makefile,v 1.8 2003/11/15 09:06:20 iwane Exp $ |
# |
# |
# |
# |
# |
# |
Line 52 $(PROG): $(OBJC) $(LIBDIR)/libox.a $(NTL_LIBDIR)/libnt |
|
Line 52 $(PROG): $(OBJC) $(LIBDIR)/libox.a $(NTL_LIBDIR)/libnt |
|
$(CPP) $(CPPFLAGS) -L$(LIBDIR) -L$(NTL_LIBDIR) $(OBJC) -o $@ -lntl -lgmp -lox -lgc ${LIBS} |
$(CPP) $(CPPFLAGS) -L$(LIBDIR) -L$(NTL_LIBDIR) $(OBJC) -o $@ -lntl -lgmp -lox -lgc ${LIBS} |
|
|
|
|
ox_ntl_debug: ntl.cpp ntl.h oxstack.o |
|
$(CPP) $(CPPFLAGS) -g -D__NTL_DEBUG=1 -L/usr/local/lib -L$(LIBDIR) -L$(NTL_LIBDIR) ntl.cpp ntlconv.o oxstack.o -o $@ -lntl -lgmp -lox -lgc |
|
|
|
oxserv_debug: oxserv.h oxserv.c |
|
$(CC) $(CFLAGS) -g -D__OXSERV_DEBUG=1 -L$(LIBDIR) oxserv.c oxstack.o -o $@ -lox -lgc |
|
|
|
oxserv.c: oxserv.h oxstack.h |
oxserv.c: oxserv.h oxstack.h |
|
|
oxstack.c: oxstack.h |
oxstack.c: oxstack.h |
|
|
main.cpp: oxserv.h ntl.h oxstack.h |
main.cpp: oxserv.h ntl.h oxstack.h |
|
|
|
cmon.cpp: ntl.h |
|
|
ntl.cpp: ntl.h |
ntl.cpp: ntl.h |
|
|
|
ntlconv.cpp: ntl.h |
|
|
.cpp.o: |
.cpp.o: |
$(CPP) $(CPPFLAGS) $(DEFS) -c $< -o $@ |
$(CPP) $(CPPFLAGS) $(DEFS) -c $< -o $@ |
|
|
|
|
clean: |
clean: |
-$(RM) -f $(OBJC) $(PROG) ox_ntl_debug oxserv_debug |
-$(RM) -f $(OBJC) $(PROG) ox_ntl_debug oxserv_debug |
-$(RM) -fr ${WORK} |
-$(RM) -fr ${WORK} |
@-$(RM) -f .*-ntl-done |
|
|
|
|
distclean: |
|
-$(RM) -f .*-ntl-done |
|
|
|
|
fetch-ntl: |
fetch-ntl: |
@if [ ! -f .fetch-ntl-done ]; then \ |
@if [ ! -f .fetch-ntl-done ]; then \ |
${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/1.2.2/${DISTFILE} ${DISTDIR}; \ |
${OpenXM_HOME}/bin/oxfetch.sh ftp://${MASTER_CITES}/pub/OpenXM/misc/1.2.2/${DISTFILE} ${DISTDIR}; \ |
Line 105 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}; |
./configure LIBDIR=${NTL_LIBDIR} PREFIX=${PREFIX} ${GMPOPT}; \ |
make); \ |
make); \ |
touch .build-ntl-done; \ |
touch .build-ntl-done; \ |
fi |
fi |
Line 115 install-ntl: build-ntl |
|
Line 115 install-ntl: build-ntl |
|
(cd ${WORK}/${DISTFILEDIR}/src; make install); \ |
(cd ${WORK}/${DISTFILEDIR}/src; make install); \ |
touch .install-ntl-done; \ |
touch .install-ntl-done; \ |
fi |
fi |
|
|
|
######################################### |
|
# DEBUG |
|
######################################### |
|
ox_ntl_debug: ntl.cpp ntl.h ntlconv.cpp oxserv.h |
|
$(CPP) $(CPPFLAGS) -g -D__NTL_DEBUG=1 -L/usr/local/lib -L$(LIBDIR) -L$(NTL_LIBDIR) $(DEFS) ntl.cpp ntlconv.o cmon.o oxserv.o oxstack.o -o $@ -lntl -lgmp -lox -lgc |
|
|
|
oxserv_debug: oxserv.h oxserv.c |
|
$(CC) $(CFLAGS) -g -D__OXSERV_DEBUG=1 -L$(LIBDIR) $(DEFS) oxserv.c oxstack.o -o $@ -lgmp -lox -lgc |
|
|
|
|