2003-10-09 22:29:59 +00:00
|
|
|
APIS= atk-api.xml
|
2002-01-07 00:25:51 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
INCLUDE_APIS = ../pango/pango-api.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=atk-sharp.dll
|
2002-01-07 00:25:51 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-01-07 00:25:51 +00:00
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Atk.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=atk-api.xml --metadata=Atk.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=art-sharp && touch generated-stamp
|
2002-05-02 21:57:41 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): generated-stamp
|
|
|
|
$(MCS) --unsafe -nowarn:0660,0661 --target library \
|
|
|
|
-r ../glib/glib-sharp.dll -r ../pango/pango-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) && \
|
2003-10-28 20:03:29 +00:00
|
|
|
../mkinstalldirs $(apidir) && \
|
2003-10-09 22:29:59 +00:00
|
|
|
for i in $(APIS); do \
|
|
|
|
cp $$i $(apidir) || true; \
|
|
|
|
done && \
|
|
|
|
cp $(ASSEMBLY) $(libdir)
|