#
# Transparent Cryptographic File System
#
#                   by: Giuseppe  Cattaneo
#                       Giuseppe  Persiano
#                       Angelo    Celentano
#                       Andrea    Cozzolino
#                       Aniello   Del Sorbo
#                       Ermelindo Mauriello
#                       Raffaele  Pisapia
#

# -+-_==

#
# Configurable section
#

#
# Define SECUDEDES if you want to use DES implemented in secude
# leave it undefined if you want to use d3des.
#

#
# Define DESMETHOD if you want to change the DES method used by secude.
#

#
# Define D3DES to 1 if you want to use the triple DES of secude.
#

#
# Define SFSDPORT if you want to change the 'tcfsd' daemon port.
#

#
# Define SFSPWDFILE if you want to change the location of tcfspasswd file.
#

#
# Defaults:
# DEFINES= -DSFSDPORT=9000 -DSFSPWDFILE=\"/etc/tcfspasswd\" -D3DES=0
#

DEFINES= -DSECUDEDES 

#
# Change the belove definitions if you want to install somewhere
# else the programs ...
#
BINDIR = /usr/local/bin
SBINDIR = /usr/local/sbin
MANDIR = /usr/local/man

#
# Change the belove definitions to change owner and group of the executables
#
OWNER = root
GROUP = root

#
# Please make no change to the lines below unless you know what are you doing
#

.PHONY: server client install_server install_client

.EXPORT_ALL_VARIABLES:

all:
	@echo Please do make client to compile tcfs client part \(tcfsd mountd etc.\)...
	@echo or do make server to compile tcfs server part \(xattrd\)...

install:
	@echo Please do make install_client to install tcfs client part...
	@echo or do make install_server to install tcfs server part...

server:
	@echo Compiling xattrd...
	@$(MAKE) -C server all

client:
	@echo Compiling tcfs and its utils...
	@$(MAKE) -C client all

install_client:
	@$(MAKE) -C client install

install_server:
	@$(MAKE) -C server install

clean:
	@$(MAKE) -C server clean
	@$(MAKE) -C client clean
