GtkSharp/gda/Makefile.in

39 lines
1 KiB
Makefile
Raw Normal View History

APIS= gda-api.xml
RUNTIME=mono
MCS=mcs
ASSEMBLY=gda-sharp.dll
@ENABLE_GDA_TRUE@ all: $(ASSEMBLY)
@ENABLE_GDA_FALSE@ all:
all: $(ASSEMBLY)
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Gda.metadata
$(RUNTIME) ../parser/gapi-fixup.exe --api=gda-api.xml --metadata=Gda.metadata && \
$(RUNTIME) ../generator/gapi_codegen.exe \
--generate $(APIS) --outdir=generated --customdir=. \
--assembly-name=gda-sharp && touch generated-stamp
$(ASSEMBLY): generated-stamp *.cs
$(MCS) --unsafe --target library \
-r ../glib/glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
clean:
rm -f generated-stamp
rm -f $(ASSEMBLY)
rm -rf generated
prefix=@prefix@
DESTDIR=
apidir=$(DESTDIR)$(prefix)/share/gapi
libdir=$(DESTDIR)$(prefix)/lib
install: all
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(libdir) && \
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(apidir) && \
@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)