Changed to not use SDKTARGETSYSROOT.
[staging/basesystem.git] / service / vehicle / positioning / server / src / Sensor / 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 ######### installed library(*.a) #############
18 INST_LIBS = libPOS_Sensor
19
20 ######### compiled sources  #############
21 libPOS_Sensor_SRCS += DeadReckoning_main.cpp
22 libPOS_Sensor_SRCS += DeadReckoning_Common.cpp
23 libPOS_Sensor_SRCS += DeadReckoning_Did_GyroScaleFactorLevel_dr.cpp
24 libPOS_Sensor_SRCS += DeadReckoning_Did_Heading_dr.cpp
25 libPOS_Sensor_SRCS += DeadReckoning_Did_GyroOffset_dr.cpp
26 libPOS_Sensor_SRCS += DeadReckoning_Did_Speed_dr.cpp
27 libPOS_Sensor_SRCS += DeadReckoning_Did_Longitude_dr.cpp
28 libPOS_Sensor_SRCS += DeadReckoning_Did_SnsCounter.cpp
29 libPOS_Sensor_SRCS += DeadReckoning_Did_Altitude_dr.cpp
30 libPOS_Sensor_SRCS += DeadReckoning_Did_GyroScaleFactor_dr.cpp
31 libPOS_Sensor_SRCS += DeadReckoning_DataMasterMain.cpp
32 libPOS_Sensor_SRCS += DeadReckoning_Did_Latitude_dr.cpp
33 libPOS_Sensor_SRCS += DeadReckoning_Did_SpeedPulseScaleFactor_dr.cpp
34 libPOS_Sensor_SRCS += DeadReckoning_Did_SpeedPulseScaleFactorLevel_dr.cpp
35 libPOS_Sensor_SRCS += DeadReckoning_DeliveryCtrl.cpp
36 libPOS_Sensor_SRCS += ClockUtility.cpp
37 libPOS_Sensor_SRCS += VehicleUtility.cpp
38 libPOS_Sensor_SRCS += GpsInt.cpp
39 libPOS_Sensor_SRCS += VehicleSens_Thread.cpp
40 libPOS_Sensor_SRCS += VehicleSens_FromAccess.cpp
41 libPOS_Sensor_SRCS += VehicleSens_Common.cpp
42 libPOS_Sensor_SRCS += VehicleSens_SelectionItemList.cpp
43 libPOS_Sensor_SRCS += VehicleSens_SharedMemory.cpp
44 libPOS_Sensor_SRCS += VehicleSens_Did_MainGpsInterruptSignal.cpp
45 libPOS_Sensor_SRCS += VehicleSens_Did_GpsAntennaStatus.cpp
46 libPOS_Sensor_SRCS += VehicleSens_Did_Rev.cpp
47 libPOS_Sensor_SRCS += VehicleSens_Did_GpsCounter_g.cpp
48 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulse_l.cpp
49 libPOS_Sensor_SRCS += VehicleSens_Did_Rev_l.cpp
50 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulseExt_l.cpp
51 libPOS_Sensor_SRCS += VehicleSens_Did_Mon_Hw_g.cpp
52 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_Clock_g.cpp
53 libPOS_Sensor_SRCS += VehicleSens_Did_SysGpsInterruptSignal.cpp
54 libPOS_Sensor_SRCS += VehicleSens_Did_SnsCounter_l.cpp
55 libPOS_Sensor_SRCS += VehicleSens_Did_GyroExt_l.cpp
56 libPOS_Sensor_SRCS += VehicleSens_Did_GyroYExt_l.cpp
57 libPOS_Sensor_SRCS += VehicleSens_Did_GyroZExt_l.cpp
58 libPOS_Sensor_SRCS += VehicleSens_Did_GyroX.cpp
59 libPOS_Sensor_SRCS += VehicleSens_Did_GyroY.cpp
60 libPOS_Sensor_SRCS += VehicleSens_Did_GyroZ.cpp
61 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_Dop_g.cpp
62 libPOS_Sensor_SRCS += VehicleSens_Did_GyroTrouble.cpp
63 libPOS_Sensor_SRCS += VehicleSens_Did_SnsCounterExt_l.cpp
64 libPOS_Sensor_SRCS += VehicleSens_Did_Gps_CWORD82__CWORD44_Gp4_g.cpp
65 libPOS_Sensor_SRCS += VehicleSens_Did_GyroX_l.cpp
66 libPOS_Sensor_SRCS += VehicleSens_Did_GyroY_l.cpp
67 libPOS_Sensor_SRCS += VehicleSens_Did_GyroZ_l.cpp
68 libPOS_Sensor_SRCS += VehicleSens_Did_GyroConnectStatus.cpp
69 libPOS_Sensor_SRCS += VehicleSens_Did_RevFst_l.cpp
70 libPOS_Sensor_SRCS += VehicleSens_Did_RevExt_l.cpp
71 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_SvInfo_g.cpp
72 libPOS_Sensor_SRCS += VehicleSens_Did_Gps_CWORD82_FullBinary_g.cpp
73 libPOS_Sensor_SRCS += VehicleSens_Did_GPSInterruptFlag.cpp
74 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulseFlag.cpp
75 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_TimeGps_g.cpp
76 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_TimeUtc_g.cpp
77 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulseFlagFst_l.cpp
78 libPOS_Sensor_SRCS += VehicleSens_Did_SnsCounter.cpp
79 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulseFst_l.cpp
80 libPOS_Sensor_SRCS += VehicleSens_Did_GyroXFst_l.cpp
81 libPOS_Sensor_SRCS += VehicleSens_Did_GyroYFst_l.cpp
82 libPOS_Sensor_SRCS += VehicleSens_Did_GyroZFst_l.cpp
83 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_Status_g.cpp
84 libPOS_Sensor_SRCS += VehicleSens_Did_Gps_CWORD82_Nmea_g.cpp
85 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedPulse.cpp
86 libPOS_Sensor_SRCS += VehicleSens_DataMasterMain.cpp
87 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_Velned_g.cpp
88 libPOS_Sensor_SRCS += VehicleSens_Did_Nav_Posllh_g.cpp
89 libPOS_Sensor_SRCS += VehicleSens_Did_GpsAntenna.cpp
90 libPOS_Sensor_SRCS += VehicleSens_Did_GpsAntenna_l.cpp
91 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedKmph.cpp
92 libPOS_Sensor_SRCS += VehicleSens_Did_SpeedKmph_l.cpp
93 libPOS_Sensor_SRCS += VehicleSens_Did_LocationLonLat.cpp
94 libPOS_Sensor_SRCS += VehicleSens_Did_LocationLonLat_g.cpp
95 libPOS_Sensor_SRCS += VehicleSens_Did_LocationAltitude.cpp
96 libPOS_Sensor_SRCS += VehicleSens_Did_LocationAltitude_g.cpp
97 libPOS_Sensor_SRCS += VehicleSens_Did_MotionSpeed.cpp
98 libPOS_Sensor_SRCS += VehicleSens_Did_MotionSpeed_g.cpp
99 libPOS_Sensor_SRCS += VehicleSens_Did_MotionSpeed_n.cpp
100 libPOS_Sensor_SRCS += VehicleSens_Did_MotionSpeed_i.cpp
101 libPOS_Sensor_SRCS += VehicleSens_Did_MotionHeading.cpp
102 libPOS_Sensor_SRCS += VehicleSens_Did_MotionHeading_g.cpp
103 libPOS_Sensor_SRCS += VehicleSens_Did_GpsTime.cpp
104 libPOS_Sensor_SRCS += VehicleSens_Did_GpsTime_g.cpp
105 libPOS_Sensor_SRCS += VehicleSens_Did_GpsTimeRaw.cpp
106 libPOS_Sensor_SRCS += VehicleSens_Did_GpsTimeRaw_g.cpp
107 libPOS_Sensor_SRCS += VehicleSens_Did_NaviinfoDiagGPS_g.cpp
108 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsX.cpp
109 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsX_l.cpp
110 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsXExt_l.cpp
111 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsXFst_l.cpp
112 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsY.cpp
113 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsY_l.cpp
114 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsYExt_l.cpp
115 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsYFst_l.cpp
116 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsZ.cpp
117 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsZ_l.cpp
118 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsZExt_l.cpp
119 libPOS_Sensor_SRCS += VehicleSens_Did_GsnsZFst_l.cpp
120 libPOS_Sensor_SRCS += VehicleSens_Did_GyroTemp.cpp
121 libPOS_Sensor_SRCS += VehicleSens_Did_GyroTemp_l.cpp
122 libPOS_Sensor_SRCS += VehicleSens_Did_GyroTempExt_l.cpp
123 libPOS_Sensor_SRCS += VehicleSens_Did_GyroTempFst_l.cpp
124 libPOS_Sensor_SRCS += VehicleSens_Did_GpsNmea_g.cpp
125 libPOS_Sensor_SRCS += VehicleSens_Did_LocationLonLat_n.cpp
126 libPOS_Sensor_SRCS += VehicleSens_Did_LocationAltitude_n.cpp
127 libPOS_Sensor_SRCS += VehicleSens_Did_MotionSpeed_n.cpp
128 libPOS_Sensor_SRCS += VehicleSens_Did_MotionHeading_n.cpp
129 libPOS_Sensor_SRCS += VehicleSens_Did_SettingTime.cpp
130 libPOS_Sensor_SRCS += VehicleSens_Did_SettingTime_clock.cpp
131 libPOS_Sensor_SRCS += VehicleSens_Did_PulseTime.cpp
132 libPOS_Sensor_SRCS += VehicleSens_Did_PulseTime_l.cpp
133 libPOS_Sensor_SRCS += VehicleSens_Did_PulseTimeExt_l.cpp
134 libPOS_Sensor_SRCS += VehicleSens_Did_WknRollover.cpp
135 libPOS_Sensor_SRCS += VehicleSens_Did_WknRollover_g.cpp
136 libPOS_Sensor_SRCS += VehicleSens_Did_GpsClockDrift.cpp
137 libPOS_Sensor_SRCS += VehicleSens_Did_GpsClockDrift_g.cpp
138 libPOS_Sensor_SRCS += VehicleSens_Did_GpsClockFreq.cpp
139 libPOS_Sensor_SRCS += VehicleSens_Did_GpsClockFreq_g.cpp
140
141 libPOS_Sensor_SRCS += VehicleSens_Did_LocationInfoNmea.cpp
142 libPOS_Sensor_SRCS += VehicleSens_Did_LocationInfoNmea_n.cpp
143
144 libPOS_Sensor_SRCS += VehicleSens_CanDeliveryEntry.cpp
145 libPOS_Sensor_SRCS += VehicleSens_DeliveryCtrl.cpp
146 libPOS_Sensor_SRCS += SensorLog.cpp
147
148 ######### add include path #############
149 CPPFLAGS += -I../../include/Sensor
150 CPPFLAGS += -I../../include/nsfw
151 CPPFLAGS += -I../../include/ServiceInterface
152 CPPFLAGS += -I../../../client/include
153
154 CPPFLAGS += -I../ServiceInterface/VehicleIf
155 CPPFLAGS += -I../nsfw/include
156 #CPPFLAGS += -I../../../../diag_code/library/include
157
158 CPPFLAGS += -I=/usr/include/basesystem/vehicle_service
159
160 ######### add compile option #############
161 CPPFLAGS += -DLINUX
162
163 LDFLAGS += -Wl,--no-undefined
164 LDFLAGS += -Wl,--no-as-needed
165 CPPFLAGS += -Werror=implicit-function-declaration
166 CPPFLAGS += -Werror=format-security
167 CPPFLAGS += -Wconversion
168 CPPFLAGS += -Wint-to-pointer-cast
169 CPPFLAGS += -Wpointer-arith
170 CPPFLAGS += -Wformat
171
172 ######### add library path #############
173 LDFLAGS +=
174
175 INSTALL = install
176 CREATE_DIR = $(DESTDIR)/var/local/lib/basesystem/nv/BS/vs/positioning/rwdata
177 install-data:
178         $(INSTALL) -d -m 775 $(CREATE_DIR)
179
180 include ../../../../vehicle_service.mk
181