OBJECT=libxdef_sample.so

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

install:

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