view finch/libgnt/pygnt/Makefile.make @ 22536:575c4bda3b23

another patch from Maiku, this time handling IPG so we can receive paging. I am not sure why anyone would ever want to use this, but apparently some people find it helpful. Blame me if it doesn't work Fixes #5232
author Ka-Hing Cheung <khc@hxbc.us>
date Fri, 21 Mar 2008 05:24:21 +0000
parents 6b16fca71f8b
children
line wrap: on
line source

CC = gcc
CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -I/usr/include/python2.4/ -I.. -g -O0
LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0 gnt`
 
gnt.so: gnt.o gntmodule.o common.o
	$(CC) $(LDFLAGS) -shared $^ -o $@

gnt.c: gnt.def *.override common.c common.h
	pygtk-codegen-2.0 --prefix gnt \
	--override gnt.override \
	gnt.def > $@

#python codegen/codegen.py --prefix gnt \

clean:
	@rm *.so *.o gnt.c