2003-10-09 22:29:59 +00:00
|
|
|
APIS= gdk-api.xml gdk-symbols.xml
|
2001-09-21 14:03:17 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
INCLUDE_APIS = ../atk/atk-api.xml \
|
|
|
|
../pango/pango-api.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=gdk-sharp.dll
|
2001-09-21 14:03:17 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2001-09-21 14:03:17 +00:00
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Gdk.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gdk-api.xml --metadata=Gdk.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=gdk-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 \
|
|
|
|
-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
|
2002-05-02 21:57:41 +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); \
|
|
|
|
done && \
|
|
|
|
cp $(ASSEMBLY) $(libdir)
|