Switch to unified view

a/src/lib/mkMake b/src/lib/mkMake
1
#!/bin/sh
1
#!/bin/sh
2
2
3
mk=Makefile
3
mk=Makefile
4
depth=${depth:-..}
4
depth=${depth:-..}
5
sys=`uname`
5
6
6
SRC_CPP="\
7
SRC_CPP="\
7
${depth}/aspell/rclaspell.cpp \
8
${depth}/aspell/rclaspell.cpp \
8
${depth}/common/beaglequeuecache.cpp \
9
${depth}/common/beaglequeuecache.cpp \
9
${depth}/common/cstr.cpp \
10
${depth}/common/cstr.cpp \
...
...
108
# changed by a re-configure (it has the local compile flags)
109
# changed by a re-configure (it has the local compile flags)
109
defs=\$\(depth\)/mk/localdefs
110
defs=\$\(depth\)/mk/localdefs
110
111
111
test -f $mk && chmod +w $mk
112
test -f $mk && chmod +w $mk
112
113
114
if test $sys = "Darwin";then
115
  NODYNLIB='#'
116
fi
117
  
113
cat > $mk <<EOF
118
cat > $mk <<EOF
114
# DONT EDIT BY HAND: created by script mkMake
119
# DONT EDIT BY HAND: created by script mkMake
115
depth = ${depth}
120
depth = ${depth}
116
include \$(depth)/mk/sysconf
121
include \$(depth)/mk/sysconf
117
122
118
LIBRECOLL=librecoll.so.\$(RCLLIBVERSION)
123
LIBRECOLL=librecoll.so.\$(RCLLIBVERSION)
124
LIBS = librecoll.a
119
LIBS = librecoll.a \$(LIBRECOLL)
125
${NODYNLIB}LIBS = librecoll.a \$(LIBRECOLL)
120
126
121
all: \$(LIBS) 
127
all: \$(LIBS) 
122
128
123
OBJS = $OBJS
129
OBJS = $OBJS
124
DEPS = $DEPS
130
DEPS = $DEPS