|
Revision 172, 0.8 kB
(checked in by asterix, 5 years ago)
|
|
icon in systray (it represents state and changes when we recieve a message not poped up)
|
| Line | |
|---|
| 1 | # Set the C flags to include the GTK+ and Python libraries |
|---|
| 2 | CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -I/usr/include/python2.3/ -I. |
|---|
| 3 | LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` |
|---|
| 4 | |
|---|
| 5 | # Build the shared object |
|---|
| 6 | #trayicon.so: trayicon.o eggtrayicon.o trayiconmodule.o |
|---|
| 7 | all: trayicon.o eggtrayicon.o trayiconmodule.o |
|---|
| 8 | $(CC) $(LDFLAGS) -shared $^ -o trayicon.so |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | # The path to the GTK+ python types |
|---|
| 12 | DEFS=`pkg-config --variable=defsdir pygtk-2.0` |
|---|
| 13 | |
|---|
| 14 | # Generate the C wrapper from the defs and our override file |
|---|
| 15 | trayicon.c: trayicon.defs trayicon.override |
|---|
| 16 | pygtk-codegen-2.0 --prefix trayicon \ |
|---|
| 17 | --register $(DEFS)/gdk-types.defs \ |
|---|
| 18 | --register $(DEFS)/gtk-types.defs \ |
|---|
| 19 | --override trayicon.override \ |
|---|
| 20 | trayicon.defs > $@ |
|---|
| 21 | |
|---|
| 22 | # A rule to clean the generated files |
|---|
| 23 | clean: |
|---|
| 24 | rm -f trayicon.so *.o trayicon.c *~ |
|---|
| 25 | |
|---|
| 26 | .PHONY: clean |
|---|