File: Makefile.am

package info (click to toggle)
clutter-sharp 1.0.0~alpha3~git20090817.r1.349dba6-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 4,104 kB
  • ctags: 2,193
  • sloc: xml: 23,456; cs: 9,946; sh: 3,393; perl: 1,213; makefile: 270; awk: 50; sed: 13
file content (31 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
assemblydir = $(prefix)/lib/clutter-sharp
assembly_DATA = \
	glib-sharp.dll \
	glib-sharp.dll.config

.PHONY: patch-glib

all: patch-glib

patch-glib: patch.dll
	monodis glib-sharp.dll | awk -v self=$(srcdir)/apply-patch.awk \
		-v mode=1 -f $(srcdir)/apply-patch.awk > glib-sharp.il
	ilasm /dll /output:glib-sharp.dll glib-sharp.il
	rm glib-sharp.il

patch.dll: patch.cs glib-sharp.dll
	$(MCS) -out:$@ -target:library -nowarn:0169 -r:glib-sharp.dll $<

%.dll:
	for lib in $(GTKSHARP_LIBS); do \
		case "$$lib" in *$@*) \
			slib="$$(expr substr $$lib 4 \( length $$lib \))"; \
			echo "Copying $$slib"; \
			rlib="$$(readlink -e $$slib)"; \
			cp $$rlib $$rlib.config . ;; \
		esac; \
	done

EXTRA_DIST = $(wildcard *.cs) apply-patch.awk
CLEANFILES = $(wildcard *.dll) $(wildcard *.config)
MAINTAINERCLEANFILES = Makefile.in