OBJECT = libxdef_stores.so

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


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