-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake_gtk.sh
45 lines (41 loc) · 1.17 KB
/
make_gtk.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
41
42
43
44
45
#!/bin/sh
#
# $Id: make_gtk.sh 1623 2011-04-02 07:34:40Z druzus $
#
# ---------------------------------------------------------------
# simple script to build HWGui GTK binaries using [x]hb*scripts
# to hide platform differences
# By default they looks for native Harbour then xHarbour scripts
# It's possible to force build type using as 1-st parametr:
# -hb # Harbour platform native binaries
# -xhb # xHarbour platform native binaries
#
# Copyright 2007 by Przemyslaw Czerpak (druzus/at/priv.onet.pl)
#
# ---------------------------------------------------------------
case "$1" in
-hb|-xhb)
export HB_PREF=${1#-}
shift
;;
*)
;;
esac
if [ -z "${HB_PREF}" ]
then
if which hbcmp &> /dev/null && [ -x "`which hbcmp 2>/dev/null`" ]
then
# create Harbour platform native libraries
export HB_PREF=hb
elif which xhbcmp &> /dev/null && [ -x "`which xhbcmp 2>/dev/null`" ]
then
# create Harbour platform native libraries
export HB_PREF=xhb
else
echo "Cannot find Harbour or xHarbour build scripts."
exit 1
fi
fi
cd `dirname $0`/gtk
mkdir -p obj lib
make -fMakefile.scr $*