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