blob: 63e4c8894ece330153c52b9f63f0d970fb00f8b7 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301#
2# Copyright 2019-present, Infosys Limited.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
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
15include ../../Makefile.common
16
17gtpV2CodecOBJDIR := $(OBJDIR)/gtpV2Codec/
18
19gtpV2CodecLIB := $(LIBDIR)/libgtpV2Codec.so
20
21[% FOREACH lib IN makefiledata.libList -%]
22gtpV2CodecOBJS := $(addprefix $(gtpV2CodecOBJDIR), \
23[% FOREACH file IN lib.fileList -%]
24 [% file.objFile -%] \
25[% END -%]
26 ieClasses/manual/dataTypeCodecUtils_manual.o \
27 gtpV2StackWrappers.o )
28[% END -%]
29all : $(gtpV2CodecLIB)
30
31.PHONY : all
32
33$(gtpV2CodecLIB) : $(gtpV2CodecOBJS)
34 mkdir -p $(LIBDIR)
35 $(CC) $(CFLAGS) -shared -o $(gtpV2CodecLIB) $(gtpV2CodecOBJS)
36
37$(gtpV2CodecOBJS) : $(OBJDIR)/gtpV2Codec/%.o : %.cpp
38 echo "$@ from $< "
39 mkdir -p $(gtpV2CodecOBJDIR)/ieClasses/manual
40 mkdir -p $(gtpV2CodecOBJDIR)/msgClasses/manual
41 $(CC) $(CFLAGS) $(INC_DIRS) -fPIC -c $< -o $@
42
43install:
44 mkdir -p $(TOPDIR)/target/lib
45 cp -rf $(gtpV2CodecLIB) $(TOPDIR)/target/lib
46
47clean :
48 rm -rf $(gtpV2CodecLIB)
49 rm -rf $(gtpV2CodecOBJDIR)
50
51.PHONY : clean