-
Notifications
You must be signed in to change notification settings - Fork 18
/
make_drw.sh
executable file
·46 lines (38 loc) · 1.78 KB
/
make_drw.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
46
#!/bin/sh
#
# $Id$
#
# ---------------------------------------------------------------
# Template to initialize the environment before starting
# the GNU make system for Harbour
#
# For further information about the GNU make system please
# check doc/gmake.txt
#
# Copyright 1999-2001 Viktor Szakats ([email protected])
# See doc/license.txt for licensing terms.
# ---------------------------------------------------------------
# Autodetect old Darwin versions and set appropriate build options
if [ `uname -r | sed "s/\..*//g"` -lt 6 ]; then
export HB_NCURSES_FINK=yes
fi
# NOTE: You will need to install latest versions of the following
# brew update
# brew install bison
# brew install zlib
# brew install openssl
# brew install tcl-tk
# brew install --cask xquartz
# brew install unixodbc
export C_USR="-Weverything -Wno-cast-qual -Wno-format-nonliteral -Wno-declaration-after-statement -Wno-empty-translation-unit -Wno-newline-eof -Wno-date-time -Wno-double-promotion -Wno-shorten-64-to-32 -Wno-shadow -Wno-implicit-int-conversion -Wno-sign-conversion -Wno-poison-system-directories -Wno-padded -Wno-deprecated-declarations -Wno-cast-align -Wno-undef -Wno-unused-macros -Wno-missing-prototypes -Wno-invalid-source-encoding -Wno-documentation-unknown-command -Wno-c11-extensions -Wno-c++11-extensions"
export L_USR=""
LIB_NAMES=("zlib" "openssl" "X11" "unixodbc")
LIB_PREFIXES=($(brew --prefix zlib) $(brew --prefix openssl) "/opt/X11" $(brew --prefix unixodbc))
for index in ${!LIB_NAMES[@]}; do
export C_USR="$C_USR -I${LIB_PREFIXES[$index]}/include"
export L_USR="$L_USR -L${LIB_PREFIXES[$index]}/lib"
done
#if you do not want DEBUG build, comment the following line
export C_USR="$C_USR -g -O0 -fsanitize=address"
export L_USR="$L_USR -g -O0 -fsanitize=address"
. `dirname $0`/make_gnu.sh $*