view finch/libgnt/pygnt/Makefile.make @ 20225:3c415481a943

applied changes from 388507622896337fe56945f851e3aabee3c0427f through 025faf23aaac403798451974c320c4de6df470d5
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:48:49 +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