# *******************************************************************
# *     Copyright (c) 1994-2002 Jetico, Inc., Finland
# *     All rights reserved.
# *
# *     File:           Makefile
# *
# *     Description:    bcwipe makefile
# *
# *     Scope:          BestCrypt Wipe utility
# *
# *     Platforms:      Unix
# *
# *     Author:         Vitaliy Zolotarev
# *
# *     Revision:       $Id: Makefile,v 1.10 2004/04/21 08:57:22 crypt Rel 1.5-3 $
# *
# *******************************************************************/

MAN_PATH   = $(shell ./man_path)

#CC = gcc 
INSTALL = install

CFLAGS = -O -DOS_`uname -s |tr "-" "_"` -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE #-static -Wall -Werror  
LDFLAGS =
DEFS =

TARGETS = bcwipe
BC_OBJ = sha1.o sha1random.o


root=/


all: $(TARGETS)

bcwipe: wipe.c $(BC_OBJ)
	$(CC) $(CFLAGS) $(DEFS) -o bcwipe wipe.c $(BC_OBJ) 

install:
	./install.sh $(root)
#	$(INSTALL) -m 644 bcwipe.1      $(root)/$(MAN_PATH)/man1/
#	$(INSTALL) -o root -m 755 -s bcwipe   $(root)/usr/bin/

clean:
	rm -f *.o *.ver *~ $(TARGETS)


#Makefile: clean
