2003-10-09 22:29:59 +00:00
|
|
|
APIS= gst-api.xml
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
RUNTIME=mono
|
|
|
|
MCS=mcs
|
|
|
|
ASSEMBLY=gst-sharp.dll
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
all: $(ASSEMBLY)
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
generated-stamp: $(APIS) ../generator/gapi_codegen.exe
|
|
|
|
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
|
|
|
|
--outdir=generated --customdir=. --assembly-name=gst-sharp \
|
|
|
|
&& touch generated-stamp
|
2002-11-01 05:10:00 +00:00
|
|
|
|
2003-10-09 22:29:59 +00:00
|
|
|
$(ASSEMBLY): *.cs generated-stamp
|
|
|
|
$(MCS) --unsafe --target library \
|
|
|
|
-r glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
|
2002-11-01 05:10:00 +00:00
|
|
|
|
|
|
|
clean:
|
2003-10-09 22:29:59 +00:00
|
|
|
rm -f generated-stamp
|
|
|
|
rm -f $(ASSEMBLY)
|
2002-11-01 05:10:00 +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-11-01 05:10:00 +00:00
|
|
|
install: all
|
2003-10-09 22:29:59 +00:00
|
|
|
../mkinstalldirs $(libdir) && \
|
|
|
|
for i in $(APIS); do \
|
|
|
|
cp $$i $(apidir) || true; \
|
|
|
|
done && \
|
|
|
|
cp $(ASSEMBLY) $(libdir)
|
2002-11-01 05:10:00 +00:00
|
|
|
|