File: compile.sh

package info (click to toggle)
whitedb 0.7.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,452 kB
  • ctags: 2,681
  • sloc: ansic: 31,714; python: 790; lex: 359; java: 277; makefile: 172; yacc: 138; sh: 87; sed: 36
file content (24 lines) | stat: -rwxr-xr-x 1,096 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#/bin/sh

# alternative to compiling dserve and dservehttps with automake/make: 
# just run it in the Server folder

# copy config.h to the current folder
[ -f config.h ] || cp ../config-gcc.h config.h
if [ ../config-gcc.h -nt ../config.h ]; then
  echo "Warning: config.h is older than config-gcc.h, consider updating it"
fi
# compile dserve
gcc  -O2 -Wall -o dserve dserve.c dserve_util.c dserve_net.c \
  ../Db/dbmem.c ../Db/dballoc.c ../Db/dbdata.c \
  ../Db/dblock.c ../Db/dbindex.c ../Db/dbtest.c ../Db/dbdump.c  \
  ../Db/dblog.c ../Db/dbhash.c ../Db/dbcompare.c ../Db/dbquery.c ../Db/dbutil.c ../Db/dbmpool.c \
  ../Db/dbjson.c ../Db/dbschema.c ../json/yajl_all.c \
  -lm -lpthread
# compile dservehttps  
gcc  -O2 -Wall  -DUSE_OPENSSL -o dservehttps dserve.c dserve_util.c dserve_net.c \
  ../Db/dbmem.c ../Db/dballoc.c ../Db/dbdata.c \
  ../Db/dblock.c ../Db/dbindex.c ../Db/dbtest.c ../Db/dbdump.c  \
  ../Db/dblog.c ../Db/dbhash.c ../Db/dbcompare.c ../Db/dbquery.c ../Db/dbutil.c ../Db/dbmpool.c \
  ../Db/dbjson.c ../Db/dbschema.c ../json/yajl_all.c \
  -lm -lpthread -lssl -lcrypto