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 += -include $(SDKTARGETSYSROOT)/usr/include/basesystem/agl_types_obsoluted.h
26 ######### compile options #######################
29 ######### link options ##########################
31 LDFLAGS += -Wl,--no-as-needed
32 LDFLAGS += -Wl,--no-undefined
33 LDFLAGS += -Wl,--warn-unresolved-symbols
35 ######### linked library ########################
37 ######### source files ##########################
40 OBJS := video_in_hal.o
42 ######### make targets ##########################
47 $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET)
50 ######### make cleans ###########################
51 GCNO_FILES := $(filter %.gcno,$(OBJS:%.o=%.gcno))
54 rm -f $(OBJS) $(TARGET) $(GCNO_FILES)
57 ######### make installs #########################
59 install -d -m 0755 $(DESTDIR)/usr/lib
60 install -m 0755 $(TARGET) $(DESTDIR)/usr/lib