mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:55:36 +00:00
b6a0a2b504
* gtk-sharp.pc.in : Created to be used for the detection of Gtk#. * parser/gapi.pc.in : Created to be used for the detection of gapi.pl. * makefile : Deleted it. (Actually, renamed it to Makefile.in.) * Makefile.in : Created it from the old makefile, and modified it to account for gtk-sharp.pc. * configure.in : Made it so it will generate gtk-sharp.pc from gtk-sharp.pc.in, parser/gapi.pc from parser/gapi.pc.in, and Makefile from Makefile.in. * parser/Makefile.in : Modified it to account for parser/gapi.pc. svn path=/trunk/gtk-sharp/; revision=13846
39 lines
901 B
Makefile
39 lines
901 B
Makefile
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@
|
|
|
|
SCRIPTS = \
|
|
gapi.pl \
|
|
gapi_pp.pl \
|
|
gapi2xml.pl
|
|
|
|
MODULES=GAPI/Metadata.pm
|
|
|
|
all: $(SCRIPTS) $(MODULES) gapi_format_xml
|
|
|
|
gapi_format_xml: formatXml.c
|
|
$(CC) $(CPPFLAGS) -o gapi_format_xml formatXml.c `pkg-config --cflags --libs libxml-2.0 glib-2.0` $(CFLAGS) $(BASE_DEPENDENCIES_CFLAGS)
|
|
|
|
clean:
|
|
rm -f gapi_format_xml
|
|
|
|
distclean:
|
|
rm -f Makefile gapi_format_xml
|
|
rm -f gapi.pc
|
|
|
|
prefix=@prefix@
|
|
DESTDIR=
|
|
|
|
install: all
|
|
for i in $(SCRIPTS) gapi_format_xml; do \
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/bin && \
|
|
cp $$i $(DESTDIR)$(prefix)/bin; \
|
|
done
|
|
for i in $(MODULES); do \
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/share/perl5/GAPI && \
|
|
cp $$i $(DESTDIR)$(prefix)/share/perl5/GAPI; \
|
|
done
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/lib/pkgconfig && \
|
|
cp gapi.pc $(DESTDIR)$(prefix)/lib/pkgconfig
|