2 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
27 CPPFLAGS := -I../library/include -include $(SDKTARGETSYSROOT)/usr/include/basesystem/agl_types_obsoluted.h
28 CFLAGS := -Wall -Wno-unused-function -Wno-unused-variable -include $(SDKTARGETSYSROOT)/usr/include/basesystem/agl_types_obsoluted.h
30 rpc_apidef: apidef.tab.o lex.yy.o apidef.o
31 $(CXX) $(CPPFLAGS) -o $@ $^
33 apidef.tab.o: apidef.tab.h apidef.tab.c
34 $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
37 $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
40 $(CXX) $(CPPFLAGS) $(CFLAGS) -c $^
42 apidef.tab.h apidef.tab.c: apidef.y
45 lex.yy.c: apidef.l apidef.tab.h
48 CLEAN_FILES := rpc_apidef *.o apidef.tab.h apidef.tab.c lex.yy.c
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)
55 $(CLEAN_TARGET): clean
57 $(INSTALL_TARGET): install
61 include ../../other_service.mk