* contrib/hbmisc/tests/pe.prg
* contrib/hbpost.hbm
* contrib/hbpre.hbm
* contrib/make.hb
* sync text and minor code/comment updates with the 3.4 fork
100 lines
4.7 KiB
Plaintext
100 lines
4.7 KiB
Plaintext
# Copyright 2010 Viktor Szakats (vszakats.net/harbour)
|
|
|
|
# These are mandatory inside Harbour repository, they will always
|
|
# override project options.
|
|
|
|
"{HB_BUILD_PARTS='lib'&!hblib}-stop=! Skipped because HB_BUILD_PARTS=lib"
|
|
|
|
-prgflag=-w3
|
|
-prgflag=-es2
|
|
-prgflag=-kmo
|
|
-prgflag=-i-
|
|
#-prgflag=-u+hbstrict.ch
|
|
|
|
-safe
|
|
|
|
{allwin}-winuni
|
|
{allwin&HB_LIB3RD}-lunicows
|
|
|
|
{HB_BUILD_DEBUG}-prgflag=-l-
|
|
{HB_BUILD_DEBUG}-debug
|
|
{HB_BUILD_DEBUG}-cflag=-DHB_TR_LEVEL_DEBUG
|
|
|
|
{(hbdyn|hbexe)&HB_BUILD_SHARED='yes'&!(HB_SYSLOC='yes')}-shared
|
|
{(hbdyn|hbexe)&HB_BUILD_SHARED='yes'&HB_SYSLOC='yes'}-fullshared
|
|
|
|
{(hbdyn|hbexe)&(HB_BUILD_STRIP='bin'|HB_BUILD_STRIP='all')}-strip
|
|
{hblib&(HB_BUILD_STRIP='lib'|HB_BUILD_STRIP='all')}-strip
|
|
|
|
# dynamic lib creation settings
|
|
{hbdyn}-shared
|
|
{hbdyn}-implib=../lib/${hb_plat}/${hb_comp}${hb_build}/
|
|
{hbdyn&hb_dynsuffix}-implib=${hb_outputname}${hb_dynsuffix}
|
|
{hbdyn&!hb_dynsuffix}-implib=${hb_outputname}_dll
|
|
{hbdyn&unix&!android&!cygwin}-ln=${hb_dynprefix}${hb_outputname}${hb_dynext}
|
|
{hbdyn&unix&!darwin&!android&!cygwin}-ln=${hb_dynprefix}${hb_outputname}${hb_dynext}.${hb_major}.${hb_minor}
|
|
{hbdyn&unix&darwin}-ln=${hb_dynprefix}${hb_outputname}.${hb_major}.${hb_minor}${hb_dynext}
|
|
{hbdyn&android}-lharbour
|
|
{hbdyn&android}-lm
|
|
{hbdyn&(allwin|cygwin)}-lhbmaindllp
|
|
{hbdyn}-depimplib-
|
|
|
|
"{hbdyn&darwin}-dflag=-install_name '${hb_dynprefix}${hb_outputname}${hb_dynext}'"
|
|
"{hbdyn&darwin}-dflag=-compatibility_version ${hb_major}.${hb_minor}"
|
|
"{hbdyn&darwin}-dflag=-current_version ${hb_major}.${hb_minor}.${hb_release}"
|
|
"{hbdyn&android}-dflag=-Wl,-soname,${hb_dynprefix}${hb_outputname}${hb_dynext} -Wl,--no-undefined -Wl,-z,noexecstack"
|
|
"{hbdyn&linux&!android}-dflag=-Wl,-soname,${hb_dynprefix}${hb_outputname}${hb_dynext}.${hb_major}.${hb_minor}"
|
|
"{hbdyn&sunos}-dflag=-Wl,-h,${hb_dynprefix}${hb_outputname}${hb_dynext}.${hb_major}.${hb_minor}"
|
|
|
|
# output name tweaks for dynamic libs
|
|
# NOTE: We're altering previously set output name value here
|
|
{hbdyn&unix&!darwin&!android&!cygwin}-o${hb_outputname}${hb_dynext}.${hb_major}.${hb_minor}.${hb_release}
|
|
{hbdyn&unix&darwin}-o${hb_outputname}.${hb_major}.${hb_minor}.${hb_release}${hb_dynext}
|
|
{hbdyn&unix&(cygwin|android)}-o${hb_outputname}${hb_dynext}
|
|
{hbdyn&!unix&allwin}-o${hb_outputname}-${hb_major}${hb_minor}${hb_dynsuffix}
|
|
{hbdyn&!unix&!allwin}-o${hb_outputname}${hb_dynsuffix}
|
|
|
|
# output dir (in sync with GNU Make)
|
|
{hblib}-o../lib/${hb_plat}/${hb_comp}${hb_build}/
|
|
{hbexe}-o../bin/${hb_plat}/${hb_comp}${hb_build}/
|
|
{hbdyn}-o../bin/${hb_plat}/${hb_comp}${hb_build}/
|
|
|
|
# workdir (in sync with GNU Make)
|
|
{hblib}-workdir=../lib/${hb_plat}/${hb_comp}${hb_build}/${hb_work}/${hb_outputname}${hb_workdynsub}
|
|
{hbexe}-workdir=../bin/${hb_plat}/${hb_comp}${hb_build}/${hb_work}/${hb_outputname}${hb_workdynsub}
|
|
{hbdyn}-workdir=../bin/${hb_plat}/${hb_comp}${hb_build}/${hb_work}/${hb_outputname}${hb_workdynsub}
|
|
|
|
# copy contrib-specific public files
|
|
-instfile=contrib:${_HB_CONTRIB_SUBDIR}*.hb
|
|
-instfile=contrib:${_HB_CONTRIB_SUBDIR}*.hbc
|
|
-instfile=contrib:${_HB_CONTRIB_SUBDIR}*.hbx
|
|
-instfile=contrib:${_HB_CONTRIB_SUBDIR}*.ch
|
|
-instfile=contrib:${_HB_CONTRIB_SUBDIR}*.txt
|
|
-instfile=contrib_tests:${_HB_CONTRIB_SUBDIR}tests/*.*
|
|
|
|
# install (GNU Make)
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_LIB&hblib}-instpath=${_HB_INSTALL_LIB}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_BIN&hbexe}-instpath=${_HB_INSTALL_BIN}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_DYN&hbdyn}-instpath=${_HB_INSTALL_DYN}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_DYN&hbdyn&(win|os2)&HB_INSTALL_3RDDYN='yes'}-instpath=depimplibsrc:${_HB_INSTALL_DYN}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_INC&hblib}-instpath=inc:${_HB_INSTALL_INC}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_LIB}-instpath=implib:${_HB_INSTALL_LIB}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_ETC}-instpath=etc:${_HB_INSTALL_ETC}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_MAN}-instpath=man:${_HB_INSTALL_MAN}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_LIB&!(HB_INSTALL_IMPLIB='no')}-instpath=depimplib:${_HB_INSTALL_LIB}/
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_CONTRIB&hblib}-instpath=contrib:${_HB_INSTALL_CONTRIB}/${_HB_CONTRIB_SUBDIR}
|
|
{_HB_BUILD_INSTALL&_HB_INSTALL_CONTRIB&hblib}-instpath=contrib_tests:${_HB_INSTALL_CONTRIB}/${_HB_CONTRIB_SUBDIR}/tests/
|
|
{_HB_BUILD_INSTALL}-instforce
|
|
|
|
# install (standalone)
|
|
{_HB_BUILD_INSTALL_STDALONE&hblib}-instpath=${hb_lib}/
|
|
{_HB_BUILD_INSTALL_STDALONE&hbexe}-instpath=${hb_bin}/
|
|
{_HB_BUILD_INSTALL_STDALONE&hbdyn}-instpath=${hb_dyn}/
|
|
{_HB_BUILD_INSTALL_STDALONE&hbdyn&(win|os2)&HB_INSTALL_3RDDYN='yes'}-instpath=depimplibsrc:${hb_dyn}/
|
|
{_HB_BUILD_INSTALL_STDALONE&hblib}-instpath=inc:${hb_inc}/
|
|
{_HB_BUILD_INSTALL_STDALONE}-instpath=implib:${hb_lib}/
|
|
{_HB_BUILD_INSTALL_STDALONE}-instpath=etc:${hb_etc}/
|
|
{_HB_BUILD_INSTALL_STDALONE}-instpath=man:${hb_man}/
|
|
{_HB_BUILD_INSTALL_STDALONE&!(HB_INSTALL_IMPLIB='no')}-instpath=depimplib:${hb_lib}/
|
|
{_HB_BUILD_INSTALL_STDALONE}-instforce
|