1 --- mgetty-1.1.28.old/frontends/X11/viewfax-2.5/Makefile 2002-08-03 17:26:26.000000000 -0400
2 +++ mgetty-1.1.28/frontends/X11/viewfax-2.5/Makefile 2002-08-03 17:30:26.000000000 -0400
5 ####### Site-specific definitions #######
6 # Destination directories and installation program for make install
7 -BINDIR = /usr/local/bin
8 -LIBDIR = /usr/local/lib
9 -MANDIR = /usr/local/man/man1
10 -INSTALL = /usr/ucb/install
11 +BINDIR = $(DESTDIR)/usr/bin
12 +DOCDIR = $(DESTDIR)/usr/share/doc/mgetty-viewfax
13 +MANDIR = $(DESTDIR)/usr/share/man/man1
14 +INSTALL = /usr/bin/install
16 # Location of help file
17 -HELP = \"$(LIBDIR)/viewfax.tif\"
18 +HELP = \"$(DOCDIR)/viewfax.tif\"
19 # optimisation level, debug etc
20 -OPT = -g -O2 -Wno-uninitialized -ansi -pedantic
21 +OPT = -O2 -Wno-uninitialized -ansi -pedantic
22 # C compiler and libraries
27 # sun solaris2 with gcc on supersparc:
29 -CFLAGS = -Wall $(OPT) -DHELPFILE=$(HELP) -msupersparc -I/usr/openwin/include
30 -LDFLAGS = $(OPT) -L/usr/openwin/lib -R/usr/openwin/lib
31 +CFLAGS = -Wall $(OPT) -DHELPFILE=$(HELP) -I/usr/openwin/include
32 +LDFLAGS = $(OPT) -L/usr/X11R6/lib -lX11
35 ####### End of configurable definitions #######
36 OBJS = viewfax.o faxinput.o faxinit.o faxexpand.o
39 - $(CC) $(LDFLAGS) -o viewfax $(OBJS) -lX11 $(LIBS)
40 + $(CC) $(LDFLAGS) -o viewfax $(OBJS) $(LIBS)
45 $(INSTALL) -s -m 755 viewfax $(BINDIR)
46 $(INSTALL) -m 644 viewfax.man $(MANDIR)/viewfax.1
47 - $(INSTALL) -m 644 viewfax.tif $(LIBDIR)
48 + $(INSTALL) -m 644 viewfax.tif $(DOCDIR)/
51 FILES = $D/README $D/COPYING $D/ChangeLog $D/Imakefile $D/Makefile \
54 shar:; (cd ..; shar -a -n$D -M -sfdc@cliwe.ping.de -c -o $D/part -l64 $(FILES))
56 -clean:; $(RM) *.o *~ core
57 +clean:; $(RM) *.o *~ core viewfax
59 viewfax.o: faxexpand.h
60 faxinput.o: faxexpand.h