
CC = gcc

all: crypto\
     xcrypto

crypto:
	$(CC) crypto.c -o crypto 

xcrypto:
	$(CC) `gtk-config --cflags`  xcrypto.c -o xcrypto `gtk-config --libs`

clean: 
	rm -f *.o core crypto xcrypto  a.out

install:
	cp crypto /usr/bin/
	cp xcrypto /usr/bin/

installbinary:
	cp ./bin/crypto /usr/bin/
	cp ./bin/xcrypto /usr/bin/

installgnomedesktop:
	cp xcrypto.desktop /usr/share/gnome/apps/Utilities/
	cp xcrypto.png /usr/share/pixmaps

installkdedesktop:
	cp xcrypto.desktop /usr/share/applnk/Utilities/
	cp xcrypto.png /usr/share/pixmaps

uninstall:
	rm -f /usr/bin/crypto
	rm -f /usr/bin/xcrypto
	rm -f /usr/share/gnome/apps/Utilities/xcrypto.desktop
	rm -f /usr/share/applnk/Utilities/xcrypto.desktop  
	rm -f /usr/share/pixmaps/xcrypto.png

