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: shanzer $ |
---|
9 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v 1.4 1988-05-25 13:14:58 shanzer 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 | |
---|
20 | #The directory for the executables. |
---|
21 | |
---|
22 | INSTDIR= /usr/athena |
---|
23 | |
---|
24 | #The directory to put the help file into. |
---|
25 | |
---|
26 | LIBDIR=/usr/athena/lib |
---|
27 | |
---|
28 | #The directory to put the manual pages into |
---|
29 | |
---|
30 | MANDIR=/usr/man |
---|
31 | #The specific section to put xmore's manual page into, can be one of: |
---|
32 | # 0 - 8, n or l (small L). |
---|
33 | MANSECT=1 |
---|
34 | |
---|
35 | CFLAGS= -g -DATHENA -DHELPFILE=\"${LIBDIR}/xmore.help\" ${INCFLAGS} |
---|
36 | INCFLAGS= |
---|
37 | LIBES= -lXaw -lXt -lX |
---|
38 | OBJS= globals.o help.o main.o pages.o ${XTKOBJS} |
---|
39 | XTKOBJS= ScrollByLine.o |
---|
40 | XTKFILES= ScrollByLine.c |
---|
41 | INCLUDE= defs.h globals.h more.h mit-copyright.h |
---|
42 | CFILES= globals.c help.c main.c pages.c ${XTKFILES} |
---|
43 | |
---|
44 | all: xmore |
---|
45 | xmore: ${OBJS} |
---|
46 | cc ${CFLAGS} ${LDFLAGS} ${OBJS} -o xmore ${LIBES} |
---|
47 | globals.o: globals.c ${INCLUDE} |
---|
48 | help.o: help.c ${INCLUDE} |
---|
49 | main.o: main.c ${INCLUDE} |
---|
50 | pages.o: pages.c ${INCLUDE} |
---|
51 | ScrollByLine.c: ScrollByLine.c ScrollByLineP.h ScrollByLine.h |
---|
52 | |
---|
53 | install: ; |
---|
54 | strip xmore |
---|
55 | cp xmore ${DESTDIR}${INSTDIR} |
---|
56 | cp xmore.help ${DESTDIR}${LIBDIR} |
---|
57 | cp xmore.man ${DESTDIR}${MANDIR}/man${MANSECT}/xmore.${MANSECT} |
---|
58 | |
---|
59 | clean: ; |
---|
60 | rm -f *~ *.o xmore xmore.shar core xmore.cat |
---|
61 | |
---|
62 | saber: ; |
---|
63 | saber ${INCFLAGS} ${LDFLAGS} ${CFILES} ${LIBES} |
---|
64 | |
---|
65 | shar: ; |
---|
66 | shar README Makefile xmore.help xmore.man \ |
---|
67 | ${CFILES} ${XTKFILES} > xmore.shar |
---|
68 | |
---|
69 | manual: ; |
---|
70 | nroff -man xmore.man > xmore.cat |
---|
71 | |
---|