#Makefile for linux by Angelo Rosiello (Guilecool)

SERVER = src/server.o
CLIENT = clients/client.o
CRYPTO = src/crypto.o
SORGENTI = server.c client.c crypto.c

linux : $(SERVER) $(CLIENT) $(CRYPTO)
	@echo ""
	@echo "Copyright (c) 2002/03 Angelo Rosiello (Guilecool)"
	@echo "All Rights Reserved"
	@echo "Start compiling the program..."
	@echo ""
	@echo "Creating the bin dir..." 
	mkdir bin
	@echo ""
	@echo "Compiling sources..."
	cc -o bin/server $(SERVER)
	cc -o bin/client $(CLIENT)
	cc -o bin/crypto $(CRYPTO)
	@echo ""
	@echo "Cleaning from *.o files..."
	rm $(SERVER)
	rm $(CLIENT)
	rm $(CRYPTO)
	@echo ""
	@echo "All done!" 
	@echo ""
	
.PHONY : clean

clean :
	rm $(SORGENTI)
