Import 1.9b4 extra tag from cvs
[mozilla-extra.git] / extensions / mono / test / Makefile
blob099d33430539734580a6cef8ec511b3eda5880a9
1 MCS ?= mcs
2 MCSFLAGS ?= /debug
4 all: tests
6 test.h: test.idl
7 /usr/lib/mozilla-1.6/xpidl -m header -I /usr/share/idl/mozilla-1.6 test.idl
9 test.xpt: test.idl
10 /usr/lib/mozilla-1.6/xpidl -m typelib -I /usr/share/idl/mozilla-1.6 test.idl
12 test.so: test.h test.cpp
13 c++ -g -shared -o test.so `pkg-config --cflags mozilla-xpcom` test.cpp `pkg-config --libs mozilla-xpcom`
15 %.exe: %.cs
16 $(MCS) $(MCSFLAGS) -unsafe /out:$@ /r:../Mozilla.XPCOM.Interfaces.dll /r:../xpcom-dotnet.dll $<
18 TESTOBJS=test-invoke.exe test.so test.xpt generate-assembly.exe sample-app.exe loader.exe
20 tests: $(TESTOBJS)
22 clean:
23 rm -f test.h $(TESTOBJS)