#! /usr/bin/make -f

glib glibheaders: glib.buildstamp

.SILENT: glib.buildstamp
glib.buildstamp:
	cd src && ./configure --prefix=/usr --includedir=/usr/include &&\
	make && make DESTDIR=$$(pwd)/../dest install
	oh-strip -gl usr/lib/libglib-2.0.so.0.2000.0
	oh-strip -gl usr/lib/libgobject-2.0.so.0.2000.0
	oh-strip -gl usr/lib/libgmodule-2.0.so.0.2000.0
	oh-strip -gl usr/lib/libgio-2.0.so.0.2000.0
	oh-strip -gl usr/lib/libgthread-2.0.so.0.2000.0
	bash
	oh-installfiles glib glibheaders
	oh-installdocs glib
	oh-gencontrol glib glibheaders
	oh-buildopk glib glibheaders
	touch glib.buildstamp