Remove unused directories and files in video_in_hal
[staging/basesystem.git] / hal / video_in_hal / Makefile
1 #
2 # @copyright Copyright (c) 2018-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 ######### installed program/file ################
18 TARGET   = libvideo_in_hal.so
19
20 HEADER   = hal_api/video_in_hal.h
21
22 ######### include paths/files ###################
23 CFLAGS += -I./hal_api/
24 CFLAGS += -include $(SDKTARGETSYSROOT)/usr/agl/include/agl_types_obsoluted.h
25
26 ######### compile options #######################
27 CFLAGS += -Wall -fPIC
28
29 ######### link options ##########################
30 LDFLAGS += -shared
31 LDFLAGS += -Wl,--no-as-needed
32 LDFLAGS += -Wl,--no-undefined
33 LDFLAGS += -Wl,--warn-unresolved-symbols
34
35 ######### linked library ########################
36
37 ######### source files ##########################
38 VPATH := ./src/
39
40 OBJS := video_in_hal.o
41
42 ######### make targets ##########################
43 all: $(TARGET)
44         @echo $@ done.
45
46 $(TARGET): $(OBJS)
47         $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET)
48         @echo $@ done.
49
50 ######### make cleans ###########################
51 GCNO_FILES := $(filter %.gcno,$(OBJS:%.o=%.gcno))
52
53 clean:
54         rm -f $(OBJS) $(TARGET) $(GCNO_FILES)
55         @echo $@ done.
56
57 ######### make installs #########################
58 install:
59         install -d -m 0755 $(DESTDIR)/usr/lib
60         install -m 0755 $(TARGET) $(DESTDIR)/usr/lib
61         @echo $@ done.