source: trunk/Makefile@ 1147

Last change on this file since 1147 was 1147, checked in by landlord, 11 years ago

Fix for ucLibc 0.9.28 Makefile

File size: 18.9 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
14win: cross-i386-pc-cygwin
15cygwin: i386-pc-cygwin
16macosx: macosx-native
17
18std: linux \
19 macosx \
20 cross-i386-pc-cygwin \
21 cross-powerpc-tuxbox-linux \
22 cross-i386-pc-freebsd \
23 cross-arm-nslu2-linux \
24 cross-mipsel-router-linux-uclibc927 \
25 cross-mipsel-router-linux-uclibc928 \
26 cross-mipsel-router-linux-uclibc929 \
27 cross-mipsel-router-linux-uclibc929-static \
28 cross-mipsel-tuxbox-linux-glibc \
29 cross-mipsel-fonera2 \
30 cross-sh4-linux
31
32all: \
33 cross-sparc-sun-solaris2.7 \
34 cross-rs6000-ibm-aix4.2 \
35 cross-mips-sgi-irix6.5
36
37
38dist: std
39 @cd Distribution && tar cvf "../oscam$(VER).tar" *
40 @bzip2 -9f "oscam$(VER).tar"
41
42extra: all
43 @cd Distribution && tar cvf "../oscam$(VER)-extra.tar" *
44 @bzip2 -9f "oscam$(VER)-extra.tar"
45
46clean:
47 @-rm -rf oscam-ostype.h lib Distribution/oscam-*
48
49tar: clean
50 @tar cvf "oscam$(VER)-src.tar" Distribution Make* *.c *.h cscrypt csctapi
51 @bzip2 -9f "oscam$(VER)-src.tar"
52
53nptar: clean
54 @tar cvf "oscam$(VER)-nonpublic-src.tar" Distribution Make* *.c *.np *.h cscrypt csctapi csgbox
55 @bzip2 -9f "oscam$(VER)-nonpublic-src.tar"
56
57######################################################################
58#
59# LINUX native
60#
61######################################################################
62i386-pc-linux:
63 @-$(MAKE) --no-print-directory \
64 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
65 OS_LIBS="-lcrypto -lm" \
66 OS_CULI="-lncurses" \
67 OS_PTLI="-lpthread" \
68 DS_OPTS="-O2 -DOS_LINUX -DCS_CONFDIR=${CS_CONFDIR} -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
69 DS_CFLAGS="-c" \
70 DS_LDFLAGS="" \
71 DS_ARFLAGS="-rvsl" \
72 DS_CC=gcc \
73 DS_AR=ar \
74 DS_LD=ld \
75 DS_RL=ranlib \
76 DS_ST=strip
77
78######################################################################
79#
80# LINUX native with PCSC
81#
82######################################################################
83i386-pc-linux-pcsc:
84 @-$(MAKE) --no-print-directory \
85 -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
86 OS_LIBS="-lcrypto -lm" \
87 OS_CULI="-lncurses" \
88 OS_PTLI="-lpthread -lpcsclite" \
89 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)\""'" \
90 DS_CFLAGS="-c" \
91 DS_LDFLAGS="" \
92 DS_ARFLAGS="-rvsl" \
93 DS_CC=gcc \
94 DS_AR=ar \
95 DS_LD=ld \
96 DS_RL=ranlib \
97 DS_ST=strip
98
99######################################################################
100#
101# MacOSX native
102#
103######################################################################
104macosx-native:
105 @-$(MAKE) --no-print-directory \
106 -f Maketype TYP=$(subst cross-,,$@) \
107 OS_LIBS="-lcrypto -lm" \
108 OS_CULI="-lncurses" \
109 OS_PTLI="-lpthread" \
110 DS_OPTS="-O2 -DOS_MACOSX -DNEED_DAEMON -DCS_NOSHM -DHAVE_PTHREAD_H -DUSE_PTHREAD -DCS_CONFDIR=${CS_CONFDIR} -DHAVE_PCSC=1 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
111 DS_CFLAGS="-c" \
112 DS_LDFLAGS="-framework PCSC" \
113 DS_ARFLAGS="-rvsl" \
114 DS_CC=gcc \
115 DS_AR=ar \
116 DS_LD=ld \
117 DS_RL=ranlib \
118 DS_ST=strip
119
120
121######################################################################
122#
123# FreeBSD native
124#
125######################################################################
126i386-pc-freebsd:
127 @-$(MAKE) --no-print-directory \
128 -f Maketype TYP=$(subst cross-,,$@) \
129 OS_LIBS="-lm" \
130 OS_CULI="-lncurses" \
131 OS_PTLI="-lpthread" \
132 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
133 DS_CFLAGS="-c" \
134 DS_LDFLAGS="" \
135 DS_ARFLAGS="-rvsl" \
136 DS_CC=gcc \
137 DS_AR=ar \
138 DS_LD=ld \
139 DS_RL=ranlib \
140 DS_ST=strip
141
142######################################################################
143#
144# FreeBSD 5.4 crosscompiler
145#
146######################################################################
147cross-i386-pc-freebsd:
148 @-$(MAKE) --no-print-directory \
149 -f Maketype TYP=$(subst cross-,,$@) \
150 OS_LIBS="-lm" \
151 OS_CULI="-lncurses" \
152 OS_PTLI="-lpthread" \
153 DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
154 DS_CFLAGS="-c" \
155 DS_LDFLAGS="" \
156 DS_ARFLAGS="-rvsl" \
157 DS_CC=i386-pc-freebsd5.4-gcc \
158 DS_AR=i386-pc-freebsd5.4-ar \
159 DS_LD=i386-pc-freebsd5.4-ld \
160 DS_RL=i386-pc-freebsd5.4-ranlib \
161 DS_ST=i386-pc-freebsd5.4-strip
162
163######################################################################
164#
165# Tuxbox crosscompiler
166#
167######################################################################
168cross-powerpc-tuxbox-linux:
169 @-$(MAKE) --no-print-directory \
170 -f Maketype TYP=$(subst cross-,,$@) \
171 OS_LIBS="-lcrypto -ldl -lm" \
172 OS_CULI="-lncurses" \
173 OS_PTLI="-lpthread" \
174 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
175 DS_CFLAGS="-c" \
176 DS_LDFLAGS="" \
177 DS_ARFLAGS="-rvsl" \
178 DS_CC=powerpc-tuxbox-linux-gnu-gcc \
179 DS_AR=powerpc-tuxbox-linux-gnu-ar \
180 DS_LD=powerpc-tuxbox-linux-gnu-ld \
181 DS_RL=powerpc-tuxbox-linux-gnu-ranlib \
182 DS_ST=powerpc-tuxbox-linux-gnu-strip
183
184cross-powerpc-tuxbox-linux-uclibc:
185 @-$(MAKE) --no-print-directory \
186 -f Maketype TYP=$(subst cross-,,$@) \
187 OS_LIBS="-lm" \
188 OS_CULI="-lncurses" \
189 OS_PTLI="-lpthread" \
190 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
191 DS_CFLAGS="-c" \
192 DS_LDFLAGS="" \
193 DS_ARFLAGS="-rvsl" \
194 DS_CC=powerpc-tuxbox-linux-uclibc-gcc \
195 DS_AR=powerpc-tuxbox-linux-uclibc-ar \
196 DS_LD=powerpc-tuxbox-linux-uclibc-ld \
197 DS_RL=powerpc-tuxbox-linux-uclibc-ranlib \
198 DS_ST=powerpc-tuxbox-linux-uclibc-strip
199
200
201######################################################################
202#
203# sh4 crosscompiler
204#
205######################################################################
206cross-sh4-linux:
207 @-$(MAKE) --no-print-directory \
208 -f Maketype TYP=$(subst cross-,,$@) \
209 OS_LIBS="-lcrypto -lm" \
210 OS_CULI="-lncurses" \
211 OS_PTLI="-lpthread" \
212 DS_OPTS="-O2 -DOS_LINUX -DSH4 -DTUXBOX -DCS_CONFDIR='\"/var/tuxbox/config\"' -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
213 DS_CFLAGS="-c" \
214 DS_LDFLAGS="" \
215 DS_ARFLAGS="-rvsl" \
216 DS_CC=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-gcc \
217 DS_AR=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ar \
218 DS_LD=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ld \
219 DS_RL=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ranlib \
220 DS_ST=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-strip
221
222######################################################################
223#
224# Cygwin crosscompiler
225#
226######################################################################
227cross-i386-pc-cygwin:
228 @-$(MAKE) --no-print-directory \
229 -f Maketype TYP=$(subst cross-,,$@) \
230 OS_LIBS="-lcrypto -lm" \
231 OS_CULI="-lncurses" \
232 OS_PTLI="-lpthread" \
233 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -static -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
234 DS_CFLAGS="-c" \
235 DS_LDFLAGS="" \
236 DS_ARFLAGS="-rvsl" \
237 DS_CC=i686-pc-cygwin-gcc \
238 DS_AR=i686-pc-cygwin-ar \
239 DS_LD=i686-pc-cygwin-ld \
240 DS_RL=i686-pc-cygwin-ranlib \
241 DS_ST=i686-pc-cygwin-strip
242
243######################################################################
244#
245# Cygwin native
246#
247######################################################################
248i386-pc-cygwin:
249 @-$(MAKE) --no-print-directory \
250 -f Maketype TYP=$(subst cross-,,$@) \
251 OS_LIBS="-lcrypto -lm" \
252 OS_CULI="-lncurses" \
253 OS_PTLI="-lpthread" \
254 DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -I /tmp/include -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
255 DS_CFLAGS="-c" \
256 DS_LDFLAGS="" \
257 DS_ARFLAGS="-rvsl" \
258 DS_CC=gcc \
259 DS_AR=ar \
260 DS_LD=ld \
261 DS_RL=ranlib \
262 DS_ST=strip
263
264######################################################################
265#
266# Solaris 7 crosscompiler
267#
268######################################################################
269cross-sparc-sun-solaris2.7:
270 @-$(MAKE) --no-print-directory \
271 -f Maketype TYP=$(subst cross-,,$@) \
272 OS_LIBS="-lm" \
273 OS_CULI="-lncurses" \
274 OS_PTLI="-lpthread" \
275 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
276 DS_CFLAGS="-c" \
277 DS_LDFLAGS="-lsocket" \
278 DS_ARFLAGS="-rvsl" \
279 DS_CC=sparc-sun-solaris2.7-gcc \
280 DS_AR=sparc-sun-solaris2.7-ar \
281 DS_LD=sparc-sun-solaris2.7-ld \
282 DS_RL=sparc-sun-solaris2.7-ranlib \
283 DS_ST=sparc-sun-solaris2.7-strip
284
285######################################################################
286#
287# OpenSolaris native compiler
288#
289######################################################################
290opensolaris:
291 @-$(MAKE) --no-print-directory \
292 -f Maketype TYP=$(subst cross-,,$@) \
293 OS_LIBS="-lcrypto -lnsl -lm" \
294 OS_CULI="-lncurses" \
295 OS_PTLI="-lpthread" \
296 DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
297 DS_CFLAGS="-c" \
298 DS_LDFLAGS="-lsocket" \
299 DS_ARFLAGS="-rvsl" \
300 DS_CC=gcc \
301 DS_AR=ar \
302 DS_LD=ld \
303 DS_RL=ranlib \
304 DS_ST=strip
305
306######################################################################
307#
308# AIX 4.2 crosscompiler
309#
310######################################################################
311cross-rs6000-ibm-aix4.2:
312 @-$(MAKE) --no-print-directory \
313 -f Maketype TYP=$(subst cross-,,$@) \
314 OS_LIBS="-lm" \
315 OS_CULI="-lncurses" \
316 OS_PTLI="-lpthreads" \
317 DS_OPTS="-O2 -DOS_AIX -DOS_AIX42 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
318 DS_CFLAGS="-c" \
319 DS_LDFLAGS="" \
320 DS_ARFLAGS="-rvsl" \
321 DS_CC=rs6000-ibm-aix4.2-gcc \
322 DS_AR=rs6000-ibm-aix4.2-ar \
323 DS_LD=rs6000-ibm-aix4.2-ld \
324 DS_RL=rs6000-ibm-aix4.2-ranlib \
325 DS_ST=rs6000-ibm-aix4.2-strip
326
327######################################################################
328#
329# IRIX 6.5 crosscompiler
330#
331######################################################################
332cross-mips-sgi-irix6.5:
333 @-$(MAKE) --no-print-directory \
334 -f Maketype TYP=$(subst cross-,,$@) \
335 OS_LIBS="-lm" \
336 OS_CULI="-lncurses" \
337 OS_PTLI="-lpthread" \
338 DS_OPTS="-O2 -DOS_IRIX -DOS_IRIX65 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
339 DS_CFLAGS="-c" \
340 DS_LDFLAGS="" \
341 DS_ARFLAGS="-rvsl" \
342 DS_CC=mips-sgi-irix6.5-gcc \
343 DS_AR=mips-sgi-irix6.5-ar \
344 DS_LD=mips-sgi-irix6.5-ld \
345 DS_RL=mips-sgi-irix6.5-ranlib \
346 DS_ST=mips-sgi-irix6.5-strip
347
348######################################################################
349#
350# Linux MIPS(LE) crosscompiler with ucLibc 0.9.27
351#
352######################################################################
353cross-mipsel-router-linux-uclibc927:
354 @-mipsel-linux-uclibc-setlib 0.9.27
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_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -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=mipsel-linux-uclibc-gcc \
365 DS_AR=mipsel-linux-uclibc-ar \
366 DS_LD=mipsel-linux-uclibc-ld \
367 DS_RL=mipsel-linux-uclibc-ranlib \
368 DS_ST=mipsel-linux-uclibc-strip
369
370######################################################################
371#
372# Linux MIPS(LE) crosscompiler with ucLibc 0.9.28
373#
374######################################################################
375cross-mipsel-router-linux-uclibc928:
376 @-mipsel-linux-uclibc-setlib 0.9.28
377 @-$(MAKE) --no-print-directory \
378 -f Maketype TYP=$(subst cross-,,$@) \
379 OS_LIBS="-lcrypto -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.29
395#
396######################################################################
397cross-mipsel-router-linux-uclibc929:
398 @-mipsel-linux-uclibc-setlib 0.9.29
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 (static)
417#
418######################################################################
419cross-mipsel-router-linux-uclibc929-static:
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="-static" \
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 for La Fonera 2.0
439#
440######################################################################
441cross-mipsel-fonera2:
442 @-$(MAKE) --no-print-directory \
443 -f Maketype TYP=$(subst cross-,,$@) \
444 OS_LIBS="-Lopenssl-lib -lcrypto -lm" \
445 OS_CULI="-lncurses" \
446 OS_PTLI="-lpthread" \
447 DS_OPTS="-Iopenssl-include -O2 -DOS_LINUX -DMIPSEL -DUCLIBC -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=mips-linux-gcc \
452 DS_AR=mips-linux-ar \
453 DS_LD=mips-linux-ld \
454 DS_RL=mips-linux-ranlib \
455 DS_ST=mips-linux-strip
456
457######################################################################
458#
459# Linux MIPS(LE) crosscompiler with glibc (DM7025)
460#
461######################################################################
462cross-mipsel-tuxbox-linux-glibc:
463 @-$(MAKE) --no-print-directory \
464 -f Maketype TYP=$(subst cross-,,$@) \
465 OS_LIBS="-lcrypto -lm" \
466 OS_CULI="-lncurses" \
467 OS_PTLI="-lpthread" \
468 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
469 DS_CFLAGS="-c" \
470 DS_LDFLAGS="" \
471 DS_ARFLAGS="-rvsl" \
472 DS_CC=mipsel-linux-glibc-gcc \
473 DS_AR=mipsel-linux-glibc-ar \
474 DS_LD=mipsel-linux-glibc-ld \
475 DS_RL=mipsel-linux-glibc-ranlib \
476 DS_ST=mipsel-linux-glibc-strip
477
478cross-mipsel-tuxbox-linux:
479 @-$(MAKE) --no-print-directory \
480 -f Maketype TYP=$(subst cross-,,$@) \
481 OS_LIBS="-lcrypto -lm" \
482 OS_CULI="-lncurses" \
483 OS_PTLI="-lpthread" \
484 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
485 DS_CFLAGS="-c" \
486 DS_LDFLAGS="" \
487 DS_ARFLAGS="-rvsl" \
488 DS_CC=mipsel-linux-gcc \
489 DS_AR=mipsel-linux-ar \
490 DS_LD=mipsel-linux-ld \
491 DS_RL=mipsel-linux-ranlib \
492 DS_ST=mipsel-linux-strip
493
494######################################################################
495#
496# HP/UX 10.20 native
497#
498######################################################################
499hppa1.1-hp-hpux10.20:
500 @-$(MAKE) --no-print-directory \
501 -f Maketype TYP=$(subst cross-,,$@) \
502 OS_LIBS="-lm" \
503 OS_CULI="-lncurses" \
504 OS_PTLI="-lpthread" \
505 DS_OPTS="-O2 -DOS_HPUX -DOS_HPUX10 -D_XOPEN_SOURCE_EXTENDED -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
506 DS_CFLAGS="-c" \
507 DS_LDFLAGS="" \
508 DS_ARFLAGS="-rvsl" \
509 DS_CC=gcc \
510 DS_AR=ar \
511 DS_LD=ld \
512 DS_RL=ranlib \
513 DS_ST=strip
514
515######################################################################
516#
517# OSF5.1 native
518#
519######################################################################
520alpha-dec-osf5.1:
521 @-$(MAKE) --no-print-directory \
522 -f Maketype TYP=$(subst cross-,,$@) \
523 OS_LIBS="-lm" \
524 OS_CULI="-lncurses" \
525 OS_PTLI="-lpthread" \
526 DS_OPTS="-O2 -DOS_OSF -DOS_OSF5 -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
527 XDS_CFLAGS="-I/usr/include -c" \
528 DS_CFLAGS="-c" \
529 DS_LDFLAGS="" \
530 DS_ARFLAGS="-rvsl" \
531 DS_CC=cc \
532 DS_AR=ar \
533 DS_LD=ld \
534 DS_RL=ranlib \
535 DS_ST=strip
536
537######################################################################
538#
539# ARM crosscompiler (big-endian)
540#
541######################################################################
542cross-arm-nslu2-linux:
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="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
549 DS_CFLAGS="-c" \
550 DS_LDFLAGS="" \
551 DS_ARFLAGS="-rvsl" \
552 DS_AWK="awk" \
553 DS_CC="armv5b-softfloat-linux-gcc" \
554 DS_AR="armv5b-softfloat-linux-ar" \
555 DS_LD="armv5b-softfloat-linux-ld" \
556 DS_RL="armv5b-softfloat-linux-ranlib" \
557 DS_ST="armv5b-softfloat-linux-strip"
558
559######################################################################
560#
561# ARM crosscompiler (big-endian)
562#
563######################################################################
564cross-armBE-unkown-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="arm-linux-gcc -mbig-endian" \
576 DS_AR="arm-linux-ar" \
577 DS_LD="arm-linux-ld -EB" \
578 DS_RL="arm-linux-ranlib" \
579 DS_ST="arm-linux-strip"
580
581######################################################################
582#
583# ARM crosscompiler (little-endian)
584#
585######################################################################
586cross-armLE-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 -mlittle-endian" \
598 DS_AR="arm-linux-ar" \
599 DS_LD="arm-linux-ld -EL" \
600 DS_RL="arm-linux-ranlib" \
601 DS_ST="arm-linux-strip"
Note: See TracBrowser for help on using the repository browser.