1 # Copyright (c) 2016 WorkWare Systems http://www.workware.net.au/
4 # Auto-load module for 'tmake' build system integration
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'
13 use cc cc-lib cc-db cc-shared
16 # Add any user options here
17 # Really want a --configure that takes over the rest of the command line
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
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
44 ifconfig !CONFIGURED {
45 # Not configured, so don't process subdirs
47 # And don't process this file any further
52 if {![file exists build.spec]} {
53 puts "Note: I don't see build.spec. Try running: tmake --genie"