Add gitlab issue/merge request templates
[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 += -I=/usr/include/basesystem
25 CFLAGS += -include agl_types_deprecated.h
26
27 ######### compile options #######################
28 CFLAGS += -Wall -fPIC
29
30 ######### link options ##########################
31 LDFLAGS += -shared
32 LDFLAGS += -Wl,--no-as-needed
33 LDFLAGS += -Wl,--no-undefined
34 LDFLAGS += -Wl,--warn-unresolved-symbols
35
36 ######### linked library ########################
37
38 ######### source files ##########################
39 VPATH := ./src/
40
41 OBJS := video_in_hal.o
42
43 ######### make targets ##########################
44 all: $(TARGET)
45         @echo $@ done.
46
47 $(TARGET): $(OBJS)
48         $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
49         @echo $@ done.
50
51 ######### make cleans ###########################
52 GCNO_FILES := $(filter %.gcno,$(OBJS:%.o=%.gcno))
53
54 clean:
55         rm -f $(OBJS) $(TARGET) $(GCNO_FILES)
56         @echo $@ done.
57
58 ######### make installs #########################
59 install:
60         install -d -m 0755 $(DESTDIR)/usr/lib
61         install -m 0755 $(TARGET) $(DESTDIR)/usr/lib
62         @echo $@ done.