Fix path in aglpath.h
[staging/basesystem.git] / stub / clock / localtime / Makefile
1 #
2 # @copyright Copyright (c) 2016-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 ##
18 ##  Makefile - Makefile for TimeZone file
19 ##
20
21 ZONEINFDIR  = $(DESTDIR)/usr/share/zoneinfo/
22 ZONEINFLNK  = /etc/
23 ZONEINFDIR2 = $(DESTDIR)/etc/
24 ZONEINFLNK2 = /tmp/bs/clock/
25 ZONEINFFILE= localtime
26 DSTDIR = $(ZONEINFDIR)DST
27 CLEAN_DIRS = $(ZONEINFDIR)
28
29 LDFLAGS += -Wl,--no-undefined
30 CPPFLAGS += -Werror=implicit-function-declaration
31 CPPFLAGS += -Werror=format-security
32
33 CPPFLAGS += -Wconversion
34 CPPFLAGS += -Wint-to-pointer-cast
35 CPPFLAGS += -Wpointer-arith
36 CPPFLAGS += -Wformat
37
38 install-data:
39         rm -rf $(ZONEINFDIR) ;\
40         mkdir -p $(DSTDIR) ;\
41         mkdir -p $(ZONEINFDIR2) ;
42
43 ##      /usr/sbin/zic -d $(ZONEINFDIR) zoneinfo_base;
44         zic -d $(ZONEINFDIR) zoneinfo_base;
45
46         ln -f -s $(ZONEINFLNK)$(ZONEINFFILE) $(ZONEINFDIR)$(ZONEINFFILE); \
47         ln -f -s $(ZONEINFLNK2)$(ZONEINFFILE) $(ZONEINFDIR2)$(ZONEINFFILE)
48
49 include ../../stub.mk