Skip to content
Newer
Older
100644 569 lines (482 sloc) 13.5 KB
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
1 #
2 SRC=Common/Source
3 HDR=Common/Header
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
4 BIN=Bin/$(TARGET)
5
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored Mar 21, 2011
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 Mar 1, 2011
9 PROFILE :=
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
54 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
59 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
65 MCPU := -mcpu=$(CPU)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Jan 19, 2011
123
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
124 OUTPUTS := LK8000-$(TARGET).exe
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
125
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Jan 19, 2011
139 MKDIR :=mkdir -p
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored Jan 27, 2011
140 FIND :=find
141 ETAGS :=etags
142 EBROWSE :=ebrowse
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
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 Dec 15, 2010
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 Mar 1, 2011
155 CE_DEFS +=-DPPC2002=1
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
156 endif
157 ifeq ($(CONFIG_PPC2003),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
158 CE_DEFS +=-DPPC2003=1
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
167 INCLUDES := -I$(HDR)/mingw32compat -I$(HDR) -I$(SRC)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
168 else
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
169 INCLUDES := -I$(HDR)/mingw32compat -I$(HDR) -I$(SRC)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
170 endif
171
172 ######## compiler flags
173
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
174 CPPFLAGS := $(INCLUDES) $(CE_DEFS)
de74ebb @pventafridda (CC) Compile option FIVV permanently removed
pventafridda authored Jun 22, 2011
175 CPPFLAGS += -DNDEBUG
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
176 #CPPFLAGS += -DFLARM_AVERAGE NOW INSIDE options.h
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
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 Dec 15, 2010
179
5058f70 @mpusz '-Wswitch' compilation enabled and fixed all connected warnings
mpusz authored Jan 27, 2011
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 Mar 1, 2011
181 #CPPFLAGS += -Wall -Wno-non-virtual-dtor
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
182 #CPPFLAGS += -Wno-char-subscripts -Wno-switch
183
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
184 #CPPFLAGS += -Wshadow
185 #CPPFLAGS += -Wsign-compare -Wsign-conversion
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
186 ifeq ($(CONFIG_PNA),y)
b797e4e @peclik LX Colibri/Nano now uses specific UTF-16 to US-ASCII conversion
peclik authored Mar 1, 2011
187 CPPFLAGS += -DCECORE -DPNA
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 1, 2011
193 CPPFLAGS += -D__MINGW32__
194 # -mno-cygwin
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 21, 2011
202 ifeq ($(DMALLOC),y)
203 CPPFLAGS += -DHC_DMALLOC
204 endif
205
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Mar 21, 2011
219 LDLIBS := -Wl,-Bstatic -lstdc++ -lmingw32 -lcomctl32 -lkernel32 -luser32 -lgdi32 -ladvapi32 -lwinmm -lmsimg32
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
220 else
92cdc40 @pventafridda Thermal History page 3.3, functional.
pventafridda authored Jul 16, 2011
221 LDLIBS := -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lcommctrl
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
222 ifeq ($(MINIMAL),n)
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using…
pventafridda authored Jul 8, 2011
223 LDLIBS += -laygshell
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
224 ifneq ($(TARGET),PNA)
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using…
pventafridda authored Jul 8, 2011
225 LDLIBS += -limgdecmp
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
226 endif
227 endif
228 endif
229
4fcc563 @peclik added support for compilation with dmalloc heap checker
peclik authored Mar 21, 2011
230 ifeq ($(DMALLOC),y)
231 LDLIBS += -L../dmalloc -ldmalloc
232 endif
233
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
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 Jan 19, 2011
271 ####### sources
272
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored Mar 18, 2011
273 UTILS :=\
274 $(SRC)/utils/stringext.cpp
275
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
276 DEVS :=\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
277 $(SRC)/devBorgeltB50.cpp \
278 $(SRC)/devCAI302.cpp \
279 $(SRC)/devCaiGpsNav.cpp \
280 $(SRC)/devCondor.cpp \
281 $(SRC)/devEW.cpp \
282 $(SRC)/devEWMicroRecorder.cpp \
283 $(SRC)/devFlymasterF1.cpp \
284 $(SRC)/devCompeo.cpp \
285 $(SRC)/devDigifly.cpp \
286 $(SRC)/devGeneric.cpp \
91c87d1 @pventafridda Configuration device "DISABLED"
pventafridda authored Apr 19, 2011
287 $(SRC)/devDisabled.cpp \
58c0d56 @peclik initial implementation of LXNano support
peclik authored Feb 11, 2011
288 $(SRC)/devBase.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
289 $(SRC)/devLX.cpp \
58c0d56 @peclik initial implementation of LXNano support
peclik authored Feb 11, 2011
290 $(SRC)/devLXNano.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
291 $(SRC)/devNmeaOut.cpp \
292 $(SRC)/devPosiGraph.cpp \
293 $(SRC)/devVolkslogger.cpp \
294 $(SRC)/devXCOM760.cpp \
295 $(SRC)/devZander.cpp \
ef9d55d @mpusz DSX support added
mpusz authored Feb 6, 2011
296 $(SRC)/devIlec.cpp \
833c85a @pventafridda CHANGES file updated
pventafridda authored Feb 8, 2011
297 $(SRC)/devDSX.cpp \
57d6107 @mpusz IMI ERIXX logger device added
mpusz authored Apr 24, 2011
298 $(SRC)/devIMI.cpp \
90b0fb4 @pventafridda Add device driver for Westerboer VW1150
pventafridda authored Jun 14, 2011
299 $(SRC)/devWesterboer.cpp \
c1e7420 @pventafridda Preliminar Flytec FLYSEN support
pventafridda authored Feb 8, 2011
300 $(SRC)/devFlytec.cpp \
ec53568 @pventafridda Fix OAT temperature not showing below 1C . Added device LK8EX1.
pventafridda authored Feb 17, 2011
301 $(SRC)/devLKext1.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
302
303 DLGS :=\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
304 $(SRC)/dlgAirspace.cpp \
84f3ac6 @rkalman Add new airspace warning parameters available to user
rkalman authored Mar 20, 2011
305 $(SRC)/dlgAirspaceWarningParams.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
306 $(SRC)/dlgAirspaceColours.cpp \
307 $(SRC)/dlgAirspaceDetails.cpp \
308 $(SRC)/dlgAirspacePatterns.cpp \
309 $(SRC)/dlgAirspaceSelect.cpp \
310 $(SRC)/dlgAirspaceWarning.cpp \
4beee88 @rkalman Initial very primitive dlgLKAirspaceWarning dialog added
rkalman authored Feb 28, 2011
311 $(SRC)/dlgLKAirspaceWarning.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
312 $(SRC)/dlgBasicSettings.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
313 $(SRC)/dlgChecklist.cpp \
314 $(SRC)/dlgConfiguration.cpp \
315 $(SRC)/dlgConfiguration2.cpp \
316 $(SRC)/dlgHelp.cpp \
317 $(SRC)/dlgLoggerReplay.cpp \
318 $(SRC)/dlgStartPoint.cpp \
319 $(SRC)/dlgStartup.cpp \
320 $(SRC)/dlgStatistics.cpp \
321 $(SRC)/dlgStatus.cpp \
322 $(SRC)/dlgStatusSystem.cpp \
323 $(SRC)/dlgTarget.cpp \
324 $(SRC)/dlgTaskCalculator.cpp \
325 $(SRC)/dlgTaskOverview.cpp \
326 $(SRC)/dlgTaskRules.cpp \
327 $(SRC)/dlgTimeGates.cpp \
328 $(SRC)/dlgTopology.cpp \
329 $(SRC)/dlgTaskWaypoint.cpp \
330 $(SRC)/dlgTeamCode.cpp \
331 $(SRC)/dlgTextEntry_Keyboard.cpp \
332 $(SRC)/dlgTools.cpp \
333 $(SRC)/dlgWayPointDetails.cpp \
334 $(SRC)/dlgWayQuick.cpp \
335 $(SRC)/dlgWaypointEdit.cpp \
336 $(SRC)/dlgWayPointSelect.cpp \
337 $(SRC)/dlgWaypointOutOfTerrain.cpp \
338 $(SRC)/dlgWeather.cpp \
339 $(SRC)/dlgWindSettings.cpp \
340 $(SRC)/dlgStartTask.cpp \
341 $(SRC)/dlgFontEdit.cpp \
342 $(SRC)/dlgLKTraffic.cpp \
343 $(SRC)/dlgCustomKeys.cpp \
caa5a1d @pventafridda New configurable BottomBar.
pventafridda authored Apr 28, 2011
344 $(SRC)/dlgBottomBar.cpp \
c6e6d61 @pventafridda Configurable infopages
pventafridda authored May 11, 2011
345 $(SRC)/dlgInfoPages.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
346 $(SRC)/dlgProfiles.cpp \
92cdc40 @pventafridda Thermal History page 3.3, functional.
pventafridda authored Jul 15, 2011
347 $(SRC)/dlgThermalDetails.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
348
349 VOLKS :=\
350 $(SRC)/Volkslogger/dbbconv.cpp \
351 $(SRC)/Volkslogger/grecord.cpp \
352 $(SRC)/Volkslogger/vlapi2.cpp \
353 $(SRC)/Volkslogger/vlapihlp.cpp \
354 $(SRC)/Volkslogger/vlapisys_win.cpp \
355 $(SRC)/Volkslogger/vlconv.cpp \
356 $(SRC)/Volkslogger/vlutils.cpp
357
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
358 SRC_FILES :=\
cc00787 @rkalman Airspace rework - new classes added
rkalman authored Feb 7, 2011
359 $(SRC)/LKAirspace.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
360 $(SRC)/AATDistance.cpp $(SRC)/AirfieldDetails.cpp \
09f926b @pventafridda (CC) Removed unused code after LKAIRSPACE is permanent (empty files i…
pventafridda authored Jun 28, 2011
361 $(SRC)/Airspace.cpp \
362 $(SRC)/Atmosphere.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
363 $(SRC)/Calculations.cpp $(SRC)/Calculations2.cpp \
364 $(SRC)/ClimbAverageCalculator.cpp $(SRC)/LKCalculations.cpp \
365 $(SRC)/ConditionMonitor.cpp $(SRC)/device.cpp \
366 $(SRC)/Dialogs.cpp $(SRC)/LKProcess.cpp \
367 $(SRC)/FlarmIdFile.cpp $(SRC)/FlarmCalculations.cpp \
368 $(SRC)/Geoid.cpp \
369 $(SRC)/InfoBox.cpp $(SRC)/InfoBoxLayout.cpp \
370 $(SRC)/InputEvents.cpp $(SRC)/leastsqs.cpp \
371 $(SRC)/Logger.cpp $(SRC)/LKMapWindow.cpp \
372 $(SRC)/LKDrawLook8000.cpp $(SRC)/LKDrawNearest.cpp\
1658d2d @pventafridda Preliminar 2.4 layout and functions, plus other things
pventafridda authored May 25, 2011
373 $(SRC)/LKDrawCommon.cpp $(SRC)/LKDrawAspNearest.cpp\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
374 $(SRC)/LKDrawInfoPage.cpp $(SRC)/LKDrawWaypoints.cpp\
375 $(SRC)/LKDrawTraffic.cpp $(SRC)/LKSimulator.cpp\
92cdc40 @pventafridda Thermal History page 3.3, functional.
pventafridda authored Jul 15, 2011
376 $(SRC)/LKDrawThermalHistory.cpp \
a17630e @pventafridda Holux environment, rework on Autobacklight and autosoundvolume, using…
pventafridda authored Jul 8, 2011
377 $(SRC)/LKBestAlternate.cpp $(SRC)/LKHolux.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
378 $(SRC)/MapWindow.cpp $(SRC)/MapWindow2.cpp \
7d52a4b @peclik implementing airspace drawing using alpha blending (semi-transparent …
peclik authored Jan 29, 2011
379 $(SRC)/MapWindow3.cpp $(SRC)/MapWindowA.cpp \
e4a3cd0 @mpusz MapWindow zoom and display mode rework: step 2 - New classes
mpusz authored Feb 2, 2011
380 $(SRC)/MapWindowZoom.cpp $(SRC)/MapWindowMode.cpp \
7d52a4b @peclik implementing airspace drawing using alpha blending (semi-transparent …
peclik authored Jan 29, 2011
381 $(SRC)/Utils2.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
382 $(SRC)/McReady.cpp $(SRC)/Message.cpp \
527c1e2 @mpusz Old OLC framework removed
mpusz authored Mar 15, 2011
383 $(SRC)/NavFunctions.cpp \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
384 $(SRC)/Parser.cpp $(SRC)/Port.cpp \
385 $(SRC)/Process.cpp $(SRC)/dlgComboPicker.cpp \
386 $(SRC)/RasterTerrain.cpp $(SRC)/rscalc.cpp \
387 $(SRC)/StdAfx.cpp $(SRC)/STScreenBuffer.cpp \
388 $(SRC)/Task.cpp $(SRC)/TeamCodeCalculation.cpp \
389 $(SRC)/Terrain.cpp $(SRC)/ThermalLocator.cpp \
390 $(SRC)/Topology.cpp $(SRC)/units.cpp \
391 $(SRC)/Utils.cpp $(SRC)/Utm.cpp \
392 $(SRC)/VOIMAGE.cpp $(SRC)/LKObjects.cpp \
393 $(SRC)/Waypointparser.cpp $(SRC)/LKUtils.cpp \
394 $(SRC)/LKLanguage.cpp $(SRC)/LKGeneralAviation.cpp \
395 $(SRC)/windanalyser.cpp $(SRC)/windmeasurementlist.cpp \
396 $(SRC)/windstore.cpp $(SRC)/WindowControls.cpp \
397 $(SRC)/WindZigZag.cpp $(SRC)/xmlParser.cpp \
d076a12 @mpusz New OLC engine integrated
mpusz authored Mar 16, 2011
398 $(SRC)/ContestMgr.cpp $(SRC)/Trace.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
399 \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
400 $(SRC)/mapbits.cpp \
401 $(SRC)/maperror.cpp $(SRC)/mapprimitive.cpp \
402 $(SRC)/mapsearch.cpp $(SRC)/mapshape.cpp \
403 $(SRC)/maptree.cpp $(SRC)/mapxbase.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
404 \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
405 $(SRC)/lk8000.cpp \
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored Mar 18, 2011
406 $(UTILS) \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
407 $(DEVS) \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
408 $(DLGS) \
409 $(VOLKS)
b88445f @mpusz OLC reversibility fixed
mpusz authored Mar 21, 2011
410
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
411
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
412 ####### libraries
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
413
414 ZZIPSRC :=$(SRC)/zzip
415 ZZIP :=\
416 $(ZZIPSRC)/adler32.c $(ZZIPSRC)/compress.c \
417 $(ZZIPSRC)/crc32.c $(ZZIPSRC)/deflate.c \
418 $(ZZIPSRC)/err.c $(ZZIPSRC)/fetch.c \
419 $(ZZIPSRC)/file.c \
420 $(ZZIPSRC)/infback.c $(ZZIPSRC)/inffast.c \
421 $(ZZIPSRC)/inflate.c $(ZZIPSRC)/info.c \
422 $(ZZIPSRC)/inftrees.c $(ZZIPSRC)/plugin.c \
423 $(ZZIPSRC)/trees.c $(ZZIPSRC)/uncompr.c \
424 $(ZZIPSRC)/zip.c $(ZZIPSRC)/zstat.c \
425 $(ZZIPSRC)/zutil.c
426
427 JASSRC :=$(SRC)/jasper
428 JASPER :=\
429 $(JASSRC)/base/jas_cm.c $(JASSRC)/base/jas_debug.c \
430 $(JASSRC)/base/jas_getopt.c $(JASSRC)/base/jas_icc.c \
431 $(JASSRC)/base/jas_iccdata.c $(JASSRC)/base/jas_image.c \
432 $(JASSRC)/base/jas_init.c $(JASSRC)/base/jas_malloc.c \
433 $(JASSRC)/base/jas_seq.c $(JASSRC)/base/jas_stream.c \
434 $(JASSRC)/base/jas_string.c $(JASSRC)/base/jas_tvp.c \
435 $(JASSRC)/base/jas_version.c $(JASSRC)/jp2/jp2_cod.c \
436 $(JASSRC)/jp2/jp2_dec.c $(JASSRC)/jpc/jpc_bs.c \
437 $(JASSRC)/jpc/jpc_cs.c $(JASSRC)/jpc/jpc_dec.c \
438 $(JASSRC)/jpc/jpc_math.c $(JASSRC)/jpc/jpc_mct.c \
439 $(JASSRC)/jpc/jpc_mqdec.c $(JASSRC)/jpc/jpc_mqcod.c \
440 $(JASSRC)/jpc/jpc_qmfb.c $(JASSRC)/jpc/jpc_rtc.cpp \
441 $(JASSRC)/jpc/jpc_t1dec.c $(JASSRC)/jpc/jpc_t1enc.c \
442 $(JASSRC)/jpc/jpc_t1cod.c \
443 $(JASSRC)/jpc/jpc_t2dec.c $(JASSRC)/jpc/jpc_t2cod.c \
444 $(JASSRC)/jpc/jpc_tagtree.c $(JASSRC)/jpc/jpc_tsfb.c \
445 $(JASSRC)/jpc/jpc_util.c $(JASSRC)/jpc/RasterTile.cpp
446
447 COMPATSRC:=$(SRC)/wcecompat
448 COMPAT :=\
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
449 $(COMPATSRC)/errno.cpp $(COMPATSRC)/string_extras.cpp \
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
450 $(COMPATSRC)/ts_string.cpp $(COMPATSRC)/wtoi.c
451
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored Mar 18, 2011
452 #ifneq ($(CONFIG_PC),y)
453 #COMPAT :=$(COMPAT) \
454 # $(COMPATSRC)/redir.cpp
455 #endif
456
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
457
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
458 ####### compilation outputs
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
459
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
460 OBJS :=\
461 $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(SRC_FILES)) \
462 $(BIN)/zzip.a \
1bba4d4 @peclik starting filename handling in Unicode everywhere
peclik authored Mar 18, 2011
463 $(BIN)/jasper.a \
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
464 $(BIN)/compat.a \
465 $(BIN)/lk8000.rsc
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
466
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
467 IGNORE := \( -name .git \) -prune -o
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
468
469
470 ####### dependency handling
471
472 DEPFILE =$(dir $@).$(notdir $@).d
473 DEPFLAGS =-Wp,-MD,$(DEPFILE)
474 dirtarget =$(subst \\,_,$(subst /,_,$(dir $@)))
475 cc-flags =$(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS_$(dirtarget)) $(TARGET_ARCH)
476 cxx-flags =$(DEPFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(CPPFLAGS_$(dirtarget)) $(TARGET_ARCH)
477
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
478
479 ####### targets
480
3a08193 @mpusz Emacs environment oriented changes
mpusz authored Jan 19, 2011
481 .PHONY: FORCE all clean cleani tags
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
482
483 all: $(OUTPUTS)
484
485 clean: cleani
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored Jan 27, 2011
486 @$(NQ)echo " CLEAN $(BIN)"
487 $(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 Mar 1, 2011
488 $(Q)$(RM) LK8000-$(TARGET)-ns.exe
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
489
490 cleani:
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored Jan 27, 2011
491 @$(NQ)echo " CLEANI"
492 $(Q)$(FIND) . $(IGNORE) \( -name '*.i' \) -type f -print | xargs -r $(RM)
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
493
3a08193 @mpusz Emacs environment oriented changes
mpusz authored Jan 19, 2011
494 tags:
06634a0 @mpusz Added support for targets to 'make clean' + some Makefile cleanup
mpusz authored Jan 27, 2011
495 @$(NQ)echo " TAGS"
496 $(Q)$(ETAGS) --declarations --output=TAGS `find . -name *\\\.[ch] -or -name *\\\.cpp`
497 $(Q)$(EBROWSE) -s `find . -name *\\\.[ch] -or -name *\\\.cpp`
3a08193 @mpusz Emacs environment oriented changes
mpusz authored Jan 19, 2011
498
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
499
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
500 #
501 # Useful debugging targets - make preprocessed versions of the source
502 #
503 %.i: %.cpp FORCE
504 $(CXX) $(cxx-flags) -E $(OUTPUT_OPTION) $<
505
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
506 %.i: %.c FORCE
507 $(CC) $(cc-flags) -E $(OUTPUT_OPTION) $<
508
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
509 %.s: %.cpp FORCE
510 $(CXX) $(cxx-flags) -S $(OUTPUT_OPTION) $<
511
512
513
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
514 ####### rules
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
515
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
516 LK8000-$(TARGET).exe: LK8000-$(TARGET)-ns.exe
517 @$(NQ)echo " STRIP $@"
518 $(Q)$(STRIP) $< -o $@
519 $(Q)$(SIZE) $@
7abcc0d @pventafridda still buildnumber annoying
pventafridda authored Jan 24, 2011
520 # ./buildnumber
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
521 $(RM) LK8000-$(TARGET)-ns.exe
522
523 LK8000-$(TARGET)-ns.exe: $(OBJS)
524 @$(NQ)echo " LINK $@"
525 $(Q)$(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LOADLIBES) $(LDLIBS) -o $@
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
526
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
527 $(BIN)/zzip.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(ZZIP)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(ZZIP))
528 @$(NQ)echo " AR $@"
529 $(Q)$(AR) $(ARFLAGS) $@ $^
530
531 $(BIN)/jasper.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(JASPER)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(JASPER))
532 @$(NQ)echo " AR $@"
533 $(Q)$(AR) $(ARFLAGS) $@ $^
534
535 $(BIN)/compat.a: $(patsubst $(SRC)%.cpp,$(BIN)%.o,$(COMPAT)) $(patsubst $(SRC)%.c,$(BIN)%.o,$(COMPAT))
536 @$(NQ)echo " AR $@"
537 $(Q)$(AR) $(ARFLAGS) $@ $^
538
539 $(BIN)/%.o: $(SRC)/%.c
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
540 @$(NQ)echo " CC $@"
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
541 $(Q)$(MKDIR) $(dir $@)
542 $(Q)$(CC) $(cc-flags) -c $(OUTPUT_OPTION) $<
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
543 @sed -i '1s,^[^ :]*,$@,' $(DEPFILE)
544
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
545 $(BIN)/%.o: $(SRC)/%.cpp
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
546 @$(NQ)echo " CXX $@"
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
547 $(Q)$(MKDIR) $(dir $@)
548 $(Q)$(CXX) $(cxx-flags) -c $(OUTPUT_OPTION) $<
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
549 @sed -i '1s,^[^ :]*,$@,' $(DEPFILE)
550
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
551 $(BIN)/%.rsc: $(SRC)/%.rc
552 @echo "$@: $< " `sed -nr 's|^.*"\.\./(Data[^"]+)".*$$|Common/\1|gp' $<` > $(DEPFILE)
553 @$(NQ)echo " WINDRES $@"
554 $(Q)$(WINDRES) $(WINDRESFLAGS) $< $@
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
555
556
557
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
558 ####### include depends files
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
559
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
560 ifneq ($(wildcard $(BIN)/.*.d),)
561 include $(wildcard $(BIN)/.*.d)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
562 endif
9852963 @mpusz Resource, Makefile and makeall files cleanup
mpusz authored Jan 19, 2011
563 ifneq ($(wildcard $(BIN)/*/.*.d),)
564 include $(wildcard $(BIN)/*/.*.d)
565 endif
566 ifneq ($(wildcard $(BIN)/.*.rsc),)
567 include $(wildcard $(BIN)/.*.d)
bc0b668 @pventafridda initial revision 123j
pventafridda authored Dec 15, 2010
568 endif
Something went wrong with that request. Please try again.