Index: libspe2/Makefile =================================================================== --- libspe2/Makefile (revision 38) +++ libspe2/Makefile (working copy) @@ -59,9 +59,11 @@ libspe12-all: install: libspe12-install $(INSTALL_DIR) $(ROOT)$(libdir) + $(INSTALL_DIR) $(ROOT)$(libdir)/pkgconfig $(INSTALL_DATA) $(libspe2_A) $(ROOT)$(libdir)/$(libspe2_A) $(INSTALL_PROGRAM) $(libspe2_SO) $(ROOT)$(libdir)/$(libspe2_SO) $(INSTALL_LINK) $(libspe2_SO) $(ROOT)$(libdir)/$(libspe2_SONAME) + $(INSTALL_DATA) libspe2.pc $(ROOT)$(libdir)/pkgconfig $(INSTALL_LINK) $(libspe2_SONAME) $(ROOT)$(libdir)/libspe2.so $(INSTALL_DIR) $(ROOT)$(includedir) $(INSTALL_DATA) libspe2.h $(ROOT)$(includedir)/libspe2.h @@ -83,7 +85,23 @@ tests: tests/Makefile tags: $(CTAGS) -R . -$(libspe2_SO): $(libspe2_OBJS) base-all event-all +libspe2.pc: + @echo -e \ + prefix=$(prefix) \\n\ + exec_prefix=$(exec_prefix) \\n\ + libdir=$(libdir) \\n\ + includedir=$(includedir) \\n\ +\\n\ + Name: libspe2 \\n\ + Description: A wrapper library to adapt the JSRE SPU usage model to SPUFS \\n\ + Version: ${MAJOR_VERSION}.${MINOR_VERSION} \\n\ + Requires: \\n\ + Conflicts: \\n\ + Libs: -L\${libdir} -lrt -lpthread \\n\ + Cflags: -I\${includedir} \ + > $@ + +$(libspe2_SO): $(libspe2_OBJS) base-all event-all libspe2.pc $(CC) $(CFLAGS) -shared -o $@ $(libspe2_OBJS) spebase/*.o speevent/*.o -lrt -lpthread -Wl,--soname=${libspe2_SONAME} $(libspe2_A): $(libspe2_OBJS) base-all event-all @@ -183,6 +201,7 @@ clean: base-clean event-clean elfspe-cle rm -rf xml rm -rf html rm -rf latex + rm -f libspe2.pc make -C tests clean base-clean: