diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-08-18 13:00:03 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-08-18 20:14:37 +1000 |
commit | 1e61f2961e0f13ce077a85febe080e50bea3f59d (patch) | |
tree | 7b495c25339c7a9de25fa91a2d7c0e17db938c19 /auto.def | |
parent | 6f288aab0c5797f844ee458dd98f30b1f3db62c6 (diff) | |
download | jimtcl-1e61f2961e0f13ce077a85febe080e50bea3f59d.zip jimtcl-1e61f2961e0f13ce077a85febe080e50bea3f59d.tar.gz jimtcl-1e61f2961e0f13ce077a85febe080e50bea3f59d.tar.bz2 |
Add support for BSD make
Use the new conditional template support in autosetup
to avoid (most) GNU-isms in the generated Makefile.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -168,16 +168,11 @@ if {[opt-bool references]} { } if {[opt-bool shared with-jim-shared]} { msg-result "Building shared library" - define JIM_LIBTYPE shared } else { msg-result "Building static library" - define JIM_LIBTYPE static -} -if {[opt-bool install-jim]} { - define install_jim 1 -} else { - define install_jim "" + define JIM_STATICLIB } +define JIM_INSTALL [opt-bool install-jim] # Note: Extension handling is mapped directly from the configure.ac # implementation @@ -381,10 +376,11 @@ foreach e $ext { } } -define JIM_STATIC_C_EXTS $ext_static_c -define JIM_STATIC_TCL_EXTS $ext_static_tcl -define JIM_TCL_EXTENSIONS $extmodtcl -define JIM_MOD_EXTENSIONS $extmod +define STATIC_EXTS [concat $ext_static_c $ext_static_tcl] +define C_EXT_OBJS [prefix jim- [suffix .o $ext_static_c]] +define TCL_EXT_OBJS [suffix .o $ext_static_tcl] +define C_EXT_SHOBJS [suffix .so $extmod] +define TCL_EXTS [suffix .tcl $extmodtcl] define EXTRA_OBJS $extra_objs make-config-header jim-config.h -auto {HAVE_LONG_LONG* JIM_UTF8} -none * |