2 # @copyright Copyright (c) 2016-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.
18 ## Makefile - Makefile for TimeZone file
21 ZONEINFDIR = $(DESTDIR)/usr/share/zoneinfo/
23 ZONEINFDIR2 = $(DESTDIR)/etc/
24 ZONEINFLNK2 = /tmp/bs/clock/
25 ZONEINFFILE= localtime
26 DSTDIR = $(ZONEINFDIR)DST
27 CLEAN_DIRS = $(ZONEINFDIR)
29 LDFLAGS += -Wl,--no-undefined
30 CPPFLAGS += -Werror=implicit-function-declaration
31 CPPFLAGS += -Werror=format-security
33 CPPFLAGS += -Wconversion
34 CPPFLAGS += -Wint-to-pointer-cast
35 CPPFLAGS += -Wpointer-arith
39 rm -rf $(ZONEINFDIR) ;\
41 mkdir -p $(ZONEINFDIR2) ;
43 ## /usr/sbin/zic -d $(ZONEINFDIR) zoneinfo_base;
44 zic -d $(ZONEINFDIR) zoneinfo_base;
46 ln -f -s $(ZONEINFLNK)$(ZONEINFFILE) $(ZONEINFDIR)$(ZONEINFFILE); \
47 ln -f -s $(ZONEINFLNK2)$(ZONEINFFILE) $(ZONEINFDIR2)$(ZONEINFFILE)