750559eeaf6df5cf4d4985030570ca2c32051587
[ric-app/ts.git] / src / ts_xapp / Makefile
1 # vim: ts=4 sw=4 noet:
2
3 #==================================================================================
4 #       Copyright (c) 2020 AT&T Intellectual Property.
5 #
6 #   Licensed under the Apache License, Version 2.0 (the "License");
7 #   you may not use this file except in compliance with the License.
8 #   You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #   Unless required by applicable law or agreed to in writing, software
13 #   distributed under the License is distributed on an "AS IS" BASIS,
14 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #   See the License for the specific language governing permissions and
16 #   limitations under the License.
17 #==================================================================================
18
19 # simple makefile to build the examples. This assumes that the xapp framework
20 # library has been installed or the LD_LIBRARY_PATH and C_INCLUDE_PATH environent
21 # variables are set to reference the needed files.
22
23 %.o:: %.cpp %.hpp
24         g++ -g ${prereq%% *} -c 
25
26 % :: %.cpp
27         g++ $< -g -o $@  -lricxfcpp -lrmr_si -lpthread -lm -lsdl
28
29 all:: ts_xapp
30
31 install::
32         cp ts_xapp /usr/local/bin/