* utils/hbmk2/hbmk2.prg
+ Added experimental -c=[iso90|iso99|iso1x|gnu90|gnu99|gnu1x] and
-cpp=[iso98|iso0x|gnu98|gnu0x] hbmk2 options to select
C/C++ dialect in a C compiler and built setting independent way.
It will currently affect GCC and compatible family of compilers.
If you happen to know about C dialect/std selection in other
compilers, pls tell and they can be mapped to this option.
F.e. in other win compilers the adaptation to C/C++ stds is very
fuzzy, where such option exists at all (f.e. BCC -A* options),
mostly it's just toggling some compiler extensions.
Comments are welcome of course.
+ Added TOFIX for vxworks with potential disagreement on C std level.
I used hardwired C99 forcage hack while porting Harbour to it.
+ Added internal logic for C- and C++-only options.
; NOTE: Behavior with Objective C sources is yet to be tested.
* contrib/hbmzip/3rd/minizip/minizip.hbp
* contrib/hbunix/hbunix.hbp
* contrib/gtalleg/gtalleg.hbm
* contrib/xhb/xhb.hbp
* contrib/hbqt/hbqt_common.hbm
* contrib/rddads/rddads.hbp
* contrib/hbfimage/hbfimage.hbp
* contrib/hbpre.hbm
* contrib/hbssl/hbssl.hbm
+ -cflag=-std=... => -c=gnu90 hbmk2 option.
57 lines
917 B
Plaintext
57 lines
917 B
Plaintext
#
|
|
# $Id$
|
|
#
|
|
|
|
-stop{wce}
|
|
|
|
-hblib
|
|
-inc
|
|
|
|
-o${hb_targetname}
|
|
-workdir=${hb_work}/${hb_plat}/${hb_comp}/${hb_targetname}
|
|
|
|
-w3 -es2
|
|
|
|
-depkeyhead=openssl:openssl/ssl.h
|
|
-depcontrol=openssl:no{HB_BUILD_3RDEXT='no'}
|
|
-depcontrol=openssl:${HB_WITH_OPENSSL}
|
|
-depincpath=openssl:/usr/include
|
|
-depincpath=openssl:/usr/local/include
|
|
-depincpath=openssl:/usr/local/ssl/include
|
|
-depincpath=openssl:/boot/common/include
|
|
-depfinish=openssl
|
|
|
|
{darwin}-cflag=-DOPENSSL_NO_SHA256
|
|
{darwin}-cflag=-DOPENSSL_NO_SHA512
|
|
{darwin}-cflag=-DOPENSSL_NO_CAMELLIA
|
|
{darwin}-cflag=-DOPENSSL_NO_SEED
|
|
{darwin}-cflag=-DOPENSSL_NO_DGRAM
|
|
{darwin}-cflag=-DHB_OPENSSL_OLD_OSX_
|
|
|
|
# Patent will expire in 2010/2011
|
|
-cflag=-DOPENSSL_NO_IDEA
|
|
|
|
# For _fileno() in openssl/applink.c
|
|
-c=gnu90
|
|
|
|
-instfile=inc:hbssl.ch
|
|
-instfile=inc:hbssl.hbx
|
|
|
|
hbssl.hbx
|
|
|
|
ssl_hb.c
|
|
bio.c
|
|
err.c
|
|
evp.c
|
|
evpciph.c
|
|
evpenc.c
|
|
evpmd.c
|
|
evppkey.c
|
|
pem.c
|
|
rand.c
|
|
ssl.c
|
|
sslciph.c
|
|
sslctx.c
|
|
sslsess.c
|
|
x509.c
|