CC=gcc
CFLAGS=-Wall
PKGFLAGS=`pkg-config --cflags --libs gtk+-2.0 gthread-2.0`

g2sc: main.c
	$(CC) $(CFLAGS) $(PKGFLAGS) main.c -o g2sc -lsmbclient
	
clean:
	rm -f g2sc

install:
	mkdir /usr/share/g2sc
	cp g2sc.conf /usr/share/g2sc
	cp g2sc.png /usr/share/g2sc
	cp g2sc /usr/local/bin
	cp g2sc.desktop /usr/share/applications

uninstall:
	rm -f /usr/local/bin/g2sc
	rm -r -f /usr/share/g2sc
	rm -f /usr/share/applications/g2sc.desktop
