iotivity 0.9.0
[platform/upstream/iotivity.git] / resource / csdk / connectivity / build / linux / common.mk
1 #/******************************************************************
2 # *
3 # * Copyright 2014 Samsung Electronics All Rights Reserved.
4 # *
5 # *
6 # *
7 # * Licensed under the Apache License, Version 2.0 (the "License");
8 # * you may not use this file except in compliance with the License.
9 # * You may obtain a copy of the License at
10 # *
11 # *      http://www.apache.org/licenses/LICENSE-2.0
12 # *
13 # * Unless required by applicable law or agreed to in writing, software
14 # * distributed under the License is distributed on an "AS IS" BASIS,
15 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # * See the License for the specific language governing permissions and
17 # * limitations under the License.
18 # *
19 #******************************************************************/
20
21 ##
22 ##      Definitions
23 ##
24 SHELL                                           = /bin/bash
25 PROJECT_NAME                            = connectivity_abstraction
26 PROJECT_ROOT_PATH                       = ../..
27 PROJECT_API_PATH                        = $(PROJECT_ROOT_PATH)/api
28 PROJECT_INC_PATH                        = $(PROJECT_ROOT_PATH)/inc
29 PROJECT_SRC_PATH                        = $(PROJECT_ROOT_PATH)/src
30 PROJECT_COMMON_INC_PATH         = $(PROJECT_ROOT_PATH)/common/inc
31 PROJECT_COMMON_SRC_PATH         = $(PROJECT_ROOT_PATH)/common/src
32 PROJECT_COMMON_PATH                     = $(PROJECT_ROOT_PATH)/common
33 PROJECT_OUT_PATH                        = $(PROJECT_ROOT_PATH)/build/out
34 PROJECT_LIB_PATH                        = $(PROJECT_ROOT_PATH)/lib
35
36 ##
37 ##      macro
38 ##
39 define  MAKE_PROJECT_OUT_PATH
40         @if     [ ! -d $(PROJECT_OUT_PATH) ]; then      \
41         mkdir $(PROJECT_OUT_PATH);      \
42         fi
43 endef
44
45
46 ##
47 ##      Commands
48 ##
49 CC                      = gcc
50 CXX                     = g++
51 RM                      = rm -rf
52 CP                      = cp
53 MV                      = mv
54 AR                      = ar
55 LD                      = ld
56 LN                      = ln
57 CD                      = cd
58 RANLIB          = ranlib
59