CC = g++

OBJECTS   =../../../../../Common/ManagedProtection/Src/AESObject.o \
	    ../../../../../Common/ManagedProtection/Src/ManagedProtection.o \
	    ../../../../../Common/ManagedProtection/Src/PersistRSA.o \
	    ../../../../../Common/ManagedProtection/Src/RSAStorage.o \
	    ../../../../../Common/SecString/Src/SecString.o \
	    ../../../../../Common/SecString/Src/StringUtils.o \
	    ../../../../../Common/SecString/Src/StringUtilsLinux.o \
 	    ../../../../../Common/SecString/Src/CryptUtilsLinux.o \
	    ../../../../../Common/SecString/Src/FileUtils.o \
	    Client.o \
	    KVMLib.o \
	    ProxyManager.o \

INCLUDES :=  -I. -I../Include -I../../Common/Include -I../../../../../Common/SyncLib/Include -I$(OPENSSL_DIR)/include -I../../../../../Common/SecString/Include -I../../../../../Common/ManagedProtection/Include
DEFINES := -DOPENSSL_NO_KRB5

# Sum it all up
CFLAGS = $(DEFINES) $(INCLUDES) -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -Wformat -Wformat-security

all: $(OBJECTS)

%.o: %.cpp
	@echo "  Compiling $< ..."
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm -f *.o


