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
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
:$@
$^
16 rm -f xpcom-dotnet.
{so
,dll
}