mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 02:25:37 +00:00
d69268abbf
* configure.in : add mono check. expand wrapper scripts * generator/Makefile.in : use install. install a gapi-codegen wrapper. * generator/SymbolTable.cs : add SimpleGen for short * generator/gapi-codegen.in : new wrapper script in file. * parser/Makefile.in : use install. install a gapi-fixup wrapper. * generator/gapi-fixup.in : new wrapper script in file. * parser/gapi2xml.pl : deal with non-namespaced enums. ignore forward struct declarations. svn path=/trunk/gtk-sharp/; revision=19712
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
BASE_DEPENDENCIES_CFLAGS = @BASE_DEPENDENCIES_CFLAGS@
|
|
MCS=mcs
|
|
|
|
SCRIPTS = \
|
|
gapi.pl \
|
|
gapi_pp.pl \
|
|
gapi-fixup \
|
|
gapi-parser \
|
|
gapi2xml.pl
|
|
|
|
MODULES=GAPI/Metadata.pm
|
|
|
|
all: $(SCRIPTS) $(MODULES) gapi_format_xml gapi-fixup.exe
|
|
|
|
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)
|
|
|
|
gapi-fixup.exe: gapi-fixup.cs
|
|
$(MCS) gapi-fixup.cs
|
|
|
|
clean:
|
|
rm -f gapi_format_xml
|
|
rm -f gapi-fixup.exe
|
|
|
|
distclean:
|
|
rm -f Makefile gapi_format_xml
|
|
rm -f gapi.pc
|
|
|
|
prefix=@prefix@
|
|
install=@INSTALL@
|
|
DESTDIR=
|
|
|
|
install: all
|
|
for i in $(SCRIPTS) gapi_format_xml gapi-fixup.exe; do \
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/bin && \
|
|
$(install) $$i $(DESTDIR)$(prefix)/bin; \
|
|
done
|
|
for i in $(MODULES); do \
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/share/perl5/GAPI && \
|
|
$(install) $$i $(DESTDIR)$(prefix)/share/perl5/GAPI; \
|
|
done
|
|
../mkinstalldirs $(DESTDIR)$(prefix)/lib/pkgconfig && \
|
|
$(install) -m 644 gapi.pc $(DESTDIR)$(prefix)/lib/pkgconfig
|