zlib: Don't use PASTE for INTMAX error messages
[jimtcl.git] / autosetup / tmake.auto
blob75813c39b179ef4c38ace29155a4fd3baa6f646d
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]*}
29         autosetup_check_create project.spec \
30 {# Initial project.spec created by 'autosetup --init=tmake'
32 # vim:set syntax=tcl:
33 define? DESTDIR _install
35 # XXX If configure creates additional/different files than include/autoconf.h
36 #     that should be reflected here
38 # We use [set AUTOREMAKE] here to avoid rebuilding settings.conf
39 # if the AUTOREMAKE command changes
40 Depends {settings.conf include/autoconf.h} auto.def -msg {note Configuring...} -do {
41         run [set AUTOREMAKE] >$build/config.out
42 } -onerror {puts [readfile $build/config.out]} -fatal
43 Clean config.out
44 DistClean --source config.log
45 DistClean settings.conf include/autoconf.h
47 # If not configured, configure with default options
48 # Note that it is expected that configure will normally be run
49 # separately. This is just a convenience for a host build
50 define? AUTOREMAKE configure TOPBUILDDIR=$TOPBUILDDIR --conf=auto.def
52 Load settings.conf
54 # e.g. for up autoconf.h
55 IncludePaths include
57 ifconfig CONFIGURED
59 # Hmmm, but should we turn off AutoSubDirs?
60 #AutoSubDirs off
63         if {![file exists build.spec]} {
64                 puts "Note: I don't see build.spec. Try running: tmake --genie"
65         }