# ================================================================== # FILE: "/home/joze/pub/zimg/zimg/Makefile.am" # LAST MODIFIED: "Do, 25 Aug 2005 21:29:33 CEST (joze)" # (C) 1999 - 2002 by Johannes Zellner # $Id: Makefile.am,v 1.24 2005/08/25 19:29:23 joze Exp $ # --- # # Copyright (c) 1999 - 2003, Johannes Zellner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # * Neither the name of Johannes Zellner nor the names of contributors # to this software may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTOMAKE_OPTIONS = foreign if BUILD_GETOPT LIBGETOPT = getopt/libgetopt.la GETOPT_DIR = getopt else LIBGETOPT = GETOPT_DIR = endif SUBDIRS = $(GETOPT_DIR) bin_PROGRAMS = zimg zimg_SOURCES = cmdln.c color.c contours.c getcolor.c img.c misc.c read.c smooth.c statistics.c zimg.c zimg_priv.h dynaload.c dynaload.h path.c path.h include_HEADERS = zimg.h EXTRA_DIST = Makefile.os2 config.os2 MAKEFILE.DJ2 CONFIG.DJ2 README.DJ2 zimg.1 zimg.1.html VERSION zimg_LDADD = $(gd_lib) $(png_libs) $(jpeg_libs) $(LIBGETOPT) INCLUDES = $(gd_includes) man_MANS = zimg.1 # building tags needs Darren Hiebert's exuberant ctags # and a script which builds the syntax highlighting stuff # for vim. Mainly for developing. tags: ctags -R; vimtags zimg.1.html: zimg.1 rman -fhtml zimg.1 > $@ ## ## edit the version number ## UPDATE_CFG = vim -e -c "%s/^\(\#define VERSION\).*$$/\1 \"$(VERSION)\"/" -c wq ## ## dist-hook: ## $(UPDATE_CFG) $(distdir)/CONFIG.DJ2 ## $(UPDATE_CFG) $(distdir)/config.os2 CONFIGURE_DEPENDENCIES = VERSION ## TODO: use this: CONFIG_STATUS_DEPENDENCIES = VERSION MAINTAINERCLEANFILES = `find . -type l -print` config.* configure aclocal.m4 stamp-h* tags* so_locations # OTHER_SOURCES = README GPL configure.in config.h.in zimg.1.in