OBJECT = libxdef_clients.so

all:
	gcc -Wall -c moduleClients.c `pkg-config gtk+-2.0 --cflags --libs glib-2.0` -lpq
	gcc -Wall -c showClientsClist.c `pkg-config gtk+-2.0 --cflags --libs glib-2.0` -lpq
	ld -shared -o $(OBJECT) moduleClients.o showClientsClist.o


install:
	
	cp $(OBJECT) /usr/lib/xdefactor-ng
	cp Clients.conf /etc/defactor-ng/x/modules
	echo "/modules/Clients.conf" >> /etc/defactor-ng/x/modules.conf
	echo $(OBJECT) >> /etc/defactor-ng/x/modules.conf
