# $FreeBSD: ports/mail/gmail-notify/files/Makefile.in,v 1.1 2007/07/30 09:41:37 alexbl Exp $
# Makefile to build trayicon.so

CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -I@PYTHON_INCLUDEDIR@ -I. -Wall -I${LOCALBASE}/share/pygtk/2.0 -I${LOCALBASE}/libdata/pkgconfig -DEGG_COMPILATION -fPIC
LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0`

DEFS_DIR= ${LOCALBASE}/share/pygtk/2.0/defs/

CODEGEN = pygtk-codegen-2.0

all: trayicon.so

trayicon.so: trayicon.o eggtrayicon.o trayiconmodule.o
	$(CC) $(LDFLAGS) -shared $^ -o $@

trayicon.c: trayicon.defs eggtrayicon.h trayicon.override
	$(CODEGEN) --prefix pytrayicon \
	--register $(DEFS_DIR)/gdk-types.defs \
	--register $(DEFS_DIR)/gtk-types.defs \
	--override trayicon.override \
	trayicon.defs > $@

clean:
	rm -f *.o *.so trayicon.c *~


syntax highlighted by Code2HTML, v. 0.9.1