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
9 # http://www.apache.org/licenses/LICENSE-2.0
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 # -------------------------------------------
22 mc_schema.a: schemaparser.o json.o block_allocator.o
23 ar -cr mc_schema.a schemaparser.o json.o block_allocator.o
25 schemaparser.o : schemaparser.cc
26 g++ -g -O3 -std=c++11 -c schemaparser.cc
29 g++ -g -O3 -std=c++11 -c json.cc
31 block_allocator.o : block_allocator.cc
32 g++ -g -O3 -std=c++11 -c block_allocator.cc
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
37 sample2: mc_schema.a sample2.cc
38 g++ sample2.cc mc_schema.a -g -std=c++11 -o sample2 -lsdl
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
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
47 g++ mc_keys.cc -g -std=c++11 -o mc_keys -lsdl
49 mc_extract_string: mc_extract_string.cc
50 g++ mc_extract_string.cc -g -std=c++11 -o mc_extract_string -lsdl
53 rm *.o *.a mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string
55 utils: mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string