-
Notifications
You must be signed in to change notification settings - Fork 59
/
librets-build-cygwin.sh
executable file
·40 lines (35 loc) · 1.47 KB
/
librets-build-cygwin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh
# This is a sample configuration script that I use on Cygwin for
# librets development. It can be customized for your own
# environment.
PATH="/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/bin:${JAVA_HOME}/bin:$PATH" \
AR="${AR}" \
CC="${CC}" \
CXX="${CXX}" \
CPPFLAGS="-I/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/include \
-L/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/lib" \
./configure --enable-default-search-path="/cygdrive/c/librets/vendor/mingw-${TARGET_CPU} /usr /usr/include" \
--enable-examples \
--enable-debug \
--enable-depends \
--with-java-prefix=${JAVA_HOME}/include \
--with-platform=${TARGET_CPU}
make clean
make _distwin_stage
if [ "${TARGET_CPU}" == "x86" ] ; then
PATH="/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/bin:${JAVA_HOME}/bin:$PATH" \
AR="${AR}" \
CC="${CC}" \
CXX="${CXX}" \
CPPFLAGS="-I/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/include \
-L/cygdrive/c/librets/vendor/mingw-${TARGET_CPU}/lib" \
./configure --enable-default-search-path="/cygdrive/c/librets/vendor/mingw-${TARGET_CPU} /usr /usr/include" \
--enable-examples \
--enable-debug \
--enable-depends \
--enable-thread-safe \
--with-java-prefix=${JAVA_HOME}/include \
--with-platform=${TARGET_CPU}
make clean
make _distwin_stage
fi