3 include ..
/..
/build
/rules.make
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
)
26 run-test-local
: run-cilc-test
28 run-cilc-test
: cilc.exe Demo.dll
30 $(RUNTIME
) $(RUNTIME_FLAGS
) cilc.exe Demo.dll generated
32 $(CCOMPILE
) -Wall
`pkg-config --cflags --libs glib-2.0 mono` -Igenerated
-Lgenerated
-ldemo demo.c
-o generated
/demo
35 $(CSCOMPILE
) /target
:library
/out
:$@
$^