• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 Huawei Technologies Co., Ltd.
2# Licensed under the Mulan PSL v2.
3# You can use this software according to the terms and conditions of the Mulan
4# PSL v2.
5# You may obtain a copy of Mulan PSL v2 at:
6#     http://license.coscl.org.cn/MulanPSL2
7# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
8# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
9# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10# See the Mulan PSL v2 for more details.
11
12# API_LEVEL which indicates the GP API version of TA
13# API_LEVEL=2 indicates GP 1.1.1 which is the current version of the partner
14# API_LEVEL=3 indicates GP 1.2 which is the version we both going to support
15# If no API_LEVEL is specified, API of GP 1.1.1 will be taken
16CFLAGS += -DAPI_LEVEL=2
17
18include ${TEE_OH_BUILD_PATH}/mk/common.mk
19
20SRC += $(wildcard ./*.c)
21
22# set header directory
23INCLUDEDIR += -I./include
24
25# set target
26COBJS := $(SRC:%.c=%.o)
27TARGET = $(COBJS)
28
29libcombine: $(TARGET)
30	$(LD) $(LDFLAGS) $(TARGET) $(EXTRAO) -o libcombine.so
31
32src/%.o: ./src/%.c
33	$(CC) $(CFLAGS)  $(INCLUDEDIR) -c $< -o $@
34
35%.o: %.c
36	$(CC) $(CFLAGS)  $(INCLUDEDIR) -c $< -o $@
37
38clean:
39	rm -f $(COBJS) *.o *.so *.sec
40