PageRenderTime 318ms CodeModel.GetById 161ms app.highlight 11ms RepoModel.GetById 140ms app.codeStats 1ms

/make

http://github.com/nddrylliog/oc
#! | 35 lines | 26 code | 9 blank | 0 comment | 0 complexity | 9dc1ff3b8abb44cb8963da850d967af6 MD5 | raw file
 1#!/bin/bash
 2mkdir -p bin .libs plugins
 3
 4if [[ ! -e $PREFIX ]]; then
 5    export PREFIX=$PWD/prefix
 6    mkdir -p $PREFIX
 7fi
 8
 9if [[ ! -e $LIBDIR ]]; then
10    export LIBDIR=$PREFIX/lib
11    mkdir -p $LIBDIR
12fi
13
14echo Library directory is $LIBDIR
15
16export OOC_LIBS=..
17OOC_FLAGS="-v -g -nolines +-rdynamic"
18
19echo "Compiling sdk"
20if [[ ! -e $ROCK_DIST ]]; then
21    ROCK_DIST=../rock
22fi
23
24#FIXME: *nix-specific (.so)
25rock $OOC_FLAGS -libfolder=$ROCK_DIST/sdk -dynamiclib=$LIBDIR/librock-sdk.so || exit 1
26
27echo "Compiling oc (core)"
28BUILD_DATE="\"$(date '+%Y-%m-%d at %H:%M')\""
29rock $OOC_FLAGS -libfolder=source/core -dynamiclib=$LIBDIR/liboc-core.so +-DBUILD_DATE="$(BUILD_DATE)" || exit 2
30
31echo "Compiling oc (launcher)"
32rock $OOC_FLAGS -sourcepath=source -packagefilter=launcher launcher/main -L$LIBDIR -gc=dynamic -lrock-sdk -loc-core -lnagaqueen -o=bin/oc $OOC_FLAGS || exit 3
33
34echo "Compiling pseudo backend"
35rock $OOC_FLAGS -libfolder=source/pseudo-backend -dynamiclib=plugins/pseudo_backend.so || exit 4