[1103] | 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 $ |
---|
[1139] | 9 | # $Header: /afs/dev.mit.edu/source/repository/athena/bin/xmore/Makefile,v 1.4 1988-05-25 13:14:58 shanzer Exp $ |
---|
[1103] | 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 | |
---|
[1104] | 22 | INSTDIR= /usr/athena |
---|
[1103] | 23 | |
---|
| 24 | #The directory to put the help file into. |
---|
| 25 | |
---|
[1104] | 26 | LIBDIR=/usr/athena/lib |
---|
[1103] | 27 | |
---|
| 28 | #The directory to put the manual pages into |
---|
| 29 | |
---|
[1139] | 30 | MANDIR=/usr/man |
---|
[1103] | 31 | #The specific section to put xmore's manual page into, can be one of: |
---|
| 32 | # 0 - 8, n or l (small L). |
---|
[1104] | 33 | MANSECT=1 |
---|
[1103] | 34 | |
---|
| 35 | CFLAGS= -g -DATHENA -DHELPFILE=\"${LIBDIR}/xmore.help\" ${INCFLAGS} |
---|
[1135] | 36 | INCFLAGS= |
---|
[1103] | 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} |
---|
[1139] | 56 | cp xmore.help ${DESTDIR}${LIBDIR} |
---|
| 57 | cp xmore.man ${DESTDIR}${MANDIR}/man${MANSECT}/xmore.${MANSECT} |
---|
[1103] | 58 | |
---|
| 59 | clean: ; |
---|
[1104] | 60 | rm -f *~ *.o xmore xmore.shar core xmore.cat |
---|
[1103] | 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 | |
---|