2003-10-09 22:29:59 +00:00
|
|
|
APIS= pango-api.xml
|
2002-01-04 02:02:28 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=pango-sharp.dll
|
2002-01-04 02:02:28 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-01-04 02:02:28 +00:00
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Pango.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=pango-api.xml --metadata=Pango.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--outdir=generated --customdir=. --assembly-name=pango-sharp \
|
|
|
|
&& touch generated-stamp
|
2002-05-02 21:57:41 +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:46:39 +00:00
|
|
|
-r System.Drawing -r ../glib/glib-sharp.dll \
|
2003-10-09 22:29:59 +00:00
|
|
|
-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)
|