# Makefile for compiling the Mathomatic Prime Number Tools

CFLAGS		+= -O -Wall -DUNIX
LDFLAGS		+= -s -lm

prefix		= /usr
bindir		= /usr/local/bin
mandir		= $(prefix)/share/man

TARGETS		= matho-primes matho-around matho-twin matho-pascal

all: $(TARGETS)
	@echo Make completed.

install: $(TARGETS)
	install -d $(bindir)
	install -d $(mandir)/man1
	install -m 0755 $(TARGETS) $(bindir)
	install -m 0644 *.1 $(mandir)/man1
	@echo Install completed.

clean:
	rm -f $(TARGETS)
