build:  fileread.so

.PHONY: build install

fileread.so: fileread.o
	gcc -shared -Wl -o fileread.so fileread.o

fileread.o: fileread.c
	gcc -fPIC -W -Wall -pedantic `gtk-config --cflags` `imlib-config --cflags-gdk` -c fileread.c -o fileread.o

install:
	cp fileread.so $(HOME)/.gkrellm/plugins

