Fix: update the correct pre-built script to cmake-sonar.sh
[ric-app/mc.git] / schemaparser / Makefile
1 #!/bin/make
2
3 # ------------------------------------------------
4 #   Copyright 2020 AT&T Intellectual Property
5 #   Licensed under the Apache License, Version 2.0 (the "License");
6 #   you may not use this file except in compliance with the License.
7 #   You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #   Unless required by applicable law or agreed to in writing, software
12 #   distributed under the License is distributed on an "AS IS" BASIS,
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #   See the License for the specific language governing permissions and
15 #   limitations under the License.
16 # -------------------------------------------
17
18 #SHELL = /bin/sh
19
20 .SUFFIXES:.cc
21
22 mc_schema.a: schemaparser.o json.o block_allocator.o
23         ar -cr mc_schema.a schemaparser.o json.o block_allocator.o
24
25 schemaparser.o : schemaparser.cc
26         g++ -g -O3 -std=c++11 -c schemaparser.cc
27
28 json.o : json.cc
29         g++ -g -O3 -std=c++11 -c json.cc
30
31 block_allocator.o : block_allocator.cc
32         g++ -g -O3 -std=c++11 -c block_allocator.cc
33
34 mc_extract: mc_schema.a mc_extract.cc
35         g++ mc_extract.cc mc_schema.a -g -std=c++11 -o mc_extract -lsdl
36
37 sample2: mc_schema.a sample2.cc
38         g++ sample2.cc mc_schema.a -g -std=c++11 -o sample2 -lsdl
39
40 mc_store_schema: mc_schema.a mc_store_schema.cc
41         g++ mc_store_schema.cc mc_schema.a -g -std=c++11 -o mc_store_schema -lsdl
42
43 load_mcnib1: mc_schema.a load_mcnib1.cc
44         g++ load_mcnib1.cc mc_schema.a -g -std=c++11 -o load_mcnib1 -lsdl
45
46 mc_keys: mc_keys.cc
47         g++ mc_keys.cc -g -std=c++11 -o mc_keys -lsdl
48
49 mc_extract_string: mc_extract_string.cc
50         g++ mc_extract_string.cc -g -std=c++11 -o mc_extract_string -lsdl
51
52 clean:
53         rm *.o *.a mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string
54
55 utils: mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string