File Makefile of Package fax2pdf
#
#
# Copyright (c) 2000 by Peter Stamfest <peter@stamfest.at>
#
# This program 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.
#
# This program 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
VERSION = 0.1.3
NAME = fax2pdf
LDFLAGS = -ltiff -lz
F2PSRC = pdf.cc fax2pdf.cc
F2POBJ = $(F2PSRC:.cc=.o)
CFLAGS = -Wall -O3 # -g
fax2pdf: $(F2POBJ)
$(CXX) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(F2POBJ)
strip $@
.cc.o:
$(CXX) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
clean:
rm -f $(F2POBJ) fax2pdf
dist:
mkdir ${NAME}-${VERSION}
cat MANIFEST | cpio -pudam ${NAME}-${VERSION}
tar -czvf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
rm -rf ${NAME}-${VERSION}
pdf.o: pdf.h
fax2pdf.o: pdf.h