expr: prevent stack overflow
[jimtcl.git] / autosetup / tmake.auto
blob64a57122437dee3d08f57366a015e8a1321f75a4
1 # Copyright (c) 2016 WorkWare Systems http://www.workware.net.au/
2 # All rights reserved
4 # Auto-load module for 'tmake' build system integration
6 use init
8 autosetup_add_init_type tmake "Tcl-based tmake build system" {
9         autosetup_check_create auto.def \
10 {# Initial auto.def created by 'autosetup --init=tmake'
11 # vim:set syntax=tcl:
13 use cc cc-lib cc-db cc-shared
14 use tmake
16 # Add any user options here
17 # Really want a --configure that takes over the rest of the command line
18 options {
21 cc-check-tools ar ranlib
23 set objdir [get-env BUILDDIR objdir]
25 make-config-header $objdir/include/autoconf.h
26 make-tmake-settings $objdir/settings.conf {[A-Z]*} *dir lib_*
29         autosetup_check_create project.spec \
30 {# Initial project.spec created by 'autosetup --init=tmake'
32 tmake-require-version 0.7.3
34 # vim:set syntax=tcl:
35 define? DESTDIR _install
37 # XXX If configure creates additional/different files than include/autoconf.h
38 #     that should be reflected here
39 Autosetup include/autoconf.h
41 # e.g. for autoconf.h
42 IncludePaths include
44 ifconfig !CONFIGURED {
45         # Not configured, so don't process subdirs
46         AutoSubDirs off
47         # And don't process this file any further
48         ifconfig false
52         if {![file exists build.spec]} {
53                 puts "Note: I don't see build.spec. Try running: tmake --genie"
54         }