2 # @copyright Copyright (c) 2018-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.
17 ######### installed program/file ################
18 TARGET = libvideo_in_hal.so
20 HEADER = hal_api/video_in_hal.h
22 ######### include paths/files ###################
23 CFLAGS += -I./hal_api/
24 CFLAGS += -I=/usr/include/basesystem
25 CFLAGS += -include agl_types_deprecated.h
27 ######### compile options #######################
30 ######### link options ##########################
32 LDFLAGS += -Wl,--no-as-needed
33 LDFLAGS += -Wl,--no-undefined
34 LDFLAGS += -Wl,--warn-unresolved-symbols
36 ######### linked library ########################
38 ######### source files ##########################
41 OBJS := video_in_hal.o
43 ######### make targets ##########################
48 $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
51 ######### make cleans ###########################
52 GCNO_FILES := $(filter %.gcno,$(OBJS:%.o=%.gcno))
55 rm -f $(OBJS) $(TARGET) $(GCNO_FILES)
58 ######### make installs #########################
60 install -d -m 0755 $(DESTDIR)/usr/lib
61 install -m 0755 $(TARGET) $(DESTDIR)/usr/lib