include ../../common/rules.mak

OBJECT=libxdef_numbers.so

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

install:

	cp $(OBJECT) /usr/lib/xdefactor-ng
	cp Numbers.conf /etc/defactor-ng/x/modules
	echo "/modules/Numbers.conf" >> /etc/defactor-ng/x/modules.conf
	echo "$(LIB_DIR)/$(OBJECT)" >> /etc/defactor-ng/x/modules.conf
	ldconfig
clean:
	rm -rf *.o *.so
