all: umpf CC=gcc CFLAGS=-Wall -W -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -O2 -g LDLIBS=-lpcre DESTDIR= PREFIX=/usr BINDIR=bin MANDIR=share/man/man1 MAILGRP=mail umpf: umpf.c cond.tab.o lex.o ham.o lists.o lock.o code.o int.o gcc -o $@ $^ $(LDLIBS) lock.o: lex.o cond.tab.o cond.tab.o: cond.tab.c lex.o lex.o: lex.c cond.tab.c ham.o: ham.c code.o: code.c lists.o: lists.c int.o: int.c cond.tab.c: cond.y bison -dvt cond.y clean: rm -rf cond.tab.[ch] cond.output cond umpf *.o core install: install -m 2755 -g $(MAILGRP) umpf $(DESTDIR)/$(PREFIX)/$(BINDIR) install -m 0644 umpf.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)