rename packages/ to recipes/ per earlier agreement
[openembedded.git] / recipes / mgetty / mgetty-1.1.30 / 14-frontends_X11_viewfax-2.5_Makefile
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
3 @@ -21,15 +21,15 @@
4  
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
15  RM = rm -f
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
23  # vanilla sysv
24  #CC = cc
25 @@ -43,22 +43,22 @@
26  #LIBS =
27  # sun solaris2 with gcc on supersparc:
28  CC = gcc
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
33  LIBS =
34  
35  ####### End of configurable definitions #######
36  OBJS = viewfax.o faxinput.o faxinit.o faxexpand.o
37  
38  viewfax:       $(OBJS)
39 -       $(CC) $(LDFLAGS) -o viewfax $(OBJS) -lX11 $(LIBS)
40 +       $(CC) $(LDFLAGS) -o viewfax $(OBJS) $(LIBS)
41  
42  g3hack:                g3hack.c
43  
44  install: viewfax
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)/
49  
50  D = viewfax-$(VERS)
51  FILES = $D/README $D/COPYING $D/ChangeLog $D/Imakefile $D/Makefile \
52 @@ -75,7 +75,7 @@
53  
54  shar:; (cd ..; shar -a -n$D -M -sfdc@cliwe.ping.de -c -o $D/part -l64 $(FILES))
55  
56 -clean:;        $(RM) *.o *~ core
57 +clean:;        $(RM) *.o *~ core viewfax
58  
59  viewfax.o:     faxexpand.h
60  faxinput.o:    faxexpand.h