CC = gcc

GIMPTOOL = gimptool-2.0

GIMP_LDFLAGS=`$(GIMPTOOL) --libs`
GIMP_CFLAGS=`$(GIMPTOOL) --cflags`

CFLAGS=$(GIMP_CFLAGS) $(RPM_OPT_FLAGS)
# -fno-common -ffast-math -frename-registers -fomit-frame-pointer

LDFLAGS=$(GIMP_LDFLAGS) -lm


all: blur-gauss-grow
	@echo
	@echo 'Now type "make install" to install blur-gauss-grow'
	@echo 

install: blur-gauss-grow
	$(GIMPTOOL) --install-bin blur-gauss-grow
	@echo
	@echo After restarting the Gimp you should find the
	@echo following items in the pop-up image menu:
	@echo
	@echo "  * Filters/Blur/Gauss grow"
	@echo

blur-gauss-grow: blur-gauss.c
	$(CC) $(CFLAGS) -o $@ blur-gauss.c $(LDFLAGS)

clean:
	-rm -f *~ *.o core blur-gauss-grow

