headers=$(wildcard *.h)
sources=$(wildcard *.c)
objects=$(patsubst %.c,%.o,$(sources))
CC=cc
CFLAGS=-fno-common -I/include -Wall
LIBS= -L/lib -lrote
LDFLAGS=
OMNITTY_VERSION=0.3.0
prefix=
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
mandir=${prefix}/man
CFLAGS+=-DOMNITTY_VERSION=\"$(OMNITTY_VERSION)\"
omnitty: $(objects)
$(CC) $(CFLAGS) -o omnitty $(objects) $(LDFLAGS) $(LIBS)
-include .depends
.depends: $(sources) $(headers)
$(CC) $(CFLAGS) -MM $(sources) >.depends
clean:
rm -f *.o .depends omnitty
distclean: clean
rm -rf autom4te.cache config.status config.log Makefile
pristine: distclean
rm -f configure
install: omnitty
mkdir -p $(DESTDIR)$(bindir)
cp omnitty $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(mandir)/man1
cp omnitty.1 $(DESTDIR)$(mandir)/man1
.PHONY: distclean clean pristine
syntax highlighted by Code2HTML, v. 0.9.1