2004-01-17 22:47:35 +00:00
|
|
|
APIS = vte-api.xml
|
|
|
|
|
|
|
|
INCLUDE_APIS = \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gtk/gtk-api.xml \
|
|
|
|
../atk/atk-api.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=vte-sharp.dll
|
|
|
|
|
|
|
|
@ENABLE_VTE_TRUE@ all: $(ASSEMBLY)
|
|
|
|
@ENABLE_VTE_FALSE@ all:
|
|
|
|
|
|
|
|
generated-stamp: vte-api.xml
|
2004-01-19 22:24:14 +00:00
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=$(APIS) --metadata=Vte.metadata && \
|
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) --include $(INCLUDE_APIS) --outdir=generated --customdir=. --assembly-name=vte-sharp && touch generated-stamp
|
2004-01-17 22:47:35 +00:00
|
|
|
|
2004-01-22 03:25:24 +00:00
|
|
|
$(ASSEMBLY): generated-stamp
|
2004-01-19 22:33:28 +00:00
|
|
|
$(MCS) --unsafe --target library \
|
2004-01-22 03:25:24 +00:00
|
|
|
-r ../glib/glib-sharp.dll -r ../pango/pango-sharp.dll \
|
|
|
|
-r ../atk/atk-sharp.dll -r ../gdk/gdk-sharp.dll \
|
|
|
|
-r ../gtk/gtk-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
|
2004-01-17 22:47:35 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(ASSEMBLY)
|
|
|
|
rm -f generated-stamp
|
|
|
|
rm -rf generated
|
|
|
|
|
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
|
|
|
|
|
|
|
install: all
|
2004-01-17 23:03:59 +00:00
|
|
|
@ENABLE_VTE_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
|
|
@ENABLE_VTE_TRUE@ ../mkinstalldirs $(apidir) && \
|
|
|
|
@ENABLE_VTE_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_VTE_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_VTE_TRUE@ done && \
|
|
|
|
@ENABLE_VTE_TRUE@ cp $(ASSEMBLY) $(libdir)
|