## Process this file with automake to produce Makefile.in ## Copyright (C) 2000, 2001 Gergely Nagy <8@free.bsd.hu> ## ## This file is part of POP3Lite. ## ## POP3Lite is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## POP3Lite is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## ## $Id: Makefile.am,v 1.11.2.1 2001/04/27 13:00:32 algernon Exp $ CLEANFILES = *~ $(TARGET)-gcc MAINTAINERCLEANFILES = Makefile.in TARGET = i386-freebsdelf5.0 TARGET_ROOT = FreeBSD EXTRA_DIST = libtool-freebsd-cross.diff NEW_SYSTEM SPEED_TEST \ cross-gcc.in README pop3lite-solaris.init $(TARGET)-gcc: $(srcdir)/cross-gcc.in Makefile sed -e "s,\@TARGET\@,$(TARGET),g" -e "s,\@TARGET_ROOT\@,$(TARGET_ROOT),g" \ -e "s,\@bindir\@,$(bindir),g" -e "s,\@VERSION\@,$(VERSION),g" \ < $(srcdir)/cross-gcc.in > $(TARGET)-gcc.tmp && \ rm -f $(TARGET)-gcc && mv $(TARGET)-gcc.tmp $(TARGET)-gcc chmod +x $(TARGET)-gcc %-gcc: $(srcdir)/cross-gcc.in Makefile @TARGET_ROOT="$(shell echo "$@" | sed -e "s,.*-\(.*\)-gcc$$,\1," -e "s,\.,,g")" ;\ TARGET="$(shell echo "$@" | sed -e "s,-gcc$$,,")"; \ $(MAKE) TARGET="$$TARGET" TARGET_ROOT="$$TARGET_ROOT" $$TARGET-gcc