common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / otherservice / rpc_library / tool / Makefile
1 #
2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 all: rpc_apidef
18
19 clean:
20         rm -rf $(CLEAN_FILES)
21
22 YACC := bison
23 YFLAGS := -d -t
24 LEX := flex
25 LFLAGS := -d
26
27 CPPFLAGS := -I../library/include -include $(SDKTARGETSYSROOT)/usr/agl/include/agl_types_obsoluted.h
28 CFLAGS := -Wall -Wno-unused-function -Wno-unused-variable -include $(SDKTARGETSYSROOT)/usr/agl/include/agl_types_obsoluted.h
29
30 rpc_apidef:     apidef.tab.o lex.yy.o apidef.o
31         $(CXX) $(CPPFLAGS) -o $@ $^
32
33 apidef.tab.o:   apidef.tab.h apidef.tab.c
34         $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
35
36 lex.yy.o:       lex.yy.c
37         $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
38
39 apidef.o:       apidef.cc
40         $(CXX) $(CPPFLAGS) $(CFLAGS) -c $^
41
42 apidef.tab.h apidef.tab.c:      apidef.y
43         $(YACC) $(YFLAGS) $<
44
45 lex.yy.c:       apidef.l apidef.tab.h
46         $(LEX) $(LFLAGS) $<
47
48 CLEAN_FILES := rpc_apidef *.o apidef.tab.h apidef.tab.c lex.yy.c
49
50 CLEAN_TARGET := clean-all clean-all-sub clean-sub
51 INSTALL_TARGET := install-header
52 EMPTY_TARGET := install-prog install-data install-lib install-arlib install-shlib
53 .PHONY: all install clean $(CLEAN_TARGET) $(INSTALL_TARGET) $(EMPTY_TARGET)
54
55 $(CLEAN_TARGET): clean
56
57 $(INSTALL_TARGET): install
58
59 $(EMPTY_TARGET):
60
61 include ../../other_service.mk
62