source: trunk/Makefile@ 1719

Last change on this file since 1719 was 1719, checked in by merek, 11 years ago

Merge from UMP r1791/1792

File size: 22.2 KB
Line 
1SHELL = /bin/sh
2
3VER = $(subst ",,$(filter-out \#define CS_VERSION,$(shell grep CS_VERSION globals.h)))$(shell test -f `which svnversion` && svnversion -n . | awk 'BEGIN {FS = ":"} {print $$1}' | sed 's/[MS]$$//' | sed 's/exported/0/' || echo -n 0 )
4SVN_REV=""$(shell test -f `which svnversion` && svnversion -n . | awk 'BEGIN {FS = ":"} {print $$1}' | sed 's/[MS]$$//' | sed 's/exported/0/' || echo -n 0 )""
5
6CS_CONFDIR = '\"/usr/local/etc\"'
7
8export VER
9
10linux: i386-pc-linux
11linux-pcsc: i386-pc-linux-pcsc
12freebsd: i386-pc-freebsd
13tuxbox: cross-powerpc-tuxbox-linux
14tripledragon: cross-powerpc-405-linux
15win: cross-i386-pc-cygwin
16cygwin: i386-pc-cygwin
17macosx: macosx-native
18
19std: linux \
20 macosx \
21 cross-i386-pc-cygwin \
22 cross-powerpc-tuxbox-linux \
23 cross-powerpc-405-linux \
24 cross-i386-pc-freebsd \
25 cross-arm-nslu2-linux \
26 cross-mipsel-router-linux-uclibc927 \
27 cross-mipsel-router-linux-uclibc928 \
28 cross-mipsel-router-linux-uclibc929 \
29 cross-mipsel-router-linux-uclibc929-static \
30 cross-mipsel-tuxbox-linux-glibc \
31 cross-mipsel-fonera2 \
32 cross-sh4-linux
33
34all: \
35 cross-sparc-sun-solaris2.7 \
36 cross-rs6000-ibm-aix4.2 \
37 cross-mips-sgi-irix6.5
38
39
40dist: std
41 @cd Distribution && tar cvf "../oscam$(VER).tar" *
42 @bzip2 -9f "oscam$(VER).tar"
43
44extra: all
45 @cd Distribution && tar cvf "../oscam$(VER)-extra.tar" *
46 @bzip2 -9f "oscam$(VER)-extra.tar"
47
48clean:
49 @-rm -rf oscam-ostype.h lib Distribution/oscam-*
50
51tar: clean
52 @tar cvf "oscam$(VER)-src.tar" Distribution Make* *.c *.h cscrypt csctapi
53 @bzip2 -9f "oscam$(VER)-src.tar"
54
55nptar: clean
56 @tar cvf "oscam$(VER)-nonpublic-src.tar" Distribution Make* *.c *.np *.h cscrypt csctapi csgbox
57 @bzip2 -9f "oscam$(VER)-nonpublic-src.tar"
58
59######################################################################
60#
61# LINUX native
62#
63######################################################################
64i386-pc-linux:
65 @-$(MAKE) --no-print-directory \
66 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
67 OS_LIBS="-lcrypto -lm" \
68 OS_CULI="-lncurses" \
69 OS_PTLI="-lpthread" \
70 DS_OPTS="-O2 -DOS_LINUX -DWEBIF -DCS_CONFDIR=${CS_CONFDIR} -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
71 DS_CFLAGS="-c" \
72 DS_LDFLAGS="" \
73 DS_ARFLAGS="-rvsl" \
74 DS_CC=gcc \
75 DS_AR=ar \
76 DS_LD=ld \
77 DS_RL=ranlib \
78 DS_ST=strip
79######################################################################
80#
81# LINUX native with libusb (smartreader)
82#
83######################################################################
84i386-pc-linux-libusb:
85 @-$(MAKE) --no-print-directory \
86 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
87 LIBUSB="/usr/local/lib/libusb-1.0.a" \
88 OS_LIBS="-lcrypto -lm -lrt" \
89 OS_CULI="-lncurses" \
90 OS_PTLI="-lpthread" \
91 DS_OPTS="-O2 -DOS_LINUX -DUSE_PTHREAD -DLIBUSB -DCS_CONFDIR=${CS_CONFDIR} -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""' -I/usr/local/include" \
92 DS_CFLAGS="-c" \
93 DS_LDFLAGS="" \
94 DS_ARFLAGS="-rvsl" \
95 DS_CC=gcc \
96 DS_AR=ar \
97 DS_LD=ld \
98 DS_RL=ranlib \
99 DS_ST=strip
100
101######################################################################
102#
103# LINUX native with PCSC
104#
105######################################################################
106i386-pc-linux-pcsc:
107 @-$(MAKE) --no-print-directory \
108 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
109 OS_LIBS="-lcrypto -lm" \
110 OS_CULI="-lncurses" \
111 OS_PTLI="-lpthread -lpcsclite" \
112 DS_OPTS="-O2 -DOS_LINUX -DCS_CONFDIR=${CS_CONFDIR} -DHAVE_PCSC=1 -I/usr/include/PCSC -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
113 DS_CFLAGS="-c" \
114 DS_LDFLAGS="" \
115 DS_ARFLAGS="-rvsl" \
116 DS_CC=gcc \
117 DS_AR=ar \
118 DS_LD=ld \
119 DS_RL=ranlib \
120 DS_ST=strip
121
122######################################################################
123#
124# LINUX native with PCSC & libusb (smartreader)
125#
126######################################################################
127i386-pc-linux-pcsc-libusb:
128 @-$(MAKE) --no-print-directory \
129 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
130 LIBUSB="/usr/local/lib/libusb-1.0.a" \
131 OS_LIBS="-lcrypto -lm -lrt" \
132 OS_CULI="-lncurses" \
133 OS_PTLI="-lpthread -lpcsclite" \
134 DS_OPTS="-O2 -DOS_LINUX -DUSE_PTHREAD -DLIBUSB -DCS_CONFDIR=${CS_CONFDIR} -DHAVE_PCSC=1 -I/usr/include/PCSC -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""' -I/usr/local/include" \
135 DS_CFLAGS="-c" \
136 DS_LDFLAGS="" \
137 DS_ARFLAGS="-rvsl" \
138 DS_CC=gcc \
139 DS_AR=ar \
140 DS_LD=ld \
141 DS_RL=ranlib \
142 DS_ST=strip
143
144######################################################################
145#
146# MacOSX native
147#
148######################################################################
149macosx-native:
150 @-$(MAKE) --no-print-directory \
151 -f Maketype TYP=$(subst cross-,,$@) \
152 OS_LIBS="-lcrypto -lm" \
153 OS_CULI="-lncurses" \
154 OS_PTLI="-lpthread" \
155 DS_OPTS="-O2 -DOS_MACOSX -DNEED_DAEMON -DCS_NOSHM -DHAVE_PTHREAD_H -DUSE_PTHREAD -DCS_CONFDIR=${CS_CONFDIR} -DHAVE_PCSC=1 -m32 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
156 DS_CFLAGS="-c" \
157 DS_LDFLAGS="-framework PCSC" \
158 DS_ARFLAGS="-rvsl" \
159 DS_CC=gcc \
160 DS_AR=ar \
161 DS_LD=ld \
162 DS_RL=ranlib \
163 DS_ST=strip
164
165######################################################################
166#
167# MacOSX native with libusb (smartreader)
168#
169######################################################################
170macosx-libusb:
171 @-$(MAKE) --no-print-directory \
172 -f Maketype TYP=$(subst cross-,,$@) \
173 LIBUSB="/usr/local/lib/libusb-1.0.a" \
174 OS_LIBS="-lcrypto -lm " \
175 OS_CULI="-lncurses" \
176 OS_PTLI="-lpthread" \
177 DS_OPTS="-O2 -DOS_MACOSX -DNEED_DAEMON -DCS_NOSHM -DHAVE_PTHREAD_H -DUSE_PTHREAD -DCS_CONFDIR=${CS_CONFDIR} -DHAVE_PCSC=1 -DLIBUSB -m32 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""' -I/usr/local/include" \
178 DS_CFLAGS="-c" \
179 DS_LDFLAGS="-framework PCSC -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined" \
180 DS_ARFLAGS="-rvsl" \
181 DS_CC=gcc \
182 DS_AR=ar \
183 DS_LD=ld \
184 DS_RL=ranlib \
185 DS_ST=strip
186
187
188######################################################################
189#
190# FreeBSD native
191#
192######################################################################
193i386-pc-freebsd:
194 @-$(MAKE) --no-print-directory \
195 -f Maketype TYP=$(subst cross-,,$@) \
196 OS_LIBS="-lm" \
197 OS_CULI="-lncurses" \
198 OS_PTLI="-lpthread" \
199 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
200 DS_CFLAGS="-c" \
201 DS_LDFLAGS="" \
202 DS_ARFLAGS="-rvsl" \
203 DS_CC=gcc \
204 DS_AR=ar \
205 DS_LD=ld \
206 DS_RL=ranlib \
207 DS_ST=strip
208
209######################################################################
210#
211# FreeBSD 5.4 crosscompiler
212#
213######################################################################
214cross-i386-pc-freebsd:
215 @-$(MAKE) --no-print-directory \
216 -f Maketype TYP=$(subst cross-,,$@) \
217 OS_LIBS="-lm" \
218 OS_CULI="-lncurses" \
219 OS_PTLI="-lpthread" \
220 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
221 DS_CFLAGS="-c" \
222 DS_LDFLAGS="" \
223 DS_ARFLAGS="-rvsl" \
224 DS_CC=i386-pc-freebsd5.4-gcc \
225 DS_AR=i386-pc-freebsd5.4-ar \
226 DS_LD=i386-pc-freebsd5.4-ld \
227 DS_RL=i386-pc-freebsd5.4-ranlib \
228 DS_ST=i386-pc-freebsd5.4-strip
229
230######################################################################
231#
232# Tuxbox crosscompiler
233#
234######################################################################
235cross-powerpc-tuxbox-linux:
236 @-$(MAKE) --no-print-directory \
237 -f Maketype TYP=$(subst cross-,,$@) \
238 OS_LIBS="-lcrypto -ldl -lm" \
239 OS_CULI="-lncurses" \
240 OS_PTLI="-lpthread" \
241 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
242 DS_CFLAGS="-c" \
243 DS_LDFLAGS="" \
244 DS_ARFLAGS="-rvsl" \
245 DS_CC=powerpc-tuxbox-linux-gnu-gcc \
246 DS_AR=powerpc-tuxbox-linux-gnu-ar \
247 DS_LD=powerpc-tuxbox-linux-gnu-ld \
248 DS_RL=powerpc-tuxbox-linux-gnu-ranlib \
249 DS_ST=powerpc-tuxbox-linux-gnu-strip
250
251cross-powerpc-tuxbox-linux-uclibc:
252 @-$(MAKE) --no-print-directory \
253 -f Maketype TYP=$(subst cross-,,$@) \
254 OS_LIBS="-lm" \
255 OS_CULI="-lncurses" \
256 OS_PTLI="-lpthread" \
257 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
258 DS_CFLAGS="-c" \
259 DS_LDFLAGS="" \
260 DS_ARFLAGS="-rvsl" \
261 DS_CC=powerpc-tuxbox-linux-uclibc-gcc \
262 DS_AR=powerpc-tuxbox-linux-uclibc-ar \
263 DS_LD=powerpc-tuxbox-linux-uclibc-ld \
264 DS_RL=powerpc-tuxbox-linux-uclibc-ranlib \
265 DS_ST=powerpc-tuxbox-linux-uclibc-strip
266
267######################################################################
268#
269# TripleDragon crosscompiler
270#
271######################################################################
272cross-powerpc-405-linux:
273 @-$(MAKE) --no-print-directory \
274 -f Maketype TYP=$(subst cross-,,$@) \
275 OS_LIBS="-lcrypto -ldl -lm" \
276 OS_CULI="-lncurses" \
277 OS_PTLI="-lpthread" \
278 DS_OPTS="-O2 -DOS_LINUX -DTRIPLEDRAGON -DCS_LOGHISTORY -DCS_ANTICASC -DHAVE_DVBAPI_TD -DSTB04SCI -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
279 DS_CFLAGS="-c" \
280 DS_LDFLAGS="" \
281 DS_ARFLAGS="-rvsl" \
282 DS_CC=powerpc-405-linux-gnu-gcc \
283 DS_AR=powerpc-405-linux-gnu-ar \
284 DS_LD=powerpc-405-linux-gnu-ld \
285 DS_RL=powerpc-405-linux-gnu-ranlib \
286 DS_ST=powerpc-405-linux-gnu-strip
287
288######################################################################
289#
290# sh4 crosscompiler
291#
292######################################################################
293cross-sh4-linux:
294 @-$(MAKE) --no-print-directory \
295 -f Maketype TYP=$(subst cross-,,$@) \
296 OS_LIBS="-lcrypto -lm" \
297 OS_CULI="-lncurses" \
298 OS_PTLI="-lpthread" \
299 DS_OPTS="-O2 -DOS_LINUX -DSH4 -DTUXBOX -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
300 DS_CFLAGS="-c" \
301 DS_LDFLAGS="" \
302 DS_ARFLAGS="-rvsl" \
303 DS_CC=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-gcc \
304 DS_AR=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ar \
305 DS_LD=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ld \
306 DS_RL=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ranlib \
307 DS_ST=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-strip
308
309######################################################################
310#
311# Cygwin crosscompiler
312#
313######################################################################
314cross-i386-pc-cygwin:
315 @-$(MAKE) --no-print-directory \
316 -f Maketype TYP=$(subst cross-,,$@) \
317 OS_LIBS="-lcrypto -lm" \
318 OS_CULI="-lncurses" \
319 OS_PTLI="-lpthread" \
320 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -static -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
321 DS_CFLAGS="-c" \
322 DS_LDFLAGS="" \
323 DS_ARFLAGS="-rvsl" \
324 DS_CC=i686-pc-cygwin-gcc \
325 DS_AR=i686-pc-cygwin-ar \
326 DS_LD=i686-pc-cygwin-ld \
327 DS_RL=i686-pc-cygwin-ranlib \
328 DS_ST=i686-pc-cygwin-strip
329
330######################################################################
331#
332# Cygwin native
333#
334######################################################################
335i386-pc-cygwin:
336 @-$(MAKE) --no-print-directory \
337 -f Maketype TYP=$(subst cross-,,$@) \
338 OS_LIBS="-lcrypto -lm" \
339 OS_CULI="-lncurses" \
340 OS_PTLI="-lpthread" \
341 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -I /tmp/include -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
342 DS_CFLAGS="-c" \
343 DS_LDFLAGS="" \
344 DS_ARFLAGS="-rvsl" \
345 DS_CC=gcc \
346 DS_AR=ar \
347 DS_LD=ld \
348 DS_RL=ranlib \
349 DS_ST=strip
350
351######################################################################
352#
353# Solaris 7 crosscompiler
354#
355######################################################################
356cross-sparc-sun-solaris2.7:
357 @-$(MAKE) --no-print-directory \
358 -f Maketype TYP=$(subst cross-,,$@) \
359 OS_LIBS="-lm" \
360 OS_CULI="-lncurses" \
361 OS_PTLI="-lpthread" \
362 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
363 DS_CFLAGS="-c" \
364 DS_LDFLAGS="-lsocket" \
365 DS_ARFLAGS="-rvsl" \
366 DS_CC=sparc-sun-solaris2.7-gcc \
367 DS_AR=sparc-sun-solaris2.7-ar \
368 DS_LD=sparc-sun-solaris2.7-ld \
369 DS_RL=sparc-sun-solaris2.7-ranlib \
370 DS_ST=sparc-sun-solaris2.7-strip
371
372######################################################################
373#
374# OpenSolaris native compiler
375#
376######################################################################
377opensolaris:
378 @-$(MAKE) --no-print-directory \
379 -f Maketype TYP=$(subst cross-,,$@) \
380 OS_LIBS="-lcrypto -lnsl -lm" \
381 OS_CULI="-lncurses" \
382 OS_PTLI="-lpthread" \
383 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
384 DS_CFLAGS="-c" \
385 DS_LDFLAGS="-lsocket" \
386 DS_ARFLAGS="-rvsl" \
387 DS_CC=gcc \
388 DS_AR=ar \
389 DS_LD=ld \
390 DS_RL=ranlib \
391 DS_ST=strip
392
393######################################################################
394#
395# AIX 4.2 crosscompiler
396#
397######################################################################
398cross-rs6000-ibm-aix4.2:
399 @-$(MAKE) --no-print-directory \
400 -f Maketype TYP=$(subst cross-,,$@) \
401 OS_LIBS="-lm" \
402 OS_CULI="-lncurses" \
403 OS_PTLI="-lpthreads" \
404 DS_OPTS="-O2 -DOS_AIX -DOS_AIX42 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
405 DS_CFLAGS="-c" \
406 DS_LDFLAGS="" \
407 DS_ARFLAGS="-rvsl" \
408 DS_CC=rs6000-ibm-aix4.2-gcc \
409 DS_AR=rs6000-ibm-aix4.2-ar \
410 DS_LD=rs6000-ibm-aix4.2-ld \
411 DS_RL=rs6000-ibm-aix4.2-ranlib \
412 DS_ST=rs6000-ibm-aix4.2-strip
413
414######################################################################
415#
416# IRIX 6.5 crosscompiler
417#
418######################################################################
419cross-mips-sgi-irix6.5:
420 @-$(MAKE) --no-print-directory \
421 -f Maketype TYP=$(subst cross-,,$@) \
422 OS_LIBS="-lm" \
423 OS_CULI="-lncurses" \
424 OS_PTLI="-lpthread" \
425 DS_OPTS="-O2 -DOS_IRIX -DOS_IRIX65 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
426 DS_CFLAGS="-c" \
427 DS_LDFLAGS="" \
428 DS_ARFLAGS="-rvsl" \
429 DS_CC=mips-sgi-irix6.5-gcc \
430 DS_AR=mips-sgi-irix6.5-ar \
431 DS_LD=mips-sgi-irix6.5-ld \
432 DS_RL=mips-sgi-irix6.5-ranlib \
433 DS_ST=mips-sgi-irix6.5-strip
434
435######################################################################
436#
437# Linux MIPS(LE) crosscompiler with ucLibc 0.9.27
438#
439######################################################################
440cross-mipsel-router-linux-uclibc927:
441 @-mipsel-linux-uclibc-setlib 0.9.27
442 @-$(MAKE) --no-print-directory \
443 -f Maketype TYP=$(subst cross-,,$@) \
444 OS_LIBS="-lm" \
445 OS_CULI="-lncurses" \
446 OS_PTLI="-lpthread" \
447 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
448 DS_CFLAGS="-c" \
449 DS_LDFLAGS="" \
450 DS_ARFLAGS="-rvsl" \
451 DS_CC=mipsel-linux-uclibc-gcc \
452 DS_AR=mipsel-linux-uclibc-ar \
453 DS_LD=mipsel-linux-uclibc-ld \
454 DS_RL=mipsel-linux-uclibc-ranlib \
455 DS_ST=mipsel-linux-uclibc-strip
456
457######################################################################
458#
459# Linux MIPS(LE) crosscompiler with ucLibc 0.9.28
460#
461######################################################################
462cross-mipsel-router-linux-uclibc928:
463 @-mipsel-linux-uclibc-setlib 0.9.28
464 @-$(MAKE) --no-print-directory \
465 -f Maketype TYP=$(subst cross-,,$@) \
466 OS_LIBS="-lcrypto -lm" \
467 OS_CULI="-lncurses" \
468 OS_PTLI="-lpthread" \
469 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
470 DS_CFLAGS="-c" \
471 DS_LDFLAGS="" \
472 DS_ARFLAGS="-rvsl" \
473 DS_CC=mipsel-linux-uclibc-gcc \
474 DS_AR=mipsel-linux-uclibc-ar \
475 DS_LD=mipsel-linux-uclibc-ld \
476 DS_RL=mipsel-linux-uclibc-ranlib \
477 DS_ST=mipsel-linux-uclibc-strip
478
479######################################################################
480#
481# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29
482#
483######################################################################
484cross-mipsel-router-linux-uclibc929:
485 @-mipsel-linux-uclibc-setlib 0.9.29
486 @-$(MAKE) --no-print-directory \
487 -f Maketype TYP=$(subst cross-,,$@) \
488 OS_LIBS="-lcrypto -lm" \
489 OS_CULI="-lncurses" \
490 OS_PTLI="-lpthread" \
491 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
492 DS_CFLAGS="-c" \
493 DS_LDFLAGS="" \
494 DS_ARFLAGS="-rvsl" \
495 DS_CC=mipsel-linux-uclibc-gcc \
496 DS_AR=mipsel-linux-uclibc-ar \
497 DS_LD=mipsel-linux-uclibc-ld \
498 DS_RL=mipsel-linux-uclibc-ranlib \
499 DS_ST=mipsel-linux-uclibc-strip
500
501######################################################################
502#
503# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29 (static)
504#
505######################################################################
506cross-mipsel-router-linux-uclibc929-static:
507 @-mipsel-linux-uclibc-setlib 0.9.29
508 @-$(MAKE) --no-print-directory \
509 -f Maketype TYP=$(subst cross-,,$@) \
510 OS_LIBS="-lcrypto -lm" \
511 OS_CULI="-lncurses" \
512 OS_PTLI="-lpthread" \
513 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
514 DS_CFLAGS="-c" \
515 DS_LDFLAGS="-static" \
516 DS_ARFLAGS="-rvsl" \
517 DS_CC=mipsel-linux-uclibc-gcc \
518 DS_AR=mipsel-linux-uclibc-ar \
519 DS_LD=mipsel-linux-uclibc-ld \
520 DS_RL=mipsel-linux-uclibc-ranlib \
521 DS_ST=mipsel-linux-uclibc-strip
522
523######################################################################
524#
525# Linux MIPS(LE) crosscompiler for La Fonera 2.0
526#
527######################################################################
528cross-mipsel-fonera2:
529 @-$(MAKE) --no-print-directory \
530 -f Maketype TYP=$(subst cross-,,$@) \
531 OS_LIBS="-Lopenssl-lib -lcrypto -lm" \
532 OS_CULI="-lncurses" \
533 OS_PTLI="-lpthread" \
534 DS_OPTS="-Iopenssl-include -O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
535 DS_CFLAGS="-c" \
536 DS_LDFLAGS="" \
537 DS_ARFLAGS="-rvsl" \
538 DS_CC=mips-linux-gcc \
539 DS_AR=mips-linux-ar \
540 DS_LD=mips-linux-ld \
541 DS_RL=mips-linux-ranlib \
542 DS_ST=mips-linux-strip
543
544######################################################################
545#
546# Linux MIPS(LE) crosscompiler with glibc (DM7025)
547#
548######################################################################
549cross-mipsel-tuxbox-linux-glibc:
550 @-$(MAKE) --no-print-directory \
551 -f Maketype TYP=$(subst cross-,,$@) \
552 OS_LIBS="-lcrypto -lm" \
553 OS_CULI="-lncurses" \
554 OS_PTLI="-lpthread" \
555 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
556 DS_CFLAGS="-c" \
557 DS_LDFLAGS="" \
558 DS_ARFLAGS="-rvsl" \
559 DS_CC=mipsel-linux-glibc-gcc \
560 DS_AR=mipsel-linux-glibc-ar \
561 DS_LD=mipsel-linux-glibc-ld \
562 DS_RL=mipsel-linux-glibc-ranlib \
563 DS_ST=mipsel-linux-glibc-strip
564
565cross-mipsel-tuxbox-linux:
566 @-$(MAKE) --no-print-directory \
567 -f Maketype TYP=$(subst cross-,,$@) \
568 OS_LIBS="-lcrypto -lm" \
569 OS_CULI="-lncurses" \
570 OS_PTLI="-lpthread" \
571 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
572 DS_CFLAGS="-c" \
573 DS_LDFLAGS="" \
574 DS_ARFLAGS="-rvsl" \
575 DS_CC=mipsel-linux-gcc \
576 DS_AR=mipsel-linux-ar \
577 DS_LD=mipsel-linux-ld \
578 DS_RL=mipsel-linux-ranlib \
579 DS_ST=mipsel-linux-strip
580
581######################################################################
582#
583# HP/UX 10.20 native
584#
585######################################################################
586hppa1.1-hp-hpux10.20:
587 @-$(MAKE) --no-print-directory \
588 -f Maketype TYP=$(subst cross-,,$@) \
589 OS_LIBS="-lm" \
590 OS_CULI="-lncurses" \
591 OS_PTLI="-lpthread" \
592 DS_OPTS="-O2 -DOS_HPUX -DOS_HPUX10 -D_XOPEN_SOURCE_EXTENDED -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
593 DS_CFLAGS="-c" \
594 DS_LDFLAGS="" \
595 DS_ARFLAGS="-rvsl" \
596 DS_CC=gcc \
597 DS_AR=ar \
598 DS_LD=ld \
599 DS_RL=ranlib \
600 DS_ST=strip
601
602######################################################################
603#
604# OSF5.1 native
605#
606######################################################################
607alpha-dec-osf5.1:
608 @-$(MAKE) --no-print-directory \
609 -f Maketype TYP=$(subst cross-,,$@) \
610 OS_LIBS="-lm" \
611 OS_CULI="-lncurses" \
612 OS_PTLI="-lpthread" \
613 DS_OPTS="-O2 -DOS_OSF -DOS_OSF5 -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
614 XDS_CFLAGS="-I/usr/include -c" \
615 DS_CFLAGS="-c" \
616 DS_LDFLAGS="" \
617 DS_ARFLAGS="-rvsl" \
618 DS_CC=cc \
619 DS_AR=ar \
620 DS_LD=ld \
621 DS_RL=ranlib \
622 DS_ST=strip
623
624######################################################################
625#
626# ARM crosscompiler (big-endian)
627#
628######################################################################
629cross-arm-nslu2-linux:
630 @-$(MAKE) --no-print-directory \
631 -f Maketype TYP="$(subst cross-,,$@)" \
632 OS_LIBS="-lm" \
633 OS_CULI="-lncurses" \
634 OS_PTLI="-lpthread" \
635 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
636 DS_CFLAGS="-c" \
637 DS_LDFLAGS="" \
638 DS_ARFLAGS="-rvsl" \
639 DS_AWK="awk" \
640 DS_CC="armv5b-softfloat-linux-gcc" \
641 DS_AR="armv5b-softfloat-linux-ar" \
642 DS_LD="armv5b-softfloat-linux-ld" \
643 DS_RL="armv5b-softfloat-linux-ranlib" \
644 DS_ST="armv5b-softfloat-linux-strip"
645
646######################################################################
647#
648# ARM crosscompiler (big-endian)
649#
650######################################################################
651cross-armBE-unkown-linux:
652 -$(MAKE) --no-print-directory \
653 -f Maketype TYP="$(subst cross-,,$@)" \
654 OS_LIBS="-lm" \
655 OS_CULI="-lncurses" \
656 OS_PTLI="-lpthread" \
657 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
658 DS_CFLAGS="-c" \
659 DS_LDFLAGS="" \
660 DS_ARFLAGS="-rvsl" \
661 DS_AWK="awk" \
662 DS_CC="arm-linux-gcc -mbig-endian" \
663 DS_AR="arm-linux-ar" \
664 DS_LD="arm-linux-ld -EB" \
665 DS_RL="arm-linux-ranlib" \
666 DS_ST="arm-linux-strip"
667
668######################################################################
669#
670# ARM crosscompiler (little-endian)
671#
672######################################################################
673cross-armLE-unkown-linux:
674 -$(MAKE) --no-print-directory \
675 -f Maketype TYP="$(subst cross-,,$@)" \
676 OS_LIBS="-lm" \
677 OS_CULI="-lncurses" \
678 OS_PTLI="-lpthread" \
679 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
680 DS_CFLAGS="-c" \
681 DS_LDFLAGS="" \
682 DS_ARFLAGS="-rvsl" \
683 DS_AWK="awk" \
684 DS_CC="arm-linux-gcc -mlittle-endian" \
685 DS_AR="arm-linux-ar" \
686 DS_LD="arm-linux-ld -EL" \
687 DS_RL="arm-linux-ranlib" \
688 DS_ST="arm-linux-strip"
Note: See TracBrowser for help on using the repository browser.