#
# ncrypt make file
#
TARGET=ncrypt
MANPAGE=ncrypt.8
INSTALL=./install-sh
BINDEST=/usr/local/bin
MANDEST=/usr/man/man8
# consider compiling with the static flag on a clean system if you don't trust
# the libraries on the system you plan to run ncrypt on
CFLAGS=-g -Wall -O4 -march=i686 -mcpu=i686 -funroll-all-loops -ffast-math -DTRACE_KAT_MCT=0 -DSTRICT_ALIGN=0

all: $(TARGET)

$(TARGET): ncrypt.o serpent.o sh1strhsh.o sha1.o rijndael-api-fst.o rijndael-alg-fst.o readpass.o twofish.o rand_gen.o wipe_file.o mem.o


clean:
	rm *.o $(TARGET)

install: $(TARGET)
	$(INSTALL) -c -m 0755 $(TARGET) $(BINDEST)
	$(INSTALL) -c -m 0644 $(MANPAGE) $(MANDEST)

