Merge remote-tracking branch 'uix-inputmethod/tizen'
[platform/core/csapi/tizenfx.git] / src / Makefile
1 PROJ_DIR=$(shell pwd)
2 SRCS=\
3         src/Interop/Interop.Libteec.cs \
4         src/Interop/Interop.Types.cs \
5         src/Interop/Interop.Libraries.cs \
6         src/Interop/Interop.Errors.cs \
7         src/Secure/Libteec.cs \
8         src/Secure/Properties/AssemblyInfo.cs \
9         Test.cs
10
11 test.exe: ${SRCS}
12         mcs ${SRCS} -out:test.exe
13
14 .PHONY: build
15 build: test.exe
16
17 .PHONY: build-csuml
18 build-csuml:
19         (cd ~/csapi/csuml && dotnet restore && dotnet build)
20
21 pack: ${SRCS}
22         zip -r csapi-libteec.zip src
23
24 csapi-libteec.puml: build-csuml ${SRCS}
25         @echo "create csapi-libteec.puml"
26         (cd ~/csapi/csuml && dotnet run -- ${PROJ_DIR}/filelist.lst) > csapi-libteec.puml
27
28 csapi-libteec.png: csapi-libteec.puml
29         java -jar ~/bin/plantuml.jar csapi-libteec.puml
30
31
32 # .phony is a target that is not a real file
33 .PHONY: diagram diagram-show
34 diagram: csapi-libteec.png
35 diagram-show: diagram
36         xdg-open csapi-libteec.png
37
38 xbuild-hello:
39         xbuild /p:Configuration=Release HelloWorld.csproj
40