# *******************************************************************
# *     Copyright (c) 1994-2002 Jetico, Inc., Finland
# *     All rights reserved.
# *
# *     File:           Makefile
# *
# *     Description:    bctool makefile
# *
# *     Scope:          BestCrypt command line utility
# *
# *     Platforms:      Linux
# *
# *     Author:         Vitaliy Zolotarev
# *
# *     Revision:       $Id: Makefile,v 1.13 2005/05/14 06:53:06 crypt Rel-1.6-3 $
# *
# *******************************************************************/

CC = gcc 
CPP = g++
CP = cp

CFLAGS  = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 
CFLAGS += -L../lib -I../include/ 
CFLAGS += -Wall -fno-strict-aliasing -g # -O2
#CFLAGS += -g -static -O6
LDFLAGS = -ldl -lstdc++

TARGET = bctool
BC_OBJ = bctool.o alg.o config.o error.o misc.o bcmount.o bcpasswd.o bcinfo.o  bccreate.o bcformat.o bcreencrypt.o bcfsck.o bclink.o bcunlock.o

all: $(TARGET)

$(TARGET): $(BC_OBJ)
	$(CPP) $(CFLAGS) $(DEFS) $(LDFLAGS) -o $(TARGET) $(BC_OBJ)
	$(CP) -f $(TARGET) ../bin/

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


