home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
unix
/
textmstr.shr
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-06-26
|
2KB
|
59 lines
###########################################################################
## ##
## Makefile for TextMaster ##
## ##
###########################################################################
# Values here should be changed to whatever's appropriate for your system
# Change this to the C compiler you use. Most systems will handle 'cc'
# fine, since I didn't write this in ANSI C or anything special. On some
# systems, GCC may provide better and smaller output, so try that instead.
CC=cc
# Replace this with any compile-time flags you wish to set.
CFLAGS=-O
# This is where the binaries (BINDIR) and man pages (MANDIR) will be installed
# if you type 'make install'. Change this to whatever's appropriate.
BINDIR=/usr/local
MANDIR=/usr/man/local/man1
# This is the program to be used to install the binaries and man pages.
# I use 'cp' because it's simple, and some versions of 'install' (the system
# built-in installation program) don't work right.
INSTPRG=cp
# This is probably irrelevant; this is the directory that the distribution
# shar-file will be placed. This is only of use to people re-distributing
# TEXTMASTER, after you've nuked your original copy of the shar file.
DISTDIR=/usr/src/DIST
# Set this to the extension your man pages use. On some systems, this
# would be "l" (as in L, not 1)
MANEXT=1
# Version number of program, to be used in distribution shell archive
# creation.
VER=14
# You should not need to change anything below this line.
all: tm
tm: tm.o convert.o
$(CC) $(CFLAGS) -o tm tm.o convert.o
tm.o: tm.c tm.h
$(CC) $(CFLAGS) -c tm.c
convert.o: convert.c tm.h
$(CC) $(CFLAGS) -c convert.c
install:
$(INSTPRG) tm $(BINDIR)/tm
$(INSTPRG) tm.1 $(MANDIR)/tm.$(MANEXT)
dist:
shar -cv README MANIFEST BUGS TODO Makefile tm.c \
tm.h convert.c tm.1 tm.hqx >tmp.sh
cat distinfo tmp.sh >$(DISTDIR)/tm$(VER).sh
rm tmp.sh
clean:
/bin/rm -f *.o tmp.sh