2003-10-09 22:29:59 +00:00
|
|
|
APIS= glade-api.xml
|
|
|
|
|
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml \
|
|
|
|
../gdk/gdk-api.xml \
|
|
|
|
../gdk/gdk-symbols.xml \
|
|
|
|
../gtk/gtk-api.xml \
|
|
|
|
../gtk/gtk-symbols.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
2002-08-12 19:14:44 +00:00
|
|
|
MCS=mcs
|
2003-10-09 22:29:59 +00:00
|
|
|
ASSEMBLY=glade-sharp.dll
|
2002-08-12 19:14:44 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GLADE_TRUE@ all: $(ASSEMBLY)
|
2002-08-12 19:14:44 +00:00
|
|
|
@ENABLE_GLADE_FALSE@ all:
|
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe
|
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=art-sharp && touch generated-stamp
|
2002-08-12 19:14:44 +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 -r ../gtk/gtk-sharp.dll \
|
|
|
|
-o $(ASSEMBLY) --recurse '*.cs'
|
2002-08-12 19:14:44 +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
|
2002-08-12 19:14:44 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
prefix=@prefix@
|
|
|
|
DESTDIR=
|
|
|
|
apidir=$(DESTDIR)$(prefix)/share/gapi
|
|
|
|
libdir=$(DESTDIR)$(prefix)/lib
|
|
|
|
|
2002-08-12 19:14:44 +00:00
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GLADE_TRUE@ ../mkinstalldirs $(libdir) && \
|
|
|
|
@ENABLE_GLADE_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_GLADE_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_GLADE_TRUE@ done && \
|
|
|
|
@ENABLE_GLADE_TRUE@ cp $(ASSEMBLY) $(libdir)
|