SHELL = /bin/sh
CC = `if test \`cputype\` = sparc; then echo gcc; else echo cc; fi`

all: makewff

seed: seed.c
	$(CC) seed.c -o seed

makewff: makewff.c
	$(CC) makewff.c -o makewff

permutecnf: permutecnf.c
	$(CC) permutecnf.c -o permutecnf

clean:
	rm -f *.o seed permutecnf makewff

install: seed permutecnf
	strip seed
	cp seed $(HOME)/bin/$(ARCH)/
	strip permutecnf
	cp permutecnf $(HOME)/bin/$(ARCH)/
	strip makewff
	cp makewff $(HOME)/bin/$(ARCH)/
	cp permute_tableau contains $(HOME)/bin/
