Import 1.9b4 extra tag from cvs
[mozilla-extra.git] / extensions / mono / src / Makefile
blobf2b7accbd910758ead846fd3ff57e304145f3c3c
1 CXXFLAGS = -shared -g -fPIC -fno-rtti $(shell pkg-config --cflags mozilla-xpcom)
2 LDFLAGS = $(shell pkg-config --libs mozilla-xpcom)
4 all: xpcom-dotnet.so xpcom-dotnet.dll
6 MCS ?= mcs
7 MCSFLAGS ?= /debug
9 xpcom-dotnet.so: typeinfo.cpp xpcom-core.cpp wrapped-clr.cpp
10 $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
12 xpcom-dotnet.dll: typeinfo.cs xptinvoke.cs wrapped-clr.cs components.cs proxy-generator.cs interface-generator.cs
13 $(MCS) $(MCSFLAGS) -unsafe /t:library /out:$@ $^
15 clean:
16 rm -f xpcom-dotnet.{so,dll}