2003-10-09 22:29:59 +00:00
|
|
|
APIS= gda-api.xml
|
|
|
|
|
|
|
|
RUNTIME=mono
|
2002-09-01 10:28:11 +00:00
|
|
|
MCS=mcs
|
2003-10-09 22:29:59 +00:00
|
|
|
ASSEMBLY=gda-sharp.dll
|
2002-09-01 10:28:11 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GDA_TRUE@ all: $(ASSEMBLY)
|
2002-09-01 10:28:11 +00:00
|
|
|
@ENABLE_GDA_FALSE@ all:
|
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-09-01 10:28:11 +00:00
|
|
|
|
2003-10-13 03:06:22 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Gda.metadata
|
|
|
|
$(RUNTIME) ../parser/gapi-fixup.exe --api=gda-api.xml --metadata=Gda.metadata && \
|
2003-10-09 22:29:59 +00:00
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe \
|
|
|
|
--generate $(APIS) --outdir=generated --customdir=. \
|
|
|
|
--assembly-name=gda-sharp && touch generated-stamp
|
2002-09-01 10:28:11 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): generated-stamp *.cs
|
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 -o $(ASSEMBLY) --recurse '*.cs'
|
2002-09-01 10:28:11 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-09-01 10:28:11 +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-01 10:28:11 +00:00
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(libdir) && \
|
2003-10-28 20:03:29 +00:00
|
|
|
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(apidir) && \
|
2003-10-09 22:29:59 +00:00
|
|
|
@ENABLE_GDA_TRUE@ for i in $(APIS); do \
|
|
|
|
@ENABLE_GDA_TRUE@ cp $$i $(apidir) || true; \
|
|
|
|
@ENABLE_GDA_TRUE@ done && \
|
|
|
|
@ENABLE_GDA_TRUE@ cp $(ASSEMBLY) $(libdir)
|