Merge: nitc: check pkg-config packages availability later
[nit.git] / contrib / tinks / Makefile
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 all: bin/server bin/tinks3d
16
17 pre-build: src/server/server_serialize.nit
18
19 # Client
20 bin/tinks3d: $(shell nitls -M src/client/client3d.nit -m linux)
21 nitserial -o src/client/client_serialize.nit src/client/client3d.nit
22 nitc -o bin/tinks3d src/client/client3d.nit \
23 -m src/client/client_serialize.nit -m linux
24
25 # Server
26 bin/server: src/server/server_serialize.nit $(shell nitls -M src/server/dedicated.nit)
27 nitc -o bin/server src/server/dedicated.nit -m src/server/server_serialize.nit
28
29 src/server/server_serialize.nit: $(shell nitls -M src/server/dedicated.nit)
30 nitserial -o src/server/server_serialize.nit src/server/dedicated.nit
31
32 # Android
33 android/res/: art/icon.svg
34 ../inkscape_tools/bin/svg_to_icons art/icon.svg --android --out android/res/