1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# Makefile for figlet version 2.2 (15 Oct 1996)
# Copyright 1993, 1994 Glenn Chappell and Ian Chai
# Copyright 1996 John Cowan
# Please make sure DESTDIR, MANDIR, DEFAULTFONTDIR and
# DEFAULTFONTFILE are defined to reflect the situation
# on your computer. See README for details.
# Don't change this even if your shell is different. The only reason
# for changing this is if sh is not in the same place.
SHELL = /bin/sh
CC = gcc
CFLAGS = -g
# Where the executables should be put
DESTDIR = /usr/games
# Where the man page should be put
MANDIR = /usr/man/man6
# Where figlet will search first for fonts (the ".flf" files).
DEFAULTFONTDIR = $(DESTDIR)/lib/figlet.dir
# Use this definition if you can't put things in /usr/games
DEFAULTFONTDIR = fonts
# The filename of the font to be used if no other is specified
# (standard.flf is recommended, but any other can be used).
# This font file should reside in the directory specified by
# DEFAULTFONTDIR.
DEFAULTFONTFILE = standard.flf
##
## END OF CONFIGURATION SECTION
##
SOURCES = figlet.c zipio.c crc.c inflate.c
all: figlet chkfont
figlet: $(SOURCES)
$(CC) $(CFLAGS) -DDEFAULTFONTDIR=\"$(DEFAULTFONTDIR)\" \
-DDEFAULTFONTFILE=\"$(DEFAULTFONTFILE)\" \
$(SOURCES) -o figlet
chmod a+x figlet
chkfont: chkfont.c
$(CC) $(CFLAGS) -o chkfont chkfont.c
clean:
rm -f *.o figlet chkfont
install: figlet chkfont
-install -d $(DEFAULTFONTDIR)
-install -d $(DESTDIR)
cp figlet $(DESTDIR)
cp chkfont $(DESTDIR)
cp figlist $(DESTDIR)
cp showfigfonts $(DESTDIR)
chmod a+x $(DESTDIR)/figlet
chmod a+x $(DESTDIR)/chkfont
chmod a+x $(DESTDIR)/figlist
chmod a+x $(DESTDIR)/showfigfonts
cp fonts/*.flf $(DEFAULTFONTDIR)
cp fonts/*.flc $(DEFAULTFONTDIR)
-install -d $(MANDIR)
cp figlet.6 $(MANDIR)
|