VERSION   = 1.0
RELEASE   = 001
CC        = @CC@
OBJS      = md6_compress.o md6_mode.o md6_nist.o md6sum.o

SHELL = /bin/bash
MAKE = make

prefix = @prefix@
libdir = @libdir@
DESTDIR = @destdir@
exec_prefix=@exec_prefix@
datarootdir = @datarootdir@
BINDIR=@bindir@
MANDIR=@mandir@


all: md6sum

md6sum: $(OBJS)
	$(CC) $(OBJS) $(CXXFLAGS) -o $@

md6_compress.o: md6_compress.c inttypes.h  md6.h  md6_nist.h  stdint.h
	$(CC) $(CXXFLAGS) -c $< -o $@

md6_mode.o: md6_mode.c inttypes.h  md6.h  md6_nist.h  stdint.h 
	$(CC) $(CXXFLAGS) -c $< -o $@ 

md6_nist.o: md6_nist.c inttypes.h  md6.h  md6_nist.h  stdint.h 
	$(CC) $(CXXFLAGS) -c $< -o $@ 

md6sum.o: md6sum.c inttypes.h  md6.h  md6_nist.h  stdint.h 
	$(CC) $(CXXFLAGS) -c $< -o $@

clean:
	rm *.o 


install:
	install -d $(DESTDIR)$(prefix)/bin/
	install -m 755 -c md6sum $(DESTDIR)$(prefix)/bin/md6sum

uninstall:
	rm  -rf $(prefix)/bin/md6sum
