2003-10-09 22:29:59 +00:00
|
|
|
APIS= gtk-api.xml gtk-symbols.xml
|
2002-04-18 21:46:56 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gdk/gdk-symbols.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=gtk-sharp.dll
|
2001-09-16 23:15:56 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2001-09-16 23:15:56 +00:00
|
|
|
|
2003-10-14 20:29:59 +00:00
|
|
|
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Gtk.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gtk-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=gtk-sharp && touch generated-stamp
|
2002-05-02 21:57:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): *.cs generated-stamp
|
|
|
|
$(MCS) --unsafe -nowarn:0660,0661 --target library \
|
|
|
|
-r System.Drawing -r ../glib/glib-sharp.dll \
|
|
|
|
-r ../pango/pango-sharp.dll -r ../atk/atk-sharp.dll \
|
|
|
|
-r ../gdk/gdk-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
|
2002-03-30 00:18:41 +00:00
|
|
|
|
2002-05-08 00:29:51 +00:00
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-08-23 21:22:16 +00:00
|
|
|
rm -rf generated
|
2001-10-05 11:34:17 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
2002-05-02 21:57:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
install: all
|
|
|
|
../mkinstalldirs $(libdir) && \
|
|
|
|
for i in $(APIS); do \
|
|
|
|
cp $$i $(apidir) || true; \
|
|
|
|
done && \
|
|
|
|
cp $(ASSEMBLY) $(libdir)
|