X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=schemaparser%2FMakefile;fp=schemaparser%2FMakefile;h=b89fa26493de43ca31f144af934b08b287c3a9d4;hb=783f6bfa93c3eed4787bded3c35016952b74b2e3;hp=0000000000000000000000000000000000000000;hpb=5b238b84dd6a6fb77a68f9b37906b465ab08a7fd;p=ric-app%2Fmc.git diff --git a/schemaparser/Makefile b/schemaparser/Makefile new file mode 100644 index 0000000..b89fa26 --- /dev/null +++ b/schemaparser/Makefile @@ -0,0 +1,55 @@ +#!/bin/make + +# ------------------------------------------------ +# Copyright 2020 AT&T Intellectual Property +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ------------------------------------------- + +#SHELL = /bin/sh + +.SUFFIXES:.cc + +mc_schema.a: schemaparser.o json.o block_allocator.o + ar -cr mc_schema.a schemaparser.o json.o block_allocator.o + +schemaparser.o : schemaparser.cc + g++ -g -O3 -std=c++11 -c schemaparser.cc + +json.o : json.cc + g++ -g -O3 -std=c++11 -c json.cc + +block_allocator.o : block_allocator.cc + g++ -g -O3 -std=c++11 -c block_allocator.cc + +mc_extract: mc_schema.a mc_extract.cc + g++ mc_extract.cc mc_schema.a -g -std=c++11 -o mc_extract -lsdl + +sample2: mc_schema.a sample2.cc + g++ sample2.cc mc_schema.a -g -std=c++11 -o sample2 -lsdl + +mc_store_schema: mc_schema.a mc_store_schema.cc + g++ mc_store_schema.cc mc_schema.a -g -std=c++11 -o mc_store_schema -lsdl + +load_mcnib1: mc_schema.a load_mcnib1.cc + g++ load_mcnib1.cc mc_schema.a -g -std=c++11 -o load_mcnib1 -lsdl + +mc_keys: mc_keys.cc + g++ mc_keys.cc -g -std=c++11 -o mc_keys -lsdl + +mc_extract_string: mc_extract_string.cc + g++ mc_extract_string.cc -g -std=c++11 -o mc_extract_string -lsdl + +clean: + rm *.o *.a mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string + +utils: mc_extract sample2 mc_store_schema load_mcnib1 mc_keys mc_extract_string