"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "viewfax-2.6/Makefile" of archive viewfax-2.6.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 # Makefile for viewfax
    2 # Copyright (C) 1990, 1995, 2004  Frank D. Cringle.
    3 
    4 # This file is part of viewfax - g3/g4 fax processing software.
    5 #      
    6 # viewfax is free software; you can redistribute it and/or modify it
    7 # under the terms of the GNU General Public License as published by the
    8 # Free Software Foundation; either version 2 of the License, or (at your
    9 # option) any later version.
   10 #      
   11 # This program is distributed in the hope that it will be useful, but
   12 # WITHOUT ANY WARRANTY; without even the implied warranty of
   13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   14 # 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., 675 Mass Ave, Cambridge, MA 02139, USA.
   19 
   20 VERS = 2.6
   21 
   22 ####### Site-specific definitions #######
   23 # Destination directories and installation program for make install
   24 BINDIR = /usr/local/bin
   25 LIBDIR = /usr/local/lib
   26 MANDIR	= /usr/local/man/man1
   27 INSTALL = /usr/bin/install
   28 RM = rm -f
   29 # Location of help file
   30 HELP = \"$(LIBDIR)/viewfax.tif\"
   31 # optimisation level, debug etc
   32 OPT = -g -O2 -Wno-uninitialized -ansi -pedantic
   33 # C compiler and libraries
   34 # vanilla sysv
   35 #CC = cc
   36 #CFLAGS = $(OPT) -DHELPFILE=$(HELP)
   37 #LDFLAGS = $(OPT)
   38 #LIBS = -lsocket
   39 # vanilla BSD
   40 #CC = cc
   41 #CFLAGS = -DBSD $(OPT) -DHELPFILE=$(HELP)
   42 #LDFLAGS = $(OPT)
   43 #LIBS =
   44 # sun solaris2 with gcc on supersparc:
   45 #CC = gcc
   46 #CFLAGS = -Wall $(OPT) -DHELPFILE=$(HELP) -msupersparc -I/usr/openwin/include
   47 #LDFLAGS = $(OPT) -L/usr/openwin/lib -R/usr/openwin/lib
   48 #LIBS =
   49 # linux
   50 CC = gcc
   51 CFLAGS = $(OPT) -DHELPFILE=$(HELP)
   52 LDFLAGS = $(OPT) -L/usr/X11R6/lib
   53 LIBS =
   54 
   55 ####### End of configurable definitions #######
   56 OBJS = viewfax.o faxinput.o faxinit.o faxexpand.o
   57 
   58 viewfax:	$(OBJS)
   59 	$(CC) $(LDFLAGS) -o viewfax $(OBJS) -lX11 $(LIBS)
   60 
   61 g3hack:		g3hack.c
   62 
   63 install: viewfax
   64 	$(INSTALL) -s -m 755 viewfax $(BINDIR)
   65 	$(INSTALL) -m 644 viewfax.man $(MANDIR)/viewfax.1
   66 	$(INSTALL) -m 644 viewfax.tif $(LIBDIR)
   67 
   68 D = viewfax-$(VERS)
   69 FILES = $D/README $D/COPYING $D/ChangeLog $D/Imakefile $D/Makefile \
   70 	$D/faxexpand.c $D/faxexpand.h $D/faxinput.c $D/faxinit.c \
   71 	$D/viewfax.c $D/viewfax.man $D/viewfax.tif $D/viewfax.help \
   72 	$D/g3hack.c $D/README.kde
   73 
   74 viewfax.tif:	viewfax.help
   75 	enscript -B -e^ -T 16 -X ps -o viewfax.ps viewfax.help
   76 	gs -sDEVICE=faxg3 -sOutputFile=viewfax.g3 -dNOPAUSE \
   77 		-q -dSAFER viewfax.ps -c quit
   78 	fax2tiff -M -8 -o viewfax.tif viewfax.g3
   79 	$(RM) viewfax.ps viewfax.g3
   80 
   81 tar:;	(cd ..; tar cf - $(FILES) | gzip -9 >$D/$D.tar.gz)
   82 
   83 shar:;	(cd ..; shar -a -n$D -M -sfdc@cliwe.ping.de -c -o $D/part -l64 $(FILES))
   84 
   85 clean:;	$(RM) *.o *~ core
   86 
   87 viewfax.o:	faxexpand.h
   88 faxinput.o:	faxexpand.h
   89 faxinit.o:	faxexpand.h
   90 faxexpand.o:	faxexpand.h
   91 faxcompress.o:	faxexpand.h