source: trunk/Makefile@ 1289

Last change on this file since 1289 was 1289, checked in by rorothetroll, 11 years ago

Some fixes.

File size: 19.7 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 -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#
82# LINUX native with PCSC
83#
84######################################################################
85i386-pc-linux-pcsc:
86 @-$(MAKE) --no-print-directory \
87 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
88 OS_LIBS="-lcrypto -lm" \
89 OS_CULI="-lncurses" \
90 OS_PTLI="-lpthread -lpcsclite" \
91 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)\""'" \
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# MacOSX native
104#
105######################################################################
106macosx-native:
107 @-$(MAKE) --no-print-directory \
108 -f Maketype TYP=$(subst cross-,,$@) \
109 OS_LIBS="-lcrypto -lm" \
110 OS_CULI="-lncurses" \
111 OS_PTLI="-lpthread" \
112 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)\""'" \
113 DS_CFLAGS="-c" \
114 DS_LDFLAGS="-framework PCSC" \
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#
125# FreeBSD native
126#
127######################################################################
128i386-pc-freebsd:
129 @-$(MAKE) --no-print-directory \
130 -f Maketype TYP=$(subst cross-,,$@) \
131 OS_LIBS="-lm" \
132 OS_CULI="-lncurses" \
133 OS_PTLI="-lpthread" \
134 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
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# FreeBSD 5.4 crosscompiler
147#
148######################################################################
149cross-i386-pc-freebsd:
150 @-$(MAKE) --no-print-directory \
151 -f Maketype TYP=$(subst cross-,,$@) \
152 OS_LIBS="-lm" \
153 OS_CULI="-lncurses" \
154 OS_PTLI="-lpthread" \
155 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
156 DS_CFLAGS="-c" \
157 DS_LDFLAGS="" \
158 DS_ARFLAGS="-rvsl" \
159 DS_CC=i386-pc-freebsd5.4-gcc \
160 DS_AR=i386-pc-freebsd5.4-ar \
161 DS_LD=i386-pc-freebsd5.4-ld \
162 DS_RL=i386-pc-freebsd5.4-ranlib \
163 DS_ST=i386-pc-freebsd5.4-strip
164
165######################################################################
166#
167# Tuxbox crosscompiler
168#
169######################################################################
170cross-powerpc-tuxbox-linux:
171 @-$(MAKE) --no-print-directory \
172 -f Maketype TYP=$(subst cross-,,$@) \
173 OS_LIBS="-lcrypto -ldl -lm" \
174 OS_CULI="-lncurses" \
175 OS_PTLI="-lpthread" \
176 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
177 DS_CFLAGS="-c" \
178 DS_LDFLAGS="" \
179 DS_ARFLAGS="-rvsl" \
180 DS_CC=powerpc-tuxbox-linux-gnu-gcc \
181 DS_AR=powerpc-tuxbox-linux-gnu-ar \
182 DS_LD=powerpc-tuxbox-linux-gnu-ld \
183 DS_RL=powerpc-tuxbox-linux-gnu-ranlib \
184 DS_ST=powerpc-tuxbox-linux-gnu-strip
185
186cross-powerpc-tuxbox-linux-uclibc:
187 @-$(MAKE) --no-print-directory \
188 -f Maketype TYP=$(subst cross-,,$@) \
189 OS_LIBS="-lm" \
190 OS_CULI="-lncurses" \
191 OS_PTLI="-lpthread" \
192 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
193 DS_CFLAGS="-c" \
194 DS_LDFLAGS="" \
195 DS_ARFLAGS="-rvsl" \
196 DS_CC=powerpc-tuxbox-linux-uclibc-gcc \
197 DS_AR=powerpc-tuxbox-linux-uclibc-ar \
198 DS_LD=powerpc-tuxbox-linux-uclibc-ld \
199 DS_RL=powerpc-tuxbox-linux-uclibc-ranlib \
200 DS_ST=powerpc-tuxbox-linux-uclibc-strip
201
202######################################################################
203#
204# TripleDragon crosscompiler
205#
206######################################################################
207cross-powerpc-405-linux:
208 @-$(MAKE) --no-print-directory \
209 -f Maketype TYP=$(subst cross-,,$@) \
210 OS_LIBS="-lcrypto -ldl -lm" \
211 OS_CULI="-lncurses" \
212 OS_PTLI="-lpthread" \
213 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)\""'" \
214 DS_CFLAGS="-c" \
215 DS_LDFLAGS="" \
216 DS_ARFLAGS="-rvsl" \
217 DS_CC=powerpc-405-linux-gnu-gcc \
218 DS_AR=powerpc-405-linux-gnu-ar \
219 DS_LD=powerpc-405-linux-gnu-ld \
220 DS_RL=powerpc-405-linux-gnu-ranlib \
221 DS_ST=powerpc-405-linux-gnu-strip
222
223######################################################################
224#
225# sh4 crosscompiler
226#
227######################################################################
228cross-sh4-linux:
229 @-$(MAKE) --no-print-directory \
230 -f Maketype TYP=$(subst cross-,,$@) \
231 OS_LIBS="-lcrypto -lm" \
232 OS_CULI="-lncurses" \
233 OS_PTLI="-lpthread" \
234 DS_OPTS="-O2 -DOS_LINUX -DSH4 -DTUXBOX -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
235 DS_CFLAGS="-c" \
236 DS_LDFLAGS="" \
237 DS_ARFLAGS="-rvsl" \
238 DS_CC=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-gcc \
239 DS_AR=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ar \
240 DS_LD=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ld \
241 DS_RL=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ranlib \
242 DS_ST=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-strip
243
244######################################################################
245#
246# Cygwin crosscompiler
247#
248######################################################################
249cross-i386-pc-cygwin:
250 @-$(MAKE) --no-print-directory \
251 -f Maketype TYP=$(subst cross-,,$@) \
252 OS_LIBS="-lcrypto -lm" \
253 OS_CULI="-lncurses" \
254 OS_PTLI="-lpthread" \
255 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -static -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
256 DS_CFLAGS="-c" \
257 DS_LDFLAGS="" \
258 DS_ARFLAGS="-rvsl" \
259 DS_CC=i686-pc-cygwin-gcc \
260 DS_AR=i686-pc-cygwin-ar \
261 DS_LD=i686-pc-cygwin-ld \
262 DS_RL=i686-pc-cygwin-ranlib \
263 DS_ST=i686-pc-cygwin-strip
264
265######################################################################
266#
267# Cygwin native
268#
269######################################################################
270i386-pc-cygwin:
271 @-$(MAKE) --no-print-directory \
272 -f Maketype TYP=$(subst cross-,,$@) \
273 OS_LIBS="-lcrypto -lm" \
274 OS_CULI="-lncurses" \
275 OS_PTLI="-lpthread" \
276 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -I /tmp/include -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
277 DS_CFLAGS="-c" \
278 DS_LDFLAGS="" \
279 DS_ARFLAGS="-rvsl" \
280 DS_CC=gcc \
281 DS_AR=ar \
282 DS_LD=ld \
283 DS_RL=ranlib \
284 DS_ST=strip
285
286######################################################################
287#
288# Solaris 7 crosscompiler
289#
290######################################################################
291cross-sparc-sun-solaris2.7:
292 @-$(MAKE) --no-print-directory \
293 -f Maketype TYP=$(subst cross-,,$@) \
294 OS_LIBS="-lm" \
295 OS_CULI="-lncurses" \
296 OS_PTLI="-lpthread" \
297 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
298 DS_CFLAGS="-c" \
299 DS_LDFLAGS="-lsocket" \
300 DS_ARFLAGS="-rvsl" \
301 DS_CC=sparc-sun-solaris2.7-gcc \
302 DS_AR=sparc-sun-solaris2.7-ar \
303 DS_LD=sparc-sun-solaris2.7-ld \
304 DS_RL=sparc-sun-solaris2.7-ranlib \
305 DS_ST=sparc-sun-solaris2.7-strip
306
307######################################################################
308#
309# OpenSolaris native compiler
310#
311######################################################################
312opensolaris:
313 @-$(MAKE) --no-print-directory \
314 -f Maketype TYP=$(subst cross-,,$@) \
315 OS_LIBS="-lcrypto -lnsl -lm" \
316 OS_CULI="-lncurses" \
317 OS_PTLI="-lpthread" \
318 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
319 DS_CFLAGS="-c" \
320 DS_LDFLAGS="-lsocket" \
321 DS_ARFLAGS="-rvsl" \
322 DS_CC=gcc \
323 DS_AR=ar \
324 DS_LD=ld \
325 DS_RL=ranlib \
326 DS_ST=strip
327
328######################################################################
329#
330# AIX 4.2 crosscompiler
331#
332######################################################################
333cross-rs6000-ibm-aix4.2:
334 @-$(MAKE) --no-print-directory \
335 -f Maketype TYP=$(subst cross-,,$@) \
336 OS_LIBS="-lm" \
337 OS_CULI="-lncurses" \
338 OS_PTLI="-lpthreads" \
339 DS_OPTS="-O2 -DOS_AIX -DOS_AIX42 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
340 DS_CFLAGS="-c" \
341 DS_LDFLAGS="" \
342 DS_ARFLAGS="-rvsl" \
343 DS_CC=rs6000-ibm-aix4.2-gcc \
344 DS_AR=rs6000-ibm-aix4.2-ar \
345 DS_LD=rs6000-ibm-aix4.2-ld \
346 DS_RL=rs6000-ibm-aix4.2-ranlib \
347 DS_ST=rs6000-ibm-aix4.2-strip
348
349######################################################################
350#
351# IRIX 6.5 crosscompiler
352#
353######################################################################
354cross-mips-sgi-irix6.5:
355 @-$(MAKE) --no-print-directory \
356 -f Maketype TYP=$(subst cross-,,$@) \
357 OS_LIBS="-lm" \
358 OS_CULI="-lncurses" \
359 OS_PTLI="-lpthread" \
360 DS_OPTS="-O2 -DOS_IRIX -DOS_IRIX65 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
361 DS_CFLAGS="-c" \
362 DS_LDFLAGS="" \
363 DS_ARFLAGS="-rvsl" \
364 DS_CC=mips-sgi-irix6.5-gcc \
365 DS_AR=mips-sgi-irix6.5-ar \
366 DS_LD=mips-sgi-irix6.5-ld \
367 DS_RL=mips-sgi-irix6.5-ranlib \
368 DS_ST=mips-sgi-irix6.5-strip
369
370######################################################################
371#
372# Linux MIPS(LE) crosscompiler with ucLibc 0.9.27
373#
374######################################################################
375cross-mipsel-router-linux-uclibc927:
376 @-mipsel-linux-uclibc-setlib 0.9.27
377 @-$(MAKE) --no-print-directory \
378 -f Maketype TYP=$(subst cross-,,$@) \
379 OS_LIBS="-lm" \
380 OS_CULI="-lncurses" \
381 OS_PTLI="-lpthread" \
382 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
383 DS_CFLAGS="-c" \
384 DS_LDFLAGS="" \
385 DS_ARFLAGS="-rvsl" \
386 DS_CC=mipsel-linux-uclibc-gcc \
387 DS_AR=mipsel-linux-uclibc-ar \
388 DS_LD=mipsel-linux-uclibc-ld \
389 DS_RL=mipsel-linux-uclibc-ranlib \
390 DS_ST=mipsel-linux-uclibc-strip
391
392######################################################################
393#
394# Linux MIPS(LE) crosscompiler with ucLibc 0.9.28
395#
396######################################################################
397cross-mipsel-router-linux-uclibc928:
398 @-mipsel-linux-uclibc-setlib 0.9.28
399 @-$(MAKE) --no-print-directory \
400 -f Maketype TYP=$(subst cross-,,$@) \
401 OS_LIBS="-lcrypto -lm" \
402 OS_CULI="-lncurses" \
403 OS_PTLI="-lpthread" \
404 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -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=mipsel-linux-uclibc-gcc \
409 DS_AR=mipsel-linux-uclibc-ar \
410 DS_LD=mipsel-linux-uclibc-ld \
411 DS_RL=mipsel-linux-uclibc-ranlib \
412 DS_ST=mipsel-linux-uclibc-strip
413
414######################################################################
415#
416# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29
417#
418######################################################################
419cross-mipsel-router-linux-uclibc929:
420 @-mipsel-linux-uclibc-setlib 0.9.29
421 @-$(MAKE) --no-print-directory \
422 -f Maketype TYP=$(subst cross-,,$@) \
423 OS_LIBS="-lcrypto -lm" \
424 OS_CULI="-lncurses" \
425 OS_PTLI="-lpthread" \
426 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
427 DS_CFLAGS="-c" \
428 DS_LDFLAGS="" \
429 DS_ARFLAGS="-rvsl" \
430 DS_CC=mipsel-linux-uclibc-gcc \
431 DS_AR=mipsel-linux-uclibc-ar \
432 DS_LD=mipsel-linux-uclibc-ld \
433 DS_RL=mipsel-linux-uclibc-ranlib \
434 DS_ST=mipsel-linux-uclibc-strip
435
436######################################################################
437#
438# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29 (static)
439#
440######################################################################
441cross-mipsel-router-linux-uclibc929-static:
442 @-mipsel-linux-uclibc-setlib 0.9.29
443 @-$(MAKE) --no-print-directory \
444 -f Maketype TYP=$(subst cross-,,$@) \
445 OS_LIBS="-lcrypto -lm" \
446 OS_CULI="-lncurses" \
447 OS_PTLI="-lpthread" \
448 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
449 DS_CFLAGS="-c" \
450 DS_LDFLAGS="-static" \
451 DS_ARFLAGS="-rvsl" \
452 DS_CC=mipsel-linux-uclibc-gcc \
453 DS_AR=mipsel-linux-uclibc-ar \
454 DS_LD=mipsel-linux-uclibc-ld \
455 DS_RL=mipsel-linux-uclibc-ranlib \
456 DS_ST=mipsel-linux-uclibc-strip
457
458######################################################################
459#
460# Linux MIPS(LE) crosscompiler for La Fonera 2.0
461#
462######################################################################
463cross-mipsel-fonera2:
464 @-$(MAKE) --no-print-directory \
465 -f Maketype TYP=$(subst cross-,,$@) \
466 OS_LIBS="-Lopenssl-lib -lcrypto -lm" \
467 OS_CULI="-lncurses" \
468 OS_PTLI="-lpthread" \
469 DS_OPTS="-Iopenssl-include -O2 -DOS_LINUX -DMIPSEL -DUCLIBC -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=mips-linux-gcc \
474 DS_AR=mips-linux-ar \
475 DS_LD=mips-linux-ld \
476 DS_RL=mips-linux-ranlib \
477 DS_ST=mips-linux-strip
478
479######################################################################
480#
481# Linux MIPS(LE) crosscompiler with glibc (DM7025)
482#
483######################################################################
484cross-mipsel-tuxbox-linux-glibc:
485 @-$(MAKE) --no-print-directory \
486 -f Maketype TYP=$(subst cross-,,$@) \
487 OS_LIBS="-lcrypto -lm" \
488 OS_CULI="-lncurses" \
489 OS_PTLI="-lpthread" \
490 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
491 DS_CFLAGS="-c" \
492 DS_LDFLAGS="" \
493 DS_ARFLAGS="-rvsl" \
494 DS_CC=mipsel-linux-glibc-gcc \
495 DS_AR=mipsel-linux-glibc-ar \
496 DS_LD=mipsel-linux-glibc-ld \
497 DS_RL=mipsel-linux-glibc-ranlib \
498 DS_ST=mipsel-linux-glibc-strip
499
500cross-mipsel-tuxbox-linux:
501 @-$(MAKE) --no-print-directory \
502 -f Maketype TYP=$(subst cross-,,$@) \
503 OS_LIBS="-lcrypto -lm" \
504 OS_CULI="-lncurses" \
505 OS_PTLI="-lpthread" \
506 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
507 DS_CFLAGS="-c" \
508 DS_LDFLAGS="" \
509 DS_ARFLAGS="-rvsl" \
510 DS_CC=mipsel-linux-gcc \
511 DS_AR=mipsel-linux-ar \
512 DS_LD=mipsel-linux-ld \
513 DS_RL=mipsel-linux-ranlib \
514 DS_ST=mipsel-linux-strip
515
516######################################################################
517#
518# HP/UX 10.20 native
519#
520######################################################################
521hppa1.1-hp-hpux10.20:
522 @-$(MAKE) --no-print-directory \
523 -f Maketype TYP=$(subst cross-,,$@) \
524 OS_LIBS="-lm" \
525 OS_CULI="-lncurses" \
526 OS_PTLI="-lpthread" \
527 DS_OPTS="-O2 -DOS_HPUX -DOS_HPUX10 -D_XOPEN_SOURCE_EXTENDED -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
528 DS_CFLAGS="-c" \
529 DS_LDFLAGS="" \
530 DS_ARFLAGS="-rvsl" \
531 DS_CC=gcc \
532 DS_AR=ar \
533 DS_LD=ld \
534 DS_RL=ranlib \
535 DS_ST=strip
536
537######################################################################
538#
539# OSF5.1 native
540#
541######################################################################
542alpha-dec-osf5.1:
543 @-$(MAKE) --no-print-directory \
544 -f Maketype TYP=$(subst cross-,,$@) \
545 OS_LIBS="-lm" \
546 OS_CULI="-lncurses" \
547 OS_PTLI="-lpthread" \
548 DS_OPTS="-O2 -DOS_OSF -DOS_OSF5 -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
549 XDS_CFLAGS="-I/usr/include -c" \
550 DS_CFLAGS="-c" \
551 DS_LDFLAGS="" \
552 DS_ARFLAGS="-rvsl" \
553 DS_CC=cc \
554 DS_AR=ar \
555 DS_LD=ld \
556 DS_RL=ranlib \
557 DS_ST=strip
558
559######################################################################
560#
561# ARM crosscompiler (big-endian)
562#
563######################################################################
564cross-arm-nslu2-linux:
565 @-$(MAKE) --no-print-directory \
566 -f Maketype TYP="$(subst cross-,,$@)" \
567 OS_LIBS="-lm" \
568 OS_CULI="-lncurses" \
569 OS_PTLI="-lpthread" \
570 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
571 DS_CFLAGS="-c" \
572 DS_LDFLAGS="" \
573 DS_ARFLAGS="-rvsl" \
574 DS_AWK="awk" \
575 DS_CC="armv5b-softfloat-linux-gcc" \
576 DS_AR="armv5b-softfloat-linux-ar" \
577 DS_LD="armv5b-softfloat-linux-ld" \
578 DS_RL="armv5b-softfloat-linux-ranlib" \
579 DS_ST="armv5b-softfloat-linux-strip"
580
581######################################################################
582#
583# ARM crosscompiler (big-endian)
584#
585######################################################################
586cross-armBE-unkown-linux:
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="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
593 DS_CFLAGS="-c" \
594 DS_LDFLAGS="" \
595 DS_ARFLAGS="-rvsl" \
596 DS_AWK="awk" \
597 DS_CC="arm-linux-gcc -mbig-endian" \
598 DS_AR="arm-linux-ar" \
599 DS_LD="arm-linux-ld -EB" \
600 DS_RL="arm-linux-ranlib" \
601 DS_ST="arm-linux-strip"
602
603######################################################################
604#
605# ARM crosscompiler (little-endian)
606#
607######################################################################
608cross-armLE-unkown-linux:
609 -$(MAKE) --no-print-directory \
610 -f Maketype TYP="$(subst cross-,,$@)" \
611 OS_LIBS="-lm" \
612 OS_CULI="-lncurses" \
613 OS_PTLI="-lpthread" \
614 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
615 DS_CFLAGS="-c" \
616 DS_LDFLAGS="" \
617 DS_ARFLAGS="-rvsl" \
618 DS_AWK="awk" \
619 DS_CC="arm-linux-gcc -mlittle-endian" \
620 DS_AR="arm-linux-ar" \
621 DS_LD="arm-linux-ld -EL" \
622 DS_RL="arm-linux-ranlib" \
623 DS_ST="arm-linux-strip"
Note: See TracBrowser for help on using the repository browser.