* 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.
39 lines
564 B
Plaintext
39 lines
564 B
Plaintext
#
|
|
# $Id$
|
|
#
|
|
|
|
-hblib
|
|
-inc
|
|
|
|
-o${hb_name}
|
|
|
|
-w3 -es2
|
|
|
|
-stop{!(linux|win)}
|
|
|
|
-depkeyhead=ads:ace.h
|
|
-depcontrol=ads:${HB_WITH_ADS}
|
|
-depincpath=ads:/usr/local/ads/acesdk
|
|
-depincpath=ads:${HOME}/ads/acesdk
|
|
{x86_64}-depimplibs=ads:ace64.dll
|
|
{x86}-depimplibs=ads:Redistribute/ace32.dll
|
|
{x86}-depimplibs=ads:32bit/ace32.dll
|
|
{x86}-depimplibs=ads:ace32.dll
|
|
|
|
-instfile=inc:ads.ch
|
|
-instfile=inc:adsextrn.ch
|
|
-instfile=inc:rddads.hbx
|
|
|
|
# To avoid a warning in ACE header
|
|
-cflag+=-Wno-unknown-pragmas{allgcc}
|
|
|
|
# for ADS headers
|
|
-c=gnu90
|
|
|
|
rddads.hbx
|
|
|
|
ads1.c
|
|
adsfunc.c
|
|
adsmgmnt.c
|
|
adsx.c
|