Source

anjuta-pyloader / Makefile

Full commit
CFLAGS =`python-config --cflags` `pkg-config --cflags libanjuta-1.0 pygobject-2.0`
LIBS =`python-config --libs` `pkg-config --libs libanjuta-1.0`

all: libanjuta-pyloader.so Anjuta-1.0.typelib IAnjuta-1.0.typelib

libanjuta-pyloader.so : plugin.o
	gcc -shared $(LIBS) -o $@ $^

%.o: %.c
	gcc $(CFLAGS) -c -o $@ $^

%.typelib: %.gir
	g-ir-compiler -o $@ $^

clean:
	rm -f plugin.o libanjuta-pyloader.so Anjuta-1.0.typelib IAnjuta-1.0.typelib

install: libanjuta-pyloader.so Anjuta-1.0.typelib IAnjuta-1.0.typelib
	test -z "${DESTDIR}" || mkdir -p ${DESTDIR}
	install -m 644 libanjuta-pyloader.so anjuta-pyloader.plugin ${DESTDIR}/`pkg-config libanjuta-1.0 --variable=libdir`/anjuta
	install -m 644  Anjuta-1.0.gir IAnjuta-1.0.gir `pkg-config gobject-introspection-1.0 --variable=girdir`
	install -m 644  Anjuta-1.0.typelib IAnjuta-1.0.typelib `pkg-config gobject-introspection-1.0 --variable=typelibdir`