diff options
| author | David M. Syzdek <david@syzdek.net> | 2009-12-31 12:18:14 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2009-12-31 12:18:14 -0900 |
| commit | 65a3f6e641fd74b54687c303e345383ca17dd334 (patch) | |
| tree | baf858427b93caff3228c1b6adebb13466b85730 /build-aux | |
| parent | 4218870f860aa89baaaf4bd9a4302e9ecb8f0d0e (diff) | |
| download | dmstools-65a3f6e641fd74b54687c303e345383ca17dd334.tar.gz dmstools-65a3f6e641fd74b54687c303e345383ca17dd334.tar.bz2 dmstools-65a3f6e641fd74b54687c303e345383ca17dd334.tar.xz dmstools-65a3f6e641fd74b54687c303e345383ca17dd334.zip | |
Moving Makefile-xcode to build-aux/
Diffstat (limited to 'build-aux')
| -rw-r--r-- | build-aux/.gitignore | 1 | ||||
| -rw-r--r-- | build-aux/Makefile-xcode | 135 |
2 files changed, 135 insertions, 1 deletions
diff --git a/build-aux/.gitignore b/build-aux/.gitignore index 7294e92..a0381d4 100644 --- a/build-aux/.gitignore +++ b/build-aux/.gitignore | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | Makefile-xcode | ||
| 2 | compile | 1 | compile |
| 3 | config.guess | 2 | config.guess |
| 4 | config.rpath | 3 | config.rpath |
diff --git a/build-aux/Makefile-xcode b/build-aux/Makefile-xcode new file mode 100644 index 0000000..61e28f1 --- /dev/null +++ b/build-aux/Makefile-xcode | |||
| @@ -0,0 +1,135 @@ | |||
| 1 | # | ||
| 2 | # DMS Tools and Utilities | ||
| 3 | # Copyright (C) 2008, 2009 David M. Syzdek <david@syzdek.net> | ||
| 4 | # | ||
| 5 | # @SYZDEK_LICENSE_HEADER_START@ | ||
| 6 | # | ||
| 7 | # This program is free software; you can redistribute it and/or modify | ||
| 8 | # it under the terms of the GNU General Public License Version 2 as | ||
| 9 | # published by the Free Software Foundation. | ||
| 10 | # | ||
| 11 | # This program is distributed in the hope that it will be useful, | ||
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | # GNU General Public License for more details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License | ||
| 17 | # along with this program; if not, write to the Free Software | ||
| 18 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 19 | # | ||
| 20 | # @SYZDEK_LICENSE_HEADER_END@ | ||
| 21 | # | ||
| 22 | # http://www.syzdek.net/ | ||
| 23 | # | ||
| 24 | # Makefile-xcode - Makefile wrapper for compiling from Xcode | ||
| 25 | # | ||
| 26 | # Notes: | ||
| 27 | # Tested on OS X 10.5.8 with Xcode 3.1.4. Set any one of the the | ||
| 28 | # variables below in the Xcode build settings for the target to override | ||
| 29 | # the defaults. | ||
| 30 | # | ||
| 31 | |||
| 32 | # build tools | ||
| 33 | ACLOCAL ?= /usr/bin/aclocal | ||
| 34 | AUTOCONF ?= /usr/bin/autoconf | ||
| 35 | AUTOHEADER ?= /usr/bin/autoheader | ||
| 36 | AUTOMAKE ?= /usr/bin/automake | ||
| 37 | LIBTOOLIZE ?= /usr/bin/glibtoolize | ||
| 38 | TOUCH ?= /usr/bin/touch | ||
| 39 | |||
| 40 | # tool flags | ||
| 41 | ACLOCAL_FLAGS ?= -I m4 | ||
| 42 | AUTOCONF_FLAGS ?= | ||
| 43 | AUTOHEADER_FLAGS ?= | ||
| 44 | AUTOMAKE_FLAGS ?= -c -a | ||
| 45 | LIBTOOLIZE_FLAGS ?= -c | ||
| 46 | TOUCH_FLAGS ?= | ||
| 47 | |||
| 48 | # file locations | ||
| 49 | BUILD_DIR ?= . | ||
| 50 | MAKEFILE ?= Makefile-xcode | ||
| 51 | PATH = /usr/bin:/bin:/usr/sbin:/sbin | ||
| 52 | SRCROOT ?= . | ||
| 53 | builddir ?= $(BUILD_DIR) | ||
| 54 | srcdir ?= $(SRCROOT) | ||
| 55 | |||
| 56 | # build options | ||
| 57 | CONFIGURE_FLAGS ?= | ||
| 58 | CONFIGURE_FLAGS += --enable-dependency-tracking | ||
| 59 | MAKEFLAGS ?= -j 2 | ||
| 60 | DEBUG ?= NO | ||
| 61 | DISTCLEAN ?= NO | ||
| 62 | |||
| 63 | # build lists | ||
| 64 | AUTOTOOLS_FILES = $(srcdir)/aclocal.m4 \ | ||
| 65 | $(srcdir)/configure \ | ||
| 66 | $(srcdir)/config.h.in \ | ||
| 67 | $(srcdir)/Makefile.in \ | ||
| 68 | $(builddir)/Makefile | ||
| 69 | TARGETS = all \ | ||
| 70 | check \ | ||
| 71 | clean \ | ||
| 72 | dist-bzip2 dist-gzip dist-zip \ | ||
| 73 | distcheck \ | ||
| 74 | distclean \ | ||
| 75 | info dvi html pdf ps \ | ||
| 76 | install \ | ||
| 77 | installcheck installdirs \ | ||
| 78 | install-html install-dvi\ | ||
| 79 | install-pdf install-ps \ | ||
| 80 | install-strip \ | ||
| 81 | maintainer-clean \ | ||
| 82 | mostlyclean \ | ||
| 83 | TAGS \ | ||
| 84 | uninstall | ||
| 85 | |||
| 86 | # make targets | ||
| 87 | $(TARGETS): debugOutput $(builddir)/Makefile $(srcdir)/config.h.in | ||
| 88 | if test "x$(ACTION)" == "xclean";then \ | ||
| 89 | if test "x$(DISTCLEAN)" == "xYES";then \ | ||
| 90 | cd $(builddir) && make $(MAKEFLAGS) distclean; \ | ||
| 91 | else \ | ||
| 92 | cd $(builddir) && make $(MAKEFLAGS) clean; \ | ||
| 93 | fi; \ | ||
| 94 | else \ | ||
| 95 | test -f $(builddir)/Makefile && cd $(builddir) && make $(MAKEFLAGS) ${@}; \ | ||
| 96 | fi; | ||
| 97 | |||
| 98 | dist: dist-gzip dist-bzip2 dist-zip | ||
| 99 | |||
| 100 | # creates files generated by GNU Autoconf, GNU Automake, and GNU Libtool | ||
| 101 | autotools: debugOutput $(AUTOTOOLS_FILES) | ||
| 102 | if test "x$(ACTION)" == "xclean";then rm -f $(AUTOTOOLS_FILES);fi | ||
| 103 | |||
| 104 | debugOutput: | ||
| 105 | @echo "" | ||
| 106 | @echo "Build Directory: $(builddir)" | ||
| 107 | @echo "Source Directory: $(srcdir)" | ||
| 108 | @echo "Configure Flags: $(CONFIGURE_FLAGS)" | ||
| 109 | @echo "" | ||
| 110 | @test "x$(DEBUG)" == "xYES" && echo "Environment variables available in Makefile: " && \ | ||
| 111 | bash -c set && echo "" && echo "" || exit 0 | ||
| 112 | |||
| 113 | $(srcdir)/aclocal.m4: $(MAKEFILE) $(srcdir)/acinclude.m4 $(srcdir)/configure.ac | ||
| 114 | $(ACLOCAL) $(ACLOCAL_FLAGS) | ||
| 115 | $(TOUCH) $(srcdir)/aclocal.m4 | ||
| 116 | |||
| 117 | $(srcdir)/configure: $(MAKEFILE) $(srcdir)/aclocal.m4 $(srcdir)/configure.ac | ||
| 118 | $(AUTOCONF) $(AUTOCONF_FLAGS) | ||
| 119 | $(TOUCH) $(srcdir)/configure | ||
| 120 | |||
| 121 | $(srcdir)/config.h.in: $(MAKEFILE) $(srcdir)/aclocal.m4 $(srcdir)/configure | ||
| 122 | $(AUTOHEADER) $(AUTOHEADER_FLAGS) | ||
| 123 | $(TOUCH) $(srcdir)/config.h.in | ||
| 124 | |||
| 125 | $(srcdir)/Makefile.in: $(MAKEFILE) $(srcdir)/Makefile.am $(srcdir)/aclocal.m4 | ||
| 126 | $(LIBTOOLIZE) $(LIBTOOLIZE_FLAGS) | ||
| 127 | $(AUTOMAKE) $(AUTOMAKE_FLAGS) | ||
| 128 | $(TOUCH) $(srcdir)/Makefile.in | ||
| 129 | |||
| 130 | $(builddir)/Makefile: $(MAKEFILE) $(srcdir)/configure $(srcdir)/Makefile.in | ||
| 131 | mkdir -p $(builddir) | ||
| 132 | cd $(builddir) && \ | ||
| 133 | $(srcdir)/configure $(CONFIGURE_FLAGS) | ||
| 134 | |||
| 135 | # end of Makefile file | ||
