retag
[mcs.git] / tools / cilc / Makefile
blob776eb0dcfbaf965b8a0894e0b797e161af7272c2
1 thisdir = tools/cilc
2 SUBDIRS =
3 include ../../build/rules.make
5 PROGRAM = cilc.exe
7 # fixme: make clean doesn't know to rm -rf generated.
8 # and we can't extend the make clean target.
10 CLEAN_FILES = generated Demo.dll Demo.pdb
12 OTHER_RES = res-Makefile
14 RESOURCE_FILES = $(OTHER_RES)
16 EXTRA_DISTFILES = demo.c README TODO Test.cs $(RESOURCE_FILES)
18 include ../../build/executable.make
20 LOCAL_MCS_FLAGS=-r:Mono.Posix.dll $(OTHER_RES:%=-resource:%)
22 cilc.exe: $(RESOURCE_FILES)
24 test-local: Demo.dll
26 run-test-local: run-cilc-test
28 run-cilc-test: cilc.exe Demo.dll
29 rm -rf generated
30 $(RUNTIME) $(RUNTIME_FLAGS) cilc.exe Demo.dll generated
31 $(MAKE) -C generated
32 $(CCOMPILE) -Wall `pkg-config --cflags --libs glib-2.0 mono` -Igenerated -Lgenerated -ldemo demo.c -o generated/demo
34 Demo.dll: Test.cs
35 $(CSCOMPILE) /target:library /out:$@ $^