2003-10-09 22:29:59 +00:00
|
|
|
APIS= gtkhtml-api.xml
|
|
|
|
|
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gdk/gdk-symbols.xml \
|
|
|
|
../gtk/gtk-symbols.xml \
|
|
|
|
../gtk/gtk-api.xml \
|
|
|
|
../gnome/gnome-api.xml
|
2003-09-03 11:00:03 +00:00
|
|
|
|
2003-10-07 05:52:23 +00:00
|
|
|
RUNTIME=mono
|
2003-10-09 22:29:59 +00:00
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=gtkhtml-sharp.dll
|
2003-09-03 11:00:03 +00:00
|
|
|
|
2003-11-18 19:57:05 +00:00
|
|
|
@ENABLE_GTKHTML_TRUE@ all: $(ASSEMBLY)
|
|
|
|
@ENABLE_GTKHTML_FALSE@ all:
|
2003-09-03 11:00:03 +00:00
|
|
|
|
2003-10-14 20:29:59 +00:00
|
|
|
generated-stamp: gtkhtml-api.xml *.custom ../generator/gapi_codegen.exe Gtk.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gtkhtml-api.xml --metadata=Gtk.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=gtkhtml-sharp && touch generated-stamp
|
2003-09-03 11:00:03 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): generated-stamp
|
2003-11-29 23:48:14 +00:00
|
|
|
$(MCS) --unsafe --target library \
|
2003-10-09 22:29:59 +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 -r ../art/art-sharp.dll \
|
|
|
|
-r ../gnome/gnome-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
|
2003-09-03 11:00:03 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-07 05:52:23 +00:00
|
|
|
rm -f generated-stamp
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f $(ASSEMBLY)
|
2003-09-03 11:00:03 +00:00
|
|
|
rm -rf generated
|
|
|
|
|
2003-10-07 05:52:23 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
2003-09-03 11:00:03 +00:00
|
|
|
|
2003-10-07 05:52:23 +00:00
|
|
|
install: all
|
2003-11-19 01:50:07 +00:00
|
|
|
@ENABLE_GTKHTML_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
|
|
@ENABLE_GTKHTML_TRUE@ ../mkinstalldirs $(apidir) && \
|
|
|
|
@ENABLE_GTKHTML_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_GTKHTML_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_GTKHTML_TRUE@ done && \
|
|
|
|
@ENABLE_GTKHTML_TRUE@ cp $(ASSEMBLY) $(libdir)
|