source: trunk/makefile.inc @ 557

Revision 557, 5.8 KB checked in by phyrephox, 5 years ago (diff)

+ added preliminary support for ixus75_sd750 for 100b 101a and 102a (101a also works for 101b, cp in makefile) - port done by TPC (see http://chdk.setepontos.com/index.php/topic,898.15.html)
this does NOT compile yet (thus it is disabled in batch-zip & batch-zip-complete to avoid autobuild fuckup)
needs a few things: see http://chdk.setepontos.com/index.php/topic,898.msg23979.html#msg23979 for details
note: when you fix the build, please uncomment the lines in the Makefile (also the ones that copy the zips)

  • Property svn:eol-style set to LF
Line 
1VER=CHDK
2
3PLATFORM=s3is
4PLATFORMSUB=100a
5
6#PLATFORM=a620
7#PLATFORMSUB=100f
8
9#PLATFORM=ixus40_sd300
10#PLATFORMSUB=100k
11
12#PLATFORM=ixus40_sd300
13#PLATFORMSUB=100j
14
15#PLATFORM=sx100is
16#PLATFORMSUB=100c
17
18#PLATFORM=sx100is
19#PLATFORMSUB=100b
20
21#PLATFORM=ixus50_sd400
22#PLATFORMSUB=101a
23
24#PLATFORM=ixus50_sd400
25#PLATFORMSUB=101b
26
27#PLATFORM=ixus750_sd550
28#PLATFORMSUB=100f
29
30#PLATFORM=ixus750_sd550
31#PLATFORMSUB=100g
32
33#PLATFORM=a640
34#PLATFORMSUB=100b
35
36#PLATFORM=a700
37#PLATFORMSUB=100b
38
39#PLATFORM=a710
40#PLATFORMSUB=100a
41
42#PLATFORM=s2is
43#PLATFORMSUB=100e
44
45#PLATFORM=s2is
46#PLATFORMSUB=100f
47
48#PLATFORM=s2is
49#PLATFORMSUB=100g
50
51#PLATFORM=g7
52#PLATFORMSUB=100e
53
54#PLATFORM=g7
55#PLATFORMSUB=100g
56
57#PLATFORM=g7
58#PLATFORMSUB=100i
59
60#PLATFORM=g7
61#PLATFORMSUB=100j
62
63#PLATFORM=a530
64#PLATFORMSUB=100a
65
66#PLATFORM=a540
67#PLATFORMSUB=100b
68
69#PLATFORM=a560
70#PLATFORMSUB=100a
71
72#PLATFORM=a570
73#PLATFORMSUB=100a
74
75#PLATFORM=a570
76#PLATFORMSUB=100e
77
78#PLATFORM=a610
79#PLATFORMSUB=100e
80
81#PLATFORM=a610
82#PLATFORMSUB=100f
83
84#PLATFORM=ixus700_sd500
85#PLATFORMSUB=101a
86
87#PLATFORM=ixus700_sd500
88#PLATFORMSUB=101b
89
90#PLATFORM=ixus800_sd700
91#PLATFORMSUB=100b
92
93#PLATFORM=ixus800_sd700
94#PLATFORMSUB=101b
95
96#PLATFORM=a720
97#PLATFORMSUB=100c
98
99#PLATFORM=ixus850_sd800
100#PLATFORMSUB=100e
101
102#PLATFORM=ixus860_sd870
103#PLATFORMSUB=100c
104
105#PLATFORM=ixus950_sd850
106#PLATFORMSUB=100c
107
108#PLATFORM=ixus55_sd450
109#PLATFORMSUB=100b
110
111#PLATFORM=ixus55_sd450
112#PLATFORMSUB=100c
113
114#PLATFORM=ixus55_sd450
115#PLATFORMSUB=100d
116
117#PLATFORM=ixus60_sd600
118#PLATFORMSUB=100a
119
120#PLATFORM=ixus60_sd600
121#PLATFORMSUB=100d
122
123#PLATFORM=ixus70_sd1000
124#PLATFORMSUB=100c
125
126#PLATFORM=ixus70_sd1000
127#PLATFORMSUB=101b
128
129#PLATFORM=ixus70_sd1000
130#PLATFORMSUB=102a
131
132#PLATFORM=a650
133#PLATFORMSUB=100d
134
135#PLATFORM=a450
136#PLATFORMSUB=100d
137
138#PLATFORM=a460
139#PLATFORMSUB=100d
140
141#PLATFORM=a550
142#PLATFORMSUB=100c
143
144#PLATFORM=a630
145#PLATFORMSUB=100c
146
147#PLATFORM=s5is
148#PLATFORMSUB=101a
149
150#PLATFORM=s5is
151#PLATFORMSUB=101b
152
153#PLATFORM=ixus65_sd630
154#PLATFORMSUB=100a
155
156#PLATFORM=tx1
157#PLATFORMSUB=100g
158
159#PLATFORM=tx1
160#PLATFORMSUB=101b
161
162#PLATFORM=ixus960_sd950
163#PLATFORM=100d
164
165#PLATFORM=ixus75_sd750
166#PLATFORMSUB=100b
167
168#PLATFORM=ixus75_sd750
169#PLATFORMSUB=101a
170
171#PLATFORM=ixus75_sd750
172#PLATFORMSUB=102a
173
174
175
176MEMISOSIZE="(&_end-&_start)"
177include $(topdir)buildconf.inc
178include $(topdir)version.inc
179include $(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB)/makefile.inc
180
181SILENT=SILENT
182
183NOZERO100K=TRUE
184
185##########################################################################
186##########################################################################
187##########################################################################
188
189ESED = sed -r
190
191ifndef OSTYPE
192  HOSTPLATFORM:=$(patsubst MINGW%,MINGW,$(shell uname -s))
193  ifeq ($(HOSTPLATFORM),MINGW)
194    OSTYPE = Windows
195    EXE = .exe
196    SH = sh
197    DEVNULL = NUL
198    SORT = $(dir $(shell which uniq.exe | sed s/\\\\/\\\//g))/sort.exe
199  else
200    ifeq ($(HOSTPLATFORM),Linux)
201      OSTYPE = Linux
202      EXE =
203      SH =
204      DEVNULL = /dev/null
205      SORT = sort
206    else
207      ifeq ($(HOSTPLATFORM),Darwin)
208        OSTYPE = Darwin
209        EXE =
210        SH =
211        DEVNULL = /dev/null
212        SORT = sort
213        ESED = sed -E
214      else
215        OSTYPE = Other
216        EXE =
217        SH =
218        DEVNULL = /dev/null
219        SORT = sort
220      endif
221    endif
222  endif
223else
224  EXE =
225  SH =
226  DEVNULL = /dev/null
227  SORT = sort
228endif
229
230##########################################################################
231##########################################################################
232##########################################################################
233
234HOSTCC=gcc
235HOSTCFLAGS=-g -O2 -Wall
236
237PAKWIF=$(topdir)tools/pakwif$(EXE)
238
239##########################################################################
240
241CC=arm-elf-gcc
242OBJCOPY=arm-elf-objcopy
243OBJDUMP=arm-elf-objdump
244STRIP=arm-elf-strip
245NM=arm-elf-nm
246AR=arm-elf-ar
247RANLIB=arm-elf-ranlib
248SIZE=arm-elf-size
249
250# -msoft-float is used per default but object files are marked as hard-float
251CFLAGS=-fno-inline -Os -fno-strict-aliasing
252# flags for gcc v4
253# CFLAGS+=-mtune=arm946e-s
254CTHUMB=-mthumb
255CFLAGS+=-mthumb-interwork
256CFLAGS+=-I$(topdir)include $(PLFLAGS) $(CPPFLAGS)
257CFLAGS+=-DPLATFORM=\"$(PLATFORM)\" -DPLATFORMSUB=\"$(PLATFORMSUB)\" -DHDK_VERSION=\"$(VER)\" -DBUILD_NUMBER=\"$(BUILD_NUMBER)\" -DCAMERA_$(PLATFORM)=1
258CFLAGS+=-Wall -Wno-unused -Wno-format
259LDFLAGS=-L$(topdir)lib/math -L$(topdir)lib/font
260LDFLAGS+=-L$(topdir)lib/libc -L$(topdir)lib/ubasic
261LDFLAGS+=-L$(topdir)platform/$(PLATFORM) -L$(topdir)platform/$(PLATFORM)/sub/$(PLATFORMSUB)
262
263##########################################################################
264
265default: all
266
267ifndef SKIPBUILDRULES
268
269%.o: %.c
270        @echo $< \-\> $@
271        $(CC) $(CFLAGS) -nostdinc -c -o $@ $<
272%.o: %.S
273        @echo $< \-\> $@
274        $(CC) $(CFLAGS) -nostdinc -c -o $@ $<
275%.a:
276        @echo $^ \-\> $@
277        $(AR) rcs $@ $^
278
279.dep/%.d: %.c .dep
280        $(CC) $(CFLAGS) -M $< > $@.$$$$; \
281            sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
282            rm -f $@.$$$$
283
284.dep/%.d: %.S .dep
285        $(CC) $(CFLAGS) -M $< > $@.$$$$; \
286            sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
287            rm -f $@.$$$$
288
289endif
290
291all: all-recursive
292clean: clean-recursive
293distclean: distclean-recursive
294
295.dep:
296        mkdir .dep
297
298clean-recursive:
299        @for i in $(SUBDIRS); do \
300            echo \>\> Cleaning in $(FOLDER)$$i; \
301            $(MAKE) -C $$i FOLDER="$(FOLDER)$$i/" clean || exit 1; \
302        done
303
304distclean-recursive:
305        @for i in $(SUBDIRS); do \
306            echo \>\> Distcleaning in $(FOLDER)$$i; \
307            $(MAKE) -C $$i FOLDER="$(FOLDER)$$i/" distclean || exit 1; \
308        done
309
310all-recursive:
311        @for i in $(SUBDIRS); do \
312            echo \>\> Entering to $(FOLDER)$$i; \
313            $(MAKE) -C $$i FOLDER="$(FOLDER)$$i/" || exit 1; \
314            echo \<\< Leaving $(FOLDER)$$i; \
315        done
316
317depend-recursive:
318        @for i in $(SUBDIRS); do \
319            echo \>\> Entering to $(FOLDER)$$i; \
320            $(MAKE) -C $$i FOLDER="$(FOLDER)$$i/" depend || exit 1; \
321            echo \<\< Leaving $(FOLDER)$$i; \
322        done
323
324ifdef SILENT
325.SILENT:
326endif
Note: See TracBrowser for help on using the repository browser.