1 | # This is the Makefile for Xmore, a file browsing utility |
---|
2 | # built upon Xlib and the XToolkit. |
---|
3 | # |
---|
4 | # Created: October 22, 1987 |
---|
5 | # By: Chris D. Peterson |
---|
6 | # |
---|
7 | # $Source: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v $ |
---|
8 | # $Author: probe $ |
---|
9 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v 1.10 1990-09-20 03:33:41 probe Exp $ |
---|
10 | # |
---|
11 | # Copyright 1987, 1988 by the Massachusetts Institute of Technology. |
---|
12 | # |
---|
13 | # For further information on copyright and distribution |
---|
14 | # see the file mit-copyright.h |
---|
15 | |
---|
16 | # Directories to put the things into on install. |
---|
17 | |
---|
18 | DESTDIR= |
---|
19 | INSTDIR= /usr/athena |
---|
20 | LIBDIR=/usr/athena/lib |
---|
21 | MANDIR=/usr/man |
---|
22 | MANSECT=1 |
---|
23 | |
---|
24 | CFLAGS= -O -DHELPFILE=\"${LIBDIR}/xmore.help\" ${INCFLAGS} |
---|
25 | INCFLAGS= |
---|
26 | LIBES= -lXaw -lXt -lXmu -lX11 |
---|
27 | OBJS= globals.o help.o main.o pages.o ${XTKOBJS} |
---|
28 | XTKOBJS= ScrollByLine.o |
---|
29 | XTKFILES= ScrollByLine.c |
---|
30 | INCLUDE= defs.h globals.h more.h mit-copyright.h |
---|
31 | CFILES= globals.c help.c main.c pages.c ${XTKFILES} |
---|
32 | |
---|
33 | all: xmore |
---|
34 | xmore: ${OBJS} |
---|
35 | cc ${CFLAGS} ${LDFLAGS} ${OBJS} -o xmore ${LIBES} |
---|
36 | globals.o: globals.c ${INCLUDE} |
---|
37 | help.o: help.c ${INCLUDE} |
---|
38 | main.o: main.c ${INCLUDE} |
---|
39 | pages.o: pages.c ${INCLUDE} |
---|
40 | ScrollByLine.c: ScrollByLine.c ScrollByLineP.h ScrollByLine.h |
---|
41 | |
---|
42 | install: ; |
---|
43 | install -c -s xmore ${DESTDIR}${INSTDIR}/ |
---|
44 | install -c xmore.help ${DESTDIR}${LIBDIR} |
---|
45 | install -c xmore.man ${DESTDIR}${MANDIR}/man${MANSECT}/xmore.${MANSECT} |
---|
46 | |
---|
47 | clean: ; |
---|
48 | rm -f *~ *.o xmore xmore.shar core xmore.cat |
---|
49 | |
---|
50 | saber: ; |
---|
51 | saber ${INCFLAGS} ${LDFLAGS} ${CFILES} ${LIBES} |
---|
52 | |
---|
53 | shar: ; |
---|
54 | shar README Makefile xmore.help xmore.man \ |
---|
55 | ${CFILES} ${XTKFILES} > xmore.shar |
---|
56 | |
---|
57 | manual: ; |
---|
58 | nroff -man xmore.man > xmore.cat |
---|
59 | |
---|
60 | |
---|
61 | depend: |
---|
62 | touch Make.depend; makedepend -fMake.depend ${CFLAGS} ${CFILES} |
---|
63 | |
---|