0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/db/makefile

50 lines
1.4 KiB
Makefile
Raw Normal View History

2007-10-20 01:35:48 +02:00
# makefile for our db project
FLAGS= ${CFLAGS} -fPIC -ggdb -pthread -O0 -I .. -Isrc/p -I/src/p/db -L/usr/local/lib -L/usr/lib
2007-10-29 04:04:25 +01:00
LIB_DEPS = -lpcrecpp -lpcre
2008-03-18 16:22:06 +01:00
LIBS= $(LIB_DEPS) -lboost_thread -lboost_filesystem
2007-11-04 19:11:38 +01:00
2008-03-14 23:24:48 +01:00
JVM_LIBS = -L/opt/java/lib/
2007-10-20 01:35:48 +02:00
2008-03-18 16:22:06 +01:00
OBJS=../stdafx.o ../util/sock.o ../grid/message.o ../util/mmap.o pdfile.o query.o jsobj.o introspect.o btree.o clientcursor.o ../util/util.o javajs.o
2007-12-08 21:50:47 +01:00
# ../grid/protorecv.o ../grid/protosend.o
2007-10-20 01:35:48 +02:00
include makefile.$(shell uname -s).$(shell uname -m)
2008-03-14 23:24:48 +01:00
2007-10-20 01:35:48 +02:00
.cpp.o:
g++ -c $(FLAGS) $< -o $@
# Our convention is that passing 'quicktest' on the command line means run
# fast regressions and then immediately exit. That way you know immediately if you
# broke something horribly.
2008-03-14 23:24:48 +01:00
db: $(OBJS) db.o $(LIB_DEPS)
2008-03-18 16:22:06 +01:00
g++ $(FLAGS) -o $@ $(OBJS) db.o $(LIBS) $(JVM_LIBS)
2007-11-05 20:44:26 +01:00
# -./db quicktest
2007-10-20 01:35:48 +02:00
2008-03-20 01:56:35 +01:00
javatest: javatest.o $(OBJS) $(LIB_DEPS)
g++ $(FLAGS) -o $@ javatest.o $(OBJS) $(LIBS) $(JVM_LIBS)
javatest2: javatest.o javajs.o $(LIB_DEPS)
g++ $(FLAGS) -o javatest2 javatest.o javajs.o $(LIBS) $(JVM_LIBS)
2008-03-14 23:24:48 +01:00
2007-10-20 01:35:48 +02:00
clean:
-rm -f $(OBJS) db.o
-rm -f db
2008-03-20 01:56:35 +01:00
-rm -f *.o
2007-10-30 16:35:17 +01:00
cleandb:
2007-11-04 19:11:38 +01:00
rm /data/db/*
/usr/local/lib/libpcrecpp.a:
2007-11-04 19:14:02 +01:00
cat pcre.txt
2007-11-04 22:42:34 +01:00
pcre:
curl -O ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.4.tar.gz
tar -xzf pcre-7.4.tar.gz
cd pcre-7.4 && ./configure --enable-utf8 --with-match-limit=200000 --with-match-limit-recursion=4000 && make && make install