2003-10-09 22:29:59 +00:00
|
|
|
APIS= gnomedb-api.xml
|
|
|
|
|
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml \
|
|
|
|
../art/art-api.xml \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gdk/gdk-symbols.xml \
|
|
|
|
../gtk/gtk-api.xml \
|
|
|
|
../gtk/gtk-symbols.xml \
|
|
|
|
../gnome/gnome-api.xml \
|
|
|
|
../gda/gda-api.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
2002-09-11 09:43:17 +00:00
|
|
|
MCS=mcs
|
2003-10-09 22:29:59 +00:00
|
|
|
ASSEMBLY=gnomedb-sharp.dll
|
2002-09-11 09:43:17 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GNOMEDB_TRUE@ all: $(ASSEMBLY)
|
2002-09-11 09:43:17 +00:00
|
|
|
@ENABLE_GNOMEDB_FALSE@ all:
|
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe GnomeDb.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gnomedb-api.xml --metadata=GnomeDb.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=gnomedb-sharp && touch generated-stamp
|
2002-09-11 09:43:17 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): *.cs 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 ../art/art-sharp.dll \
|
|
|
|
-r ../gdk/gdk-sharp.dll -r ../gtk/gtk-sharp.dll \
|
|
|
|
-r ../gnome/gnome-sharp.dll -r ../gda/gda-sharp.dll \
|
|
|
|
-o $(ASSEMBLY) --recurse '*.cs'
|
2002-09-11 09:43:17 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-09-11 09:43:17 +00:00
|
|
|
rm -rf generated
|
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
|
|
|
|
2002-09-11 09:43:17 +00:00
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GNOMEDB_TRUE@ ../mkinstalldirs $(libdir) && \
|
2003-10-28 20:03:29 +00:00
|
|
|
@ENABLE_GNOMEDB_TRUE@ ../mkinstalldirs $(apidir) && \
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GNOMEDB_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_GNOMEDB_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_GNOMEDB_TRUE@ done && \
|
|
|
|
@ENABLE_GNOMEDB_TRUE@ cp $(ASSEMBLY) $(libdir)
|