source: trunk/Makefile@ 1090

Last change on this file since 1090 was 1090, checked in by C.H.A.D.o, 11 years ago

Fix parentheses warnings

File size: 19.0 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 -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 -Wno-implicit-function-declaration -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 -Wno-implicit-function-declaration -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
348cross-mipsel-router-linux-uclibc: cross-mipsel-router-linux-uclibc929
349######################################################################
350#
351# Linux MIPS(LE) crosscompiler with ucLibc 0.9.27
352#
353######################################################################
354cross-mipsel-router-linux-uclibc927:
355 @-mipsel-linux-uclibc-setlib 0.9.27
356 @-$(MAKE) --no-print-directory \
357 -f Maketype TYP=$(subst cross-,,$@) \
358 OS_LIBS="-lm" \
359 OS_CULI="-lncurses" \
360 OS_PTLI="-lpthread" \
361 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
362 DS_CFLAGS="-c" \
363 DS_LDFLAGS="" \
364 DS_ARFLAGS="-rvsl" \
365 DS_CC=mipsel-linux-uclibc-gcc \
366 DS_AR=mipsel-linux-uclibc-ar \
367 DS_LD=mipsel-linux-uclibc-ld \
368 DS_RL=mipsel-linux-uclibc-ranlib \
369 DS_ST=mipsel-linux-uclibc-strip
370
371######################################################################
372#
373# Linux MIPS(LE) crosscompiler with ucLibc 0.9.28
374#
375######################################################################
376cross-mipsel-router-linux-uclibc928:
377 @-mipsel-linux-uclibc-setlib 0.9.28
378 @-$(MAKE) --no-print-directory \
379 -f Maketype TYP=$(subst cross-,,$@) \
380 OS_LIBS="-lm" \
381 OS_CULI="-lncurses" \
382 OS_PTLI="-lpthread" \
383 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
384 DS_CFLAGS="-c" \
385 DS_LDFLAGS="" \
386 DS_ARFLAGS="-rvsl" \
387 DS_CC=mipsel-linux-uclibc-gcc \
388 DS_AR=mipsel-linux-uclibc-ar \
389 DS_LD=mipsel-linux-uclibc-ld \
390 DS_RL=mipsel-linux-uclibc-ranlib \
391 DS_ST=mipsel-linux-uclibc-strip
392
393######################################################################
394#
395# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29
396#
397######################################################################
398cross-mipsel-router-linux-uclibc929:
399 @-mipsel-linux-uclibc-setlib 0.9.29
400 @-$(MAKE) --no-print-directory \
401 -f Maketype TYP=$(subst cross-,,$@) \
402 OS_LIBS="-lcrypto -lm" \
403 OS_CULI="-lncurses" \
404 OS_PTLI="-lpthread" \
405 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
406 DS_CFLAGS="-c" \
407 DS_LDFLAGS="" \
408 DS_ARFLAGS="-rvsl" \
409 DS_CC=mipsel-linux-uclibc-gcc \
410 DS_AR=mipsel-linux-uclibc-ar \
411 DS_LD=mipsel-linux-uclibc-ld \
412 DS_RL=mipsel-linux-uclibc-ranlib \
413 DS_ST=mipsel-linux-uclibc-strip
414
415######################################################################
416#
417# Linux MIPS(LE) crosscompiler with ucLibc 0.9.29 (static)
418#
419######################################################################
420cross-mipsel-router-linux-uclibc929-static:
421 @-mipsel-linux-uclibc-setlib 0.9.29
422 @-$(MAKE) --no-print-directory \
423 -f Maketype TYP=$(subst cross-,,$@) \
424 OS_LIBS="-lcrypto -lm" \
425 OS_CULI="-lncurses" \
426 OS_PTLI="-lpthread" \
427 DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
428 DS_CFLAGS="-c" \
429 DS_LDFLAGS="-static" \
430 DS_ARFLAGS="-rvsl" \
431 DS_CC=mipsel-linux-uclibc-gcc \
432 DS_AR=mipsel-linux-uclibc-ar \
433 DS_LD=mipsel-linux-uclibc-ld \
434 DS_RL=mipsel-linux-uclibc-ranlib \
435 DS_ST=mipsel-linux-uclibc-strip
436
437######################################################################
438#
439# Linux MIPS(LE) crosscompiler for La Fonera 2.0
440#
441######################################################################
442cross-mipsel-fonera2:
443 @-$(MAKE) --no-print-directory \
444 -f Maketype TYP=$(subst cross-,,$@) \
445 OS_LIBS="-Lopenssl-lib -lcrypto -lm" \
446 OS_CULI="-lncurses" \
447 OS_PTLI="-lpthread" \
448 DS_OPTS="-Iopenssl-include -O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
449 DS_CFLAGS="-c" \
450 DS_LDFLAGS="" \
451 DS_ARFLAGS="-rvsl" \
452 DS_CC=mips-linux-gcc \
453 DS_AR=mips-linux-ar \
454 DS_LD=mips-linux-ld \
455 DS_RL=mips-linux-ranlib \
456 DS_ST=mips-linux-strip
457
458######################################################################
459#
460# Linux MIPS(LE) crosscompiler with glibc (DM7025)
461#
462######################################################################
463cross-mipsel-tuxbox-linux-glibc:
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 -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
470 DS_CFLAGS="-c" \
471 DS_LDFLAGS="" \
472 DS_ARFLAGS="-rvsl" \
473 DS_CC=mipsel-linux-glibc-gcc \
474 DS_AR=mipsel-linux-glibc-ar \
475 DS_LD=mipsel-linux-glibc-ld \
476 DS_RL=mipsel-linux-glibc-ranlib \
477 DS_ST=mipsel-linux-glibc-strip
478
479cross-mipsel-tuxbox-linux:
480 @-$(MAKE) --no-print-directory \
481 -f Maketype TYP=$(subst cross-,,$@) \
482 OS_LIBS="-lcrypto -lm" \
483 OS_CULI="-lncurses" \
484 OS_PTLI="-lpthread" \
485 DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR='\"/var/tuxbox/config\"' -static-libgcc -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
486 DS_CFLAGS="-c" \
487 DS_LDFLAGS="" \
488 DS_ARFLAGS="-rvsl" \
489 DS_CC=mipsel-linux-gcc \
490 DS_AR=mipsel-linux-ar \
491 DS_LD=mipsel-linux-ld \
492 DS_RL=mipsel-linux-ranlib \
493 DS_ST=mipsel-linux-strip
494
495######################################################################
496#
497# HP/UX 10.20 native
498#
499######################################################################
500hppa1.1-hp-hpux10.20:
501 @-$(MAKE) --no-print-directory \
502 -f Maketype TYP=$(subst cross-,,$@) \
503 OS_LIBS="-lm" \
504 OS_CULI="-lncurses" \
505 OS_PTLI="-lpthread" \
506 DS_OPTS="-O2 -DOS_HPUX -DOS_HPUX10 -D_XOPEN_SOURCE_EXTENDED -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
507 DS_CFLAGS="-c" \
508 DS_LDFLAGS="" \
509 DS_ARFLAGS="-rvsl" \
510 DS_CC=gcc \
511 DS_AR=ar \
512 DS_LD=ld \
513 DS_RL=ranlib \
514 DS_ST=strip
515
516######################################################################
517#
518# OSF5.1 native
519#
520######################################################################
521alpha-dec-osf5.1:
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_OSF -DOS_OSF5 -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
528 XDS_CFLAGS="-I/usr/include -c" \
529 DS_CFLAGS="-c" \
530 DS_LDFLAGS="" \
531 DS_ARFLAGS="-rvsl" \
532 DS_CC=cc \
533 DS_AR=ar \
534 DS_LD=ld \
535 DS_RL=ranlib \
536 DS_ST=strip
537
538######################################################################
539#
540# ARM crosscompiler (big-endian)
541#
542######################################################################
543cross-arm-nslu2-linux:
544 @-$(MAKE) --no-print-directory \
545 -f Maketype TYP="$(subst cross-,,$@)" \
546 OS_LIBS="-lm" \
547 OS_CULI="-lncurses" \
548 OS_PTLI="-lpthread" \
549 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
550 DS_CFLAGS="-c" \
551 DS_LDFLAGS="" \
552 DS_ARFLAGS="-rvsl" \
553 DS_AWK="awk" \
554 DS_CC="armv5b-softfloat-linux-gcc" \
555 DS_AR="armv5b-softfloat-linux-ar" \
556 DS_LD="armv5b-softfloat-linux-ld" \
557 DS_RL="armv5b-softfloat-linux-ranlib" \
558 DS_ST="armv5b-softfloat-linux-strip"
559
560######################################################################
561#
562# ARM crosscompiler (big-endian)
563#
564######################################################################
565cross-armBE-unkown-linux:
566 -$(MAKE) --no-print-directory \
567 -f Maketype TYP="$(subst cross-,,$@)" \
568 OS_LIBS="-lm" \
569 OS_CULI="-lncurses" \
570 OS_PTLI="-lpthread" \
571 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
572 DS_CFLAGS="-c" \
573 DS_LDFLAGS="" \
574 DS_ARFLAGS="-rvsl" \
575 DS_AWK="awk" \
576 DS_CC="arm-linux-gcc -mbig-endian" \
577 DS_AR="arm-linux-ar" \
578 DS_LD="arm-linux-ld -EB" \
579 DS_RL="arm-linux-ranlib" \
580 DS_ST="arm-linux-strip"
581
582######################################################################
583#
584# ARM crosscompiler (little-endian)
585#
586######################################################################
587cross-armLE-unkown-linux:
588 -$(MAKE) --no-print-directory \
589 -f Maketype TYP="$(subst cross-,,$@)" \
590 OS_LIBS="-lm" \
591 OS_CULI="-lncurses" \
592 OS_PTLI="-lpthread" \
593 DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR} -D'CS_SVN_VERSION="\"$(SVN_REV)\""'" \
594 DS_CFLAGS="-c" \
595 DS_LDFLAGS="" \
596 DS_ARFLAGS="-rvsl" \
597 DS_AWK="awk" \
598 DS_CC="arm-linux-gcc -mlittle-endian" \
599 DS_AR="arm-linux-ar" \
600 DS_LD="arm-linux-ld -EL" \
601 DS_RL="arm-linux-ranlib" \
602 DS_ST="arm-linux-strip"
Note: See TracBrowser for help on using the repository browser.