include ../common/rules.mak

OBJECT=libxdef_sample.so

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

clean:
	rm -f *.so *.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 "$(LIB_DIR)/$(OBJECT)" >> /etc/defactor-ng/x/modules.conf
