Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 585 lines (497 sloc) 14.567 kb
bc0b668 @pventafridda initial revision 123j
pventafridda authored
1 #
2 SRC=Common/Source
3 HDR=Common/Header
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
4 BIN=Bin/$(TARGET)
5
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored
6 # enable/disable heap checking (dmalloc.h libdmalloc.a must be in ../dmalloc)
7 DMALLOC=n
8
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
9 PROFILE :=
bc0b668 @pventafridda initial revision 123j
pventafridda authored
10 OPTIMIZE :=-O2
11 #OPTIMIZE :=-O3 -funroll-all-loops
12 CONFIG_PPC2002 :=n
13 CONFIG_PPC2003 :=n
14 CONFIG_PC :=n
15 CONFIG_WINE :=n
16 CONFIG_PNA :=n
17 MINIMAL :=n
18 XSCALE :=n
19 GTARGET :=$(TARGET)
20
21 ifeq ($(TARGET),PPC2002)
22 CONFIG_PPC2002 :=y
23 else
24 ifeq ($(TARGET),PPC2003)
25 CONFIG_PPC2003 :=y
26 else
27 ifeq ($(TARGET),PPC2003X)
28 CONFIG_PPC2003 :=y
29 XSCALE :=y
30 GTARGET := PPC2003
31 else
32 ifeq ($(TARGET),PC)
33 CONFIG_PC :=y
34 else
35 ifeq ($(TARGET),WINE)
36 CONFIG_WINE :=y
37 else
38 ifeq ($(TARGET),PNA)
39 CONFIG_PNA := y
40 CONFIG_PPC2003 := y
41 MINIMAL :=n
42 endif
43 endif
44 endif
45 endif
46 endif
47 endif
48
49 ############# build and CPU info
50
51 ifeq ($(CONFIG_PC),y)
52 TCPATH :=i386-mingw32-
53 CPU :=i586
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
54 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
55 else
56 ifeq ($(CONFIG_WINE),y)
57 TCPATH :=wine
58 CPU :=i586
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
59 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
60 else
61 TCPATH :=arm-mingw32ce-
62
63 ifeq ($(XSCALE),y)
64 CPU :=xscale
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
65 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
66 else
67 CPU :=
68 MCPU :=
69 endif
70
71 ifeq ($(TARGET),PNA)
72 CPU :=arm1136j-s
73 MCPU :=
74 endif
75 ifeq ($(CONFIG_PPC2002),y)
76 CPU :=strongarm1110
77 MCPU := -mcpu=$(CPU)
78 endif
79
80 endif
81 endif
82
83 ############# platform info
84
85 ifeq ($(CONFIG_PPC2002),y)
86 CE_MAJOR :=3
87 CE_MINOR :=00
88 CE_PLATFORM :=310
89 TARGET :=PPC2002
90 PCPU :=ARM
91 endif
92 ifeq ($(CONFIG_PPC2003),y)
93 CE_MAJOR :=4
94 CE_MINOR :=00
95 CE_PLATFORM :=400
96 PCPU :=ARMV4
97 endif
98
99 # JMW this shouldn't be required VENTA FIX
100 #ifeq ($(CONFIG_PNA),y)
101 #CE_MAJOR :=5
102 #CE_MINOR :=00
103 #CE_PLATFORM :=500
104 #endif
105
106 ifeq ($(CONFIG_PC),y)
107 # armv4i
108 CE_MAJOR :=5
109 CE_MINOR :=00
110 CE_PLATFORM :=500
111 TARGET :=PC
112 endif
113 ifeq ($(CONFIG_WINE),y)
114 # armv4i
115 CE_MAJOR :=5
116 CE_MINOR :=00
117 CE_PLATFORM :=500
118 TARGET :=WINE
119 CONFIG_PC :=y
120 endif
121
122 ######## output files
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
123
bc0b668 @pventafridda initial revision 123j
pventafridda authored
124 OUTPUTS := LK8000-$(TARGET).exe
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
125
bc0b668 @pventafridda initial revision 123j
pventafridda authored
126 ######## tools
127
128 EXE :=$(findstring .exe,$(MAKE))
129 AR :=$(TCPATH)ar$(EXE)
130 CXX :=$(TCPATH)g++$(EXE)
131 CC :=$(TCPATH)gcc$(EXE)
132 SIZE :=$(TCPATH)size$(EXE)
133 STRIP :=$(TCPATH)strip$(EXE)
134 WINDRES :=$(TCPATH)windres$(EXE)
135 SYNCE_PCP :=synce-pcp
136 SYNCE_PRM :=synce-prm
137 CE_VERSION :=0x0$(CE_MAJOR)$(CE_MINOR)
138 ARFLAGS :=r
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
139 MKDIR :=mkdir -p
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored
140 FIND :=find
141 ETAGS :=etags
142 EBROWSE :=ebrowse
bc0b668 @pventafridda initial revision 123j
pventafridda authored
143
144 ######## windows definitions
145
146 ifeq ($(CONFIG_PC),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
147 CE_DEFS :=-D_WIN32_WINDOWS=$(CE_VERSION) -DWINVER=$(CE_VERSION)
148 CE_DEFS +=-D_WIN32_IE=$(CE_VERSION) -DWINDOWSPC=1
bc0b668 @pventafridda initial revision 123j
pventafridda authored
149 else
150 CE_DEFS :=-D_WIN32_WCE=$(CE_VERSION) -D_WIN32_IE=$(CE_VERSION)
151 CE_DEFS +=-DWIN32_PLATFORM_PSPC=$(CE_PLATFORM)
152 endif
153
154 ifeq ($(CONFIG_PPC2002),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
155 CE_DEFS +=-DPPC2002=1
bc0b668 @pventafridda initial revision 123j
pventafridda authored
156 endif
157 ifeq ($(CONFIG_PPC2003),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
158 CE_DEFS +=-DPPC2003=1
bc0b668 @pventafridda initial revision 123j
pventafridda authored
159 endif
160
161
162 UNICODE := -DUNICODE -D_UNICODE
163
164 ######## paths
165
166 ifeq ($(CONFIG_WINE),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
167 INCLUDES := -I$(HDR)/mingw32compat -I$(HDR) -I$(SRC)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
168 else
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
169 INCLUDES := -I$(HDR)/mingw32compat -I$(HDR) -I$(SRC)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
170 endif
171
172 ######## compiler flags
173
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
174 CPPFLAGS := $(INCLUDES) $(CE_DEFS)
de74ebb @pventafridda (CC) Compile option FIVV permanently removed
pventafridda authored
175 CPPFLAGS += -DNDEBUG
bc0b668 @pventafridda initial revision 123j
pventafridda authored
176 #CPPFLAGS += -DFLARM_AVERAGE NOW INSIDE options.h
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
177 #CPPFLAGS += -Wchar-subscripts -Wformat -Winit-self -Wimplicit -Wmissing-braces -Wparentheses -Wreturn-type
178 #CPPFLAGS += -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized
bc0b668 @pventafridda initial revision 123j
pventafridda authored
179
5058f70 @mpusz '-Wswitch' compilation enabled and fixed all connected warnings
mpusz authored
180 CPPFLAGS += -Wall -Wno-write-strings -Wno-char-subscripts
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
181 #CPPFLAGS += -Wall -Wno-non-virtual-dtor
bc0b668 @pventafridda initial revision 123j
pventafridda authored
182 #CPPFLAGS += -Wno-char-subscripts -Wno-switch
183
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
184 #CPPFLAGS += -Wshadow
185 #CPPFLAGS += -Wsign-compare -Wsign-conversion
bc0b668 @pventafridda initial revision 123j
pventafridda authored
186 ifeq ($(CONFIG_PNA),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
187 CPPFLAGS += -DCECORE -DPNA
bc0b668 @pventafridda initial revision 123j
pventafridda authored
188 endif
189
190 ifeq ($(CONFIG_PC),y)
191 CPPFLAGS += -D_WINDOWS -D_MBCS -DWIN32 -DCECORE -DUNDER_CE=300 $(UNICODE)
192 ifeq ($(CONFIG_WINE),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
193 CPPFLAGS += -D__MINGW32__
194 # -mno-cygwin
bc0b668 @pventafridda initial revision 123j
pventafridda authored
195 else
196 CPPFLAGS += $(UNICODE)
197 endif
198 else
199 CPPFLAGS += -D_ARM_ $(UNICODE)
200 endif
201
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored
202 ifeq ($(DMALLOC),y)
203 CPPFLAGS += -DHC_DMALLOC
204 endif
205
bc0b668 @pventafridda initial revision 123j
pventafridda authored
206 CXXFLAGS :=$(OPTIMIZE) -fno-exceptions $(PROFILE)
207 CFLAGS :=$(OPTIMIZE) $(PROFILE)
208
209 ####### linker configuration
210
211 LDFLAGS :=-Wl,--major-subsystem-version=$(CE_MAJOR)
212 LDFLAGS +=-Wl,--minor-subsystem-version=$(CE_MINOR)
213 ifeq ($(CONFIG_PC),y)
214 LDFLAGS +=-Wl,-subsystem,windows
215 endif
216 LDFLAGS +=$(PROFILE)
217
218 ifeq ($(CONFIG_PC),y)
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored
219 LDLIBS := -Wl,-Bstatic -lstdc++ -lmingw32 -lcomctl32 -lkernel32 -luser32 -lgdi32 -ladvapi32 -lwinmm -lmsimg32
bc0b668 @pventafridda initial revision 123j
pventafridda authored
220 else
92cdc40 @pventafridda Thermal History page 3.3, functional.
pventafridda authored
221 LDLIBS := -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lcommctrl
bc0b668 @pventafridda initial revision 123j
pventafridda authored
222 ifeq ($(MINIMAL),n)
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using Gl...
pventafridda authored
223 LDLIBS += -laygshell
bc0b668 @pventafridda initial revision 123j
pventafridda authored
224 ifneq ($(TARGET),PNA)
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using Gl...
pventafridda authored
225 LDLIBS += -limgdecmp
bc0b668 @pventafridda initial revision 123j
pventafridda authored
226 endif
227 endif
228 endif
229
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored
230 ifeq ($(DMALLOC),y)
231 LDLIBS += -L../dmalloc -ldmalloc
232 endif
233
bc0b668 @pventafridda initial revision 123j
pventafridda authored
234 ####### compiler target
235
236 ifeq ($(CONFIG_PC),y)
237 TARGET_ARCH :=-mwindows -march=i586 -mms-bitfields
238 else
239
240 TARGET_ARCH :=-mwin32 $(MCPU)
241 ifeq ($(TARGET),PNA)
242 TARGET_ARCH :=-mwin32
243 endif
244
245 endif
246 WINDRESFLAGS :=-I$(HDR) -I$(SRC) $(CE_DEFS) -D_MINGW32_
247 MAKEFLAGS +=-r
248
249 ####### build verbosity
250
251 # Internal - Control verbosity
252 # make V=0 - quiet
253 # make V=1 - terse (default)
254 # make V=2 - show commands
255 ifeq ($(V),2)
256 Q :=
257 NQ :=\#
258 else
259 Q :=@
260 ifeq ($(V),0)
261 NQ :=\#
262 else
263 NQ :=
264 endif
265 endif
266
267 ifeq ($(CONFIG_PC),n)
268 #CPPFLAGS_Common_Source_ :=-Werror
269 endif
270
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
271 ####### sources
272
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored
273 UTILS :=\
274 $(SRC)/utils/stringext.cpp
275
bc0b668 @pventafridda initial revision 123j
pventafridda authored
276 DEVS :=\
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
277 $(SRC)/devBase.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
278 $(SRC)/devBorgeltB50.cpp \
279 $(SRC)/devCAI302.cpp \
280 $(SRC)/devCaiGpsNav.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
281 $(SRC)/devCompeo.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
282 $(SRC)/devCondor.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
283 $(SRC)/devDigifly.cpp \
284 $(SRC)/devDisabled.cpp \
285 $(SRC)/devDSX.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
286 $(SRC)/devEW.cpp \
287 $(SRC)/devEWMicroRecorder.cpp \
288 $(SRC)/devFlymasterF1.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
289 $(SRC)/devFlytec.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
290 $(SRC)/devGeneric.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
291 $(SRC)/devIlec.cpp \
292 $(SRC)/devIMI.cpp \
293 $(SRC)/devNmeaOut.cpp \
294 $(SRC)/devLKext1.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
295 $(SRC)/devLX.cpp \
58c0d56 @peclik initial implementation of LXNano support
peclik authored
296 $(SRC)/devLXNano.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
297 $(SRC)/devPosiGraph.cpp \
298 $(SRC)/devVolkslogger.cpp \
299 $(SRC)/devXCOM760.cpp \
300 $(SRC)/devZander.cpp \
90b0fb4 @pventafridda Add device driver for Westerboer VW1150
pventafridda authored
301 $(SRC)/devWesterboer.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
302
303 DLGS :=\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
304 $(SRC)/dlgAirspace.cpp \
84f3ac6 @rkalman Add new airspace warning parameters available to user
rkalman authored
305 $(SRC)/dlgAirspaceWarningParams.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
306 $(SRC)/dlgAirspaceColours.cpp \
307 $(SRC)/dlgAirspaceDetails.cpp \
308 $(SRC)/dlgAirspacePatterns.cpp \
309 $(SRC)/dlgAirspaceSelect.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
310 $(SRC)/dlgBasicSettings.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
311 $(SRC)/dlgBottomBar.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
312 $(SRC)/dlgChecklist.cpp \
313 $(SRC)/dlgConfiguration.cpp \
314 $(SRC)/dlgConfiguration2.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
315 $(SRC)/dlgCustomKeys.cpp \
316 $(SRC)/dlgFontEdit.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
317 $(SRC)/dlgHelp.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
318 $(SRC)/dlgInfoPages.cpp \
319 $(SRC)/dlgLKAirspaceWarning.cpp \
320 $(SRC)/dlgLKTraffic.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
321 $(SRC)/dlgLoggerReplay.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
322 $(SRC)/dlgOracle.cpp \
323 $(SRC)/dlgProfiles.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
324 $(SRC)/dlgStartPoint.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
325 $(SRC)/dlgStartTask.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
326 $(SRC)/dlgStartup.cpp \
327 $(SRC)/dlgStatistics.cpp \
328 $(SRC)/dlgStatus.cpp \
329 $(SRC)/dlgStatusSystem.cpp \
330 $(SRC)/dlgTarget.cpp \
331 $(SRC)/dlgTaskCalculator.cpp \
332 $(SRC)/dlgTaskOverview.cpp \
333 $(SRC)/dlgTaskRules.cpp \
334 $(SRC)/dlgTimeGates.cpp \
335 $(SRC)/dlgTopology.cpp \
336 $(SRC)/dlgTaskWaypoint.cpp \
337 $(SRC)/dlgTeamCode.cpp \
338 $(SRC)/dlgTextEntry_Keyboard.cpp \
5e4f4f1 @pventafridda Preliminar work for the Oracle.
pventafridda authored
339 $(SRC)/dlgThermalDetails.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
340 $(SRC)/dlgTools.cpp \
341 $(SRC)/dlgWayPointDetails.cpp \
342 $(SRC)/dlgWayQuick.cpp \
343 $(SRC)/dlgWaypointEdit.cpp \
344 $(SRC)/dlgWayPointSelect.cpp \
345 $(SRC)/dlgWaypointOutOfTerrain.cpp \
346 $(SRC)/dlgWindSettings.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
347
348 VOLKS :=\
349 $(SRC)/Volkslogger/dbbconv.cpp \
350 $(SRC)/Volkslogger/grecord.cpp \
351 $(SRC)/Volkslogger/vlapi2.cpp \
352 $(SRC)/Volkslogger/vlapihlp.cpp \
353 $(SRC)/Volkslogger/vlapisys_win.cpp \
354 $(SRC)/Volkslogger/vlconv.cpp \
355 $(SRC)/Volkslogger/vlutils.cpp
356
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
357 SRC_FILES :=\
974c3d0 @pventafridda (CC) Split Utils2 into some files
pventafridda authored
358 $(SRC)/LKInterface.cpp\
359 $(SRC)/LKFonts.cpp $(SRC)/LDRotaryBuffer.cpp\
360 $(SRC)/TrueWind.cpp $(SRC)/OverTargets.cpp\
361 $(SRC)/magfield.cpp $(SRC)/VirtualKeys.cpp\
c9a0b5c @pventafridda (CC) Thread_Port.cpp
pventafridda authored
362 $(SRC)/Thread_Draw.cpp $(SRC)/Thread_Port.cpp\
8641335 @pventafridda (CC) InitFunctions from lk8000.cpp . WinMain remains in lk8000.
pventafridda authored
363 $(SRC)/WndProc.cpp $(SRC)/InitFunctions.cpp\
96b5cce @pventafridda (CC) Thread_Calculation.cpp
pventafridda authored
364 $(SRC)/Settings.cpp $(SRC)/Thread_Calculation.cpp\
b12fe8d @pventafridda (CC) Move functions to ProcessTimer.cpp
pventafridda authored
365 $(SRC)/lk8000.cpp $(SRC)/ProcessTimer.cpp \
35817f9 @pventafridda (CC) Move string functions from Utils to StringFunctions.cpp
pventafridda authored
366 $(SRC)/TimeFunctions.cpp $(SRC)/StringFunctions.cpp\
0f54f08 @pventafridda (CC) Split asset and uuid functions into AssetId.cpp
pventafridda authored
367 $(SRC)/Polar.cpp $(SRC)/AssetId.cpp \
39a5c88 @pventafridda (CC) Renamed AirTools to PressureFunctions
pventafridda authored
368 $(SRC)/FlarmTools.cpp $(SRC)/PressureFunctions.cpp\
f9df456 @pventafridda (CC) Split registry functions to Registry.cpp
pventafridda authored
369 $(SRC)/MessageLog.cpp $(SRC)/Registry.cpp\
1195d9c @pventafridda (CC) Move to Fonts.cpp functions from lk8000.cpp
pventafridda authored
370 $(SRC)/Locking.cpp $(SRC)/Fonts.cpp \
6adacef @pventafridda (CC) Move battery functions from lk8000 to Battery.cpp
pventafridda authored
371 $(SRC)/ExpandMacros.cpp $(SRC)/Battery.cpp \
27fdbc6 @pventafridda (CC) DataOption in a separate file
pventafridda authored
372 $(SRC)/Globals.cpp $(SRC)/DataOptions.cpp \
1310fe4 @pventafridda Bitmaps functions separated, and new Battery and Logger indicators
pventafridda authored
373 $(SRC)/LKAirspace.cpp $(SRC)/Bitmaps.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
374 $(SRC)/AATDistance.cpp $(SRC)/AirfieldDetails.cpp \
09f926b @pventafridda (CC) Removed unused code after LKAIRSPACE is permanent (empty files in M...
pventafridda authored
375 $(SRC)/Airspace.cpp \
376 $(SRC)/Atmosphere.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
377 $(SRC)/Calculations.cpp $(SRC)/Calculations2.cpp \
378 $(SRC)/ClimbAverageCalculator.cpp $(SRC)/LKCalculations.cpp \
379 $(SRC)/ConditionMonitor.cpp $(SRC)/device.cpp \
380 $(SRC)/Dialogs.cpp $(SRC)/LKProcess.cpp \
381 $(SRC)/FlarmIdFile.cpp $(SRC)/FlarmCalculations.cpp \
382 $(SRC)/Geoid.cpp \
ac8bb2b @pventafridda (CC) Permanently removed IBOX mode (USEIBOX in options)
pventafridda authored
383 $(SRC)/InfoBoxLayout.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
384 $(SRC)/InputEvents.cpp $(SRC)/leastsqs.cpp \
385 $(SRC)/Logger.cpp $(SRC)/LKMapWindow.cpp \
386 $(SRC)/LKDrawLook8000.cpp $(SRC)/LKDrawNearest.cpp\
1658d2d @pventafridda Preliminar 2.4 layout and functions, plus other things
pventafridda authored
387 $(SRC)/LKDrawCommon.cpp $(SRC)/LKDrawAspNearest.cpp\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
388 $(SRC)/LKDrawInfoPage.cpp $(SRC)/LKDrawWaypoints.cpp\
389 $(SRC)/LKDrawTraffic.cpp $(SRC)/LKSimulator.cpp\
92cdc40 @pventafridda Thermal History page 3.3, functional.
pventafridda authored
390 $(SRC)/LKDrawThermalHistory.cpp \
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using Gl...
pventafridda authored
391 $(SRC)/LKBestAlternate.cpp $(SRC)/LKHolux.cpp \
31671d0 @pventafridda Royaltek BV-3200 (Medion S3747 GoPal) Pressure sensor support for baro a...
pventafridda authored
392 $(SRC)/LKRoyaltek3200.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
393 $(SRC)/MapWindow.cpp $(SRC)/MapWindow2.cpp \
7d52a4b @peclik implementing airspace drawing using alpha blending (semi-transparent are...
peclik authored
394 $(SRC)/MapWindow3.cpp $(SRC)/MapWindowA.cpp \
e4a3cd0 @mpusz MapWindow zoom and display mode rework: step 2 - New classes
mpusz authored
395 $(SRC)/MapWindowZoom.cpp $(SRC)/MapWindowMode.cpp \
7d52a4b @peclik implementing airspace drawing using alpha blending (semi-transparent are...
peclik authored
396 $(SRC)/Utils2.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
397 $(SRC)/McReady.cpp $(SRC)/Message.cpp \
527c1e2 @mpusz Old OLC framework removed
mpusz authored
398 $(SRC)/NavFunctions.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
399 $(SRC)/Parser.cpp $(SRC)/Port.cpp \
400 $(SRC)/Process.cpp $(SRC)/dlgComboPicker.cpp \
401 $(SRC)/RasterTerrain.cpp $(SRC)/rscalc.cpp \
402 $(SRC)/StdAfx.cpp $(SRC)/STScreenBuffer.cpp \
403 $(SRC)/Task.cpp $(SRC)/TeamCodeCalculation.cpp \
404 $(SRC)/Terrain.cpp $(SRC)/ThermalLocator.cpp \
405 $(SRC)/Topology.cpp $(SRC)/units.cpp \
406 $(SRC)/Utils.cpp $(SRC)/Utm.cpp \
407 $(SRC)/VOIMAGE.cpp $(SRC)/LKObjects.cpp \
408 $(SRC)/Waypointparser.cpp $(SRC)/LKUtils.cpp \
409 $(SRC)/LKLanguage.cpp $(SRC)/LKGeneralAviation.cpp \
410 $(SRC)/windanalyser.cpp $(SRC)/windmeasurementlist.cpp \
411 $(SRC)/windstore.cpp $(SRC)/WindowControls.cpp \
412 $(SRC)/WindZigZag.cpp $(SRC)/xmlParser.cpp \
d076a12 @mpusz New OLC engine integrated
mpusz authored
413 $(SRC)/ContestMgr.cpp $(SRC)/Trace.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
414 \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
415 $(SRC)/mapbits.cpp \
416 $(SRC)/maperror.cpp $(SRC)/mapprimitive.cpp \
417 $(SRC)/mapsearch.cpp $(SRC)/mapshape.cpp \
418 $(SRC)/maptree.cpp $(SRC)/mapxbase.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
419 \
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored
420 $(UTILS) \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
421 $(DEVS) \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
422 $(DLGS) \
423 $(VOLKS)
b88445f @mpusz OLC reversibility fixed
mpusz authored
424
bc0b668 @pventafridda initial revision 123j
pventafridda authored
425
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
426 ####### libraries
bc0b668 @pventafridda initial revision 123j
pventafridda authored
427
428 ZZIPSRC :=$(SRC)/zzip
429 ZZIP :=\
430 $(ZZIPSRC)/adler32.c $(ZZIPSRC)/compress.c \
431 $(ZZIPSRC)/crc32.c $(ZZIPSRC)/deflate.c \
432 $(ZZIPSRC)/err.c $(ZZIPSRC)/fetch.c \
433 $(ZZIPSRC)/file.c \
434 $(ZZIPSRC)/infback.c $(ZZIPSRC)/inffast.c \
435 $(ZZIPSRC)/inflate.c $(ZZIPSRC)/info.c \
436 $(ZZIPSRC)/inftrees.c $(ZZIPSRC)/plugin.c \
437 $(ZZIPSRC)/trees.c $(ZZIPSRC)/uncompr.c \
438 $(ZZIPSRC)/zip.c $(ZZIPSRC)/zstat.c \
439 $(ZZIPSRC)/zutil.c
440
441 JASSRC :=$(SRC)/jasper
442 JASPER :=\
443 $(JASSRC)/base/jas_cm.c $(JASSRC)/base/jas_debug.c \
444 $(JASSRC)/base/jas_getopt.c $(JASSRC)/base/jas_icc.c \
445 $(JASSRC)/base/jas_iccdata.c $(JASSRC)/base/jas_image.c \
446 $(JASSRC)/base/jas_init.c $(JASSRC)/base/jas_malloc.c \
447 $(JASSRC)/base/jas_seq.c $(JASSRC)/base/jas_stream.c \
448 $(JASSRC)/base/jas_string.c $(JASSRC)/base/jas_tvp.c \
449 $(JASSRC)/base/jas_version.c $(JASSRC)/jp2/jp2_cod.c \
450 $(JASSRC)/jp2/jp2_dec.c $(JASSRC)/jpc/jpc_bs.c \
451 $(JASSRC)/jpc/jpc_cs.c $(JASSRC)/jpc/jpc_dec.c \
452 $(JASSRC)/jpc/jpc_math.c $(JASSRC)/jpc/jpc_mct.c \
453 $(JASSRC)/jpc/jpc_mqdec.c $(JASSRC)/jpc/jpc_mqcod.c \
454 $(JASSRC)/jpc/jpc_qmfb.c $(JASSRC)/jpc/jpc_rtc.cpp \
455 $(JASSRC)/jpc/jpc_t1dec.c $(JASSRC)/jpc/jpc_t1enc.c \
456 $(JASSRC)/jpc/jpc_t1cod.c \
457 $(JASSRC)/jpc/jpc_t2dec.c $(JASSRC)/jpc/jpc_t2cod.c \
458 $(JASSRC)/jpc/jpc_tagtree.c $(JASSRC)/jpc/jpc_tsfb.c \
459 $(JASSRC)/jpc/jpc_util.c $(JASSRC)/jpc/RasterTile.cpp
460
461 COMPATSRC:=$(SRC)/wcecompat
462 COMPAT :=\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
463 $(COMPATSRC)/errno.cpp $(COMPATSRC)/string_extras.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored
464 $(COMPATSRC)/ts_string.cpp $(COMPATSRC)/wtoi.c
465
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored
466 #ifneq ($(CONFIG_PC),y)
467 #COMPAT :=$(COMPAT) \
468 # $(COMPATSRC)/redir.cpp
469 #endif
470
bc0b668 @pventafridda initial revision 123j
pventafridda authored
471
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
472 ####### compilation outputs
bc0b668 @pventafridda initial revision 123j
pventafridda authored
473
62b13b2 @pventafridda JP2000 and DEM files inside DAT/LKM no more supported - no use of jasper...
pventafridda authored
474 # Add JP2 library for JP2000 unsupported raster maps
475 # (BIN)/jasper.a \
476
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
477 OBJS :=\
478 $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(SRC_FILES)) \
479 $(BIN)/zzip.a \
480 $(BIN)/compat.a \
481 $(BIN)/lk8000.rsc
bc0b668 @pventafridda initial revision 123j
pventafridda authored
482
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
483 IGNORE := \( -name .git \) -prune -o
bc0b668 @pventafridda initial revision 123j
pventafridda authored
484
485
486 ####### dependency handling
487
488 DEPFILE =$(dir $@).$(notdir $@).d
489 DEPFLAGS =-Wp,-MD,$(DEPFILE)
490 dirtarget =$(subst \\,_,$(subst /,_,$(dir $@)))
491 cc-flags =$(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS_$(dirtarget)) $(TARGET_ARCH)
492 cxx-flags =$(DEPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(CPPFLAGS_$(dirtarget)) $(TARGET_ARCH)
493
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
494
495 ####### targets
496
3a08193 @mpusz Emacs environment oriented changes
mpusz authored
497 .PHONY: FORCE all clean cleani tags
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
498
499 all: $(OUTPUTS)
500
501 clean: cleani
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored
502 @$(NQ)echo " CLEAN $(BIN)"
503 $(Q)$(FIND) $(BIN) $(IGNORE) \( -name '*.[oa]' -o -name '*.rsc' -o -name '.*.d' \) -type f -print | xargs -r $(RM)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored
504 $(Q)$(RM) LK8000-$(TARGET)-ns.exe
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
505
506 cleani:
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored
507 @$(NQ)echo " CLEANI"
508 $(Q)$(FIND) . $(IGNORE) \( -name '*.i' \) -type f -print | xargs -r $(RM)
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
509
3a08193 @mpusz Emacs environment oriented changes
mpusz authored
510 tags:
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored
511 @$(NQ)echo " TAGS"
512 $(Q)$(ETAGS) --declarations --output=TAGS `find . -name *\\\.[ch] -or -name *\\\.cpp`
513 $(Q)$(EBROWSE) -s `find . -name *\\\.[ch] -or -name *\\\.cpp`
3a08193 @mpusz Emacs environment oriented changes
mpusz authored
514
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
515
bc0b668 @pventafridda initial revision 123j
pventafridda authored
516 #
517 # Useful debugging targets - make preprocessed versions of the source
518 #
519 %.i: %.cpp FORCE
520 $(CXX) $(cxx-flags) -E $(OUTPUT_OPTION) $<
521
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
522 %.i: %.c FORCE
523 $(CC) $(cc-flags) -E $(OUTPUT_OPTION) $<
524
bc0b668 @pventafridda initial revision 123j
pventafridda authored
525 %.s: %.cpp FORCE
526 $(CXX) $(cxx-flags) -S $(OUTPUT_OPTION) $<
527
528
529
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
530 ####### rules
bc0b668 @pventafridda initial revision 123j
pventafridda authored
531
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
532 LK8000-$(TARGET).exe: LK8000-$(TARGET)-ns.exe
533 @$(NQ)echo " STRIP $@"
534 $(Q)$(STRIP) $< -o $@
535 $(Q)$(SIZE) $@
72e97b9 @pventafridda This is version 2.3d2
pventafridda authored
536 # ./buildnumber
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
537 $(RM) LK8000-$(TARGET)-ns.exe
538
539 LK8000-$(TARGET)-ns.exe: $(OBJS)
540 @$(NQ)echo " LINK $@"
541 $(Q)$(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
bc0b668 @pventafridda initial revision 123j
pventafridda authored
542
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
543 $(BIN)/zzip.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(ZZIP)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(ZZIP))
544 @$(NQ)echo " AR $@"
545 $(Q)$(AR) $(ARFLAGS) $@ $^
546
547 $(BIN)/jasper.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(JASPER)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(JASPER))
548 @$(NQ)echo " AR $@"
549 $(Q)$(AR) $(ARFLAGS) $@ $^
550
551 $(BIN)/compat.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(COMPAT)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(COMPAT))
552 @$(NQ)echo " AR $@"
553 $(Q)$(AR) $(ARFLAGS) $@ $^
554
555 $(BIN)/%.o: $(SRC)/%.c
bc0b668 @pventafridda initial revision 123j
pventafridda authored
556 @$(NQ)echo " CC $@"
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
557 $(Q)$(MKDIR) $(dir $@)
558 $(Q)$(CC) $(cc-flags) -c $(OUTPUT_OPTION) $<
bc0b668 @pventafridda initial revision 123j
pventafridda authored
559 @sed -i '1s,^[^ :]*,$@,' $(DEPFILE)
560
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
561 $(BIN)/%.o: $(SRC)/%.cpp
bc0b668 @pventafridda initial revision 123j
pventafridda authored
562 @$(NQ)echo " CXX $@"
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
563 $(Q)$(MKDIR) $(dir $@)
564 $(Q)$(CXX) $(cxx-flags) -c $(OUTPUT_OPTION) $<
bc0b668 @pventafridda initial revision 123j
pventafridda authored
565 @sed -i '1s,^[^ :]*,$@,' $(DEPFILE)
566
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
567 $(BIN)/%.rsc: $(SRC)/%.rc
568 @echo "$@: $< " `sed -nr 's|^.*"\.\./(Data[^"]+)".*$$|Common/\1|gp' $<` > $(DEPFILE)
569 @$(NQ)echo " WINDRES $@"
570 $(Q)$(WINDRES) $(WINDRESFLAGS) $< $@
bc0b668 @pventafridda initial revision 123j
pventafridda authored
571
572
573
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
574 ####### include depends files
bc0b668 @pventafridda initial revision 123j
pventafridda authored
575
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
576 ifneq ($(wildcard $(BIN)/.*.d),)
577 include $(wildcard $(BIN)/.*.d)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
578 endif
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored
579 ifneq ($(wildcard $(BIN)/*/.*.d),)
580 include $(wildcard $(BIN)/*/.*.d)
581 endif
582 ifneq ($(wildcard $(BIN)/.*.rsc),)
583 include $(wildcard $(BIN)/.*.d)
bc0b668 @pventafridda initial revision 123j
pventafridda authored
584 endif
Something went wrong with that request. Please try again.