include ../cpuopt.mk
CC=g++
CFLAGS=-O6 $(CPUOPT)
INCLDIR=../include/
LIBDIR=../lib/
EXESUFFIX=.exe
EXECUTABLES=sha1 sha1prng mexptest  
WINNTABLES=sha1$(EXESUFFIX) sha1prng$(EXESUFFIX) mexptest$(EXESUFFIX)

all:	$(EXECUTABLES)

mexptest:	mexptest.o
	$(CC) -o mexptest mexptest.o -L$(LIBDIR) -llinte

mexptest.o:	mexptest.cxx
	$(CC) $(CFLAGS) -c mexptest.cxx -I$(INCLDIR)

sha1prng:	sha1prng.o
	$(CC) -o sha1prng sha1prng.o -L$(LIBDIR)  -lprng -lch

sha1prng.o:	sha1prng.cxx
	$(CC) $(CFLAGS) -c sha1prng.cxx -I$(INCLDIR)

sha1:	sha1.o
	$(CC) -o sha1 sha1.o -L$(LIBDIR) -lch 

sha1.o:	sha1.cxx
	$(CC) $(CFLAGS) -c sha1.cxx -I$(INCLDIR)

clean:
	rm -f *~ *.o core $(EXECUTABLES) $(WINNTABLES)

dist-clean:	clean 
