[54] | 1 | SHELL = /bin/sh
|
---|
[8] | 2 |
|
---|
| 3 | VER = $(subst ",,$(filter-out \#define CS_VERSION,$(shell grep CS_VERSION globals.h)))
|
---|
[65] | 4 | CS_CONFDIR = '\"/usr/local/etc\"'
|
---|
| 5 |
|
---|
[8] | 6 | export VER
|
---|
| 7 |
|
---|
| 8 | linux: i386-pc-linux
|
---|
| 9 | freebsd: i386-pc-freebsd
|
---|
| 10 | tuxbox: cross-powerpc-tuxbox-linux
|
---|
| 11 | win: cross-i386-pc-cygwin
|
---|
| 12 | cygwin: i386-pc-cygwin
|
---|
[54] | 13 | macosx: macosx-native
|
---|
[8] | 14 |
|
---|
| 15 | std: linux \
|
---|
[54] | 16 | macosx \
|
---|
[8] | 17 | cross-i386-pc-cygwin \
|
---|
| 18 | cross-powerpc-tuxbox-linux \
|
---|
| 19 | cross-i386-pc-freebsd \
|
---|
| 20 | cross-arm-nslu2-linux \
|
---|
| 21 | cross-mipsel-router-linux-uclibc927 \
|
---|
| 22 | cross-mipsel-router-linux-uclibc928 \
|
---|
| 23 | cross-mipsel-tuxbox-linux-glibc \
|
---|
| 24 | cross-sh4-linux
|
---|
| 25 |
|
---|
| 26 | all: \
|
---|
| 27 | cross-sparc-sun-solaris2.7 \
|
---|
| 28 | cross-rs6000-ibm-aix4.2 \
|
---|
| 29 | cross-mips-sgi-irix6.5
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | dist: std
|
---|
[21] | 33 | @cd Distribution && tar cvf "../oscam$(VER).tar" *
|
---|
| 34 | @bzip2 -9f "oscam$(VER).tar"
|
---|
[8] | 35 |
|
---|
| 36 | extra: all
|
---|
[21] | 37 | @cd Distribution && tar cvf "../oscam$(VER)-extra.tar" *
|
---|
| 38 | @bzip2 -9f "oscam$(VER)-extra.tar"
|
---|
[8] | 39 |
|
---|
| 40 | clean:
|
---|
[21] | 41 | @-rm -rf oscam-ostype.h lib Distribution/oscam-*
|
---|
[8] | 42 |
|
---|
| 43 | tar: clean
|
---|
[21] | 44 | @tar cvf "oscam$(VER)-src.tar" Distribution Make* *.c *.h cscrypt csctapi
|
---|
| 45 | @bzip2 -9f "oscam$(VER)-src.tar"
|
---|
[8] | 46 |
|
---|
| 47 | nptar: clean
|
---|
[21] | 48 | @tar cvf "oscam$(VER)-nonpublic-src.tar" Distribution Make* *.c *.np *.h cscrypt csctapi csgbox
|
---|
| 49 | @bzip2 -9f "oscam$(VER)-nonpublic-src.tar"
|
---|
[8] | 50 |
|
---|
| 51 | ######################################################################
|
---|
| 52 | #
|
---|
| 53 | # LINUX native
|
---|
| 54 | #
|
---|
| 55 | ######################################################################
|
---|
| 56 | i386-pc-linux:
|
---|
| 57 | @-$(MAKE) --no-print-directory \
|
---|
[28] | 58 | -f Maketype TYP=$(subst i386,$(shell uname --machine),$(subst cross-,,$@)) \
|
---|
[10] | 59 | OS_LIBS="-lcrypto" \
|
---|
[8] | 60 | OS_CULI="-lncurses" \
|
---|
| 61 | OS_PTLI="-lpthread" \
|
---|
[65] | 62 | DS_OPTS="-O3 -DOS_LINUX -DCS_CONFDIR=${CS_CONFDIR} -Winline -Werror -finline-functions -fomit-frame-pointer" \
|
---|
[8] | 63 | DS_CFLAGS="-c" \
|
---|
| 64 | DS_LDFLAGS="" \
|
---|
| 65 | DS_ARFLAGS="-rvsl" \
|
---|
| 66 | DS_CC=gcc \
|
---|
| 67 | DS_AR=ar \
|
---|
| 68 | DS_LD=ld \
|
---|
| 69 | DS_RL=ranlib \
|
---|
| 70 | DS_ST=strip
|
---|
| 71 |
|
---|
| 72 | ######################################################################
|
---|
| 73 | #
|
---|
[54] | 74 | # MacOSX native
|
---|
| 75 | #
|
---|
| 76 | ######################################################################
|
---|
| 77 | macosx-native:
|
---|
| 78 | @-$(MAKE) --no-print-directory \
|
---|
| 79 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 80 | OS_LIBS="-lcrypto" \
|
---|
| 81 | OS_CULI="-lncurses" \
|
---|
| 82 | OS_PTLI="-lpthread" \
|
---|
[65] | 83 | DS_OPTS="-O2 -DOS_MACOSX -DCS_NOSHM -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[54] | 84 | DS_CFLAGS="-c" \
|
---|
| 85 | DS_LDFLAGS="" \
|
---|
| 86 | DS_ARFLAGS="-rvsl" \
|
---|
| 87 | DS_CC=gcc \
|
---|
| 88 | DS_AR=ar \
|
---|
| 89 | DS_LD=ld \
|
---|
| 90 | DS_RL=ranlib \
|
---|
| 91 | DS_ST=strip
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 | ######################################################################
|
---|
| 95 | #
|
---|
[8] | 96 | # FreeBSD native
|
---|
| 97 | #
|
---|
| 98 | ######################################################################
|
---|
| 99 | i386-pc-freebsd:
|
---|
| 100 | @-$(MAKE) --no-print-directory \
|
---|
| 101 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 102 | OS_LIBS="" \
|
---|
| 103 | OS_CULI="-lncurses" \
|
---|
| 104 | OS_PTLI="-lpthread" \
|
---|
[65] | 105 | DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 106 | DS_CFLAGS="-c" \
|
---|
| 107 | DS_LDFLAGS="" \
|
---|
| 108 | DS_ARFLAGS="-rvsl" \
|
---|
| 109 | DS_CC=gcc \
|
---|
| 110 | DS_AR=ar \
|
---|
| 111 | DS_LD=ld \
|
---|
| 112 | DS_RL=ranlib \
|
---|
| 113 | DS_ST=strip
|
---|
| 114 |
|
---|
| 115 | ######################################################################
|
---|
| 116 | #
|
---|
| 117 | # FreeBSD 5.4 crosscompiler
|
---|
| 118 | #
|
---|
| 119 | ######################################################################
|
---|
| 120 | cross-i386-pc-freebsd:
|
---|
| 121 | @-$(MAKE) --no-print-directory \
|
---|
| 122 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 123 | OS_LIBS="" \
|
---|
| 124 | OS_CULI="-lncurses" \
|
---|
| 125 | OS_PTLI="-lpthread" \
|
---|
[65] | 126 | DS_OPTS="-O2 -DOS_FREEBSD -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 127 | DS_CFLAGS="-c" \
|
---|
| 128 | DS_LDFLAGS="" \
|
---|
| 129 | DS_ARFLAGS="-rvsl" \
|
---|
| 130 | DS_CC=i386-pc-freebsd5.4-gcc \
|
---|
| 131 | DS_AR=i386-pc-freebsd5.4-ar \
|
---|
| 132 | DS_LD=i386-pc-freebsd5.4-ld \
|
---|
| 133 | DS_RL=i386-pc-freebsd5.4-ranlib \
|
---|
| 134 | DS_ST=i386-pc-freebsd5.4-strip
|
---|
| 135 |
|
---|
| 136 | ######################################################################
|
---|
| 137 | #
|
---|
| 138 | # Tuxbox crosscompiler
|
---|
| 139 | #
|
---|
| 140 | ######################################################################
|
---|
| 141 | cross-powerpc-tuxbox-linux:
|
---|
| 142 | @-$(MAKE) --no-print-directory \
|
---|
| 143 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
[24] | 144 | OS_LIBS="-lcrypto -ldl" \
|
---|
[8] | 145 | OS_CULI="-lncurses" \
|
---|
| 146 | OS_PTLI="-lpthread" \
|
---|
[65] | 147 | DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 148 | DS_CFLAGS="-c" \
|
---|
| 149 | DS_LDFLAGS="" \
|
---|
| 150 | DS_ARFLAGS="-rvsl" \
|
---|
| 151 | DS_CC=powerpc-tuxbox-linux-gnu-gcc \
|
---|
| 152 | DS_AR=powerpc-tuxbox-linux-gnu-ar \
|
---|
| 153 | DS_LD=powerpc-tuxbox-linux-gnu-ld \
|
---|
| 154 | DS_RL=powerpc-tuxbox-linux-gnu-ranlib \
|
---|
| 155 | DS_ST=powerpc-tuxbox-linux-gnu-strip
|
---|
| 156 |
|
---|
[35] | 157 | cross-powerpc-tuxbox-linux-uclibc:
|
---|
| 158 | @-$(MAKE) --no-print-directory \
|
---|
| 159 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 160 | OS_LIBS="" \
|
---|
| 161 | OS_CULI="-lncurses" \
|
---|
| 162 | OS_PTLI="-lpthread" \
|
---|
[65] | 163 | DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DPPC -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[35] | 164 | DS_CFLAGS="-c" \
|
---|
| 165 | DS_LDFLAGS="" \
|
---|
| 166 | DS_ARFLAGS="-rvsl" \
|
---|
| 167 | DS_CC=powerpc-tuxbox-linux-uclibc-gcc \
|
---|
| 168 | DS_AR=powerpc-tuxbox-linux-uclibc-ar \
|
---|
| 169 | DS_LD=powerpc-tuxbox-linux-uclibc-ld \
|
---|
| 170 | DS_RL=powerpc-tuxbox-linux-uclibc-ranlib \
|
---|
| 171 | DS_ST=powerpc-tuxbox-linux-uclibc-strip
|
---|
[8] | 172 |
|
---|
[35] | 173 |
|
---|
[8] | 174 | ######################################################################
|
---|
| 175 | #
|
---|
| 176 | # sh4 crosscompiler
|
---|
| 177 | #
|
---|
| 178 | ######################################################################
|
---|
| 179 | cross-sh4-linux:
|
---|
| 180 | @-$(MAKE) --no-print-directory \
|
---|
| 181 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 182 | OS_LIBS="" \
|
---|
| 183 | OS_CULI="-lncurses" \
|
---|
| 184 | OS_PTLI="-lpthread" \
|
---|
[65] | 185 | DS_OPTS="-O2 -DOS_LINUX -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 186 | DS_CFLAGS="-c" \
|
---|
| 187 | DS_LDFLAGS="" \
|
---|
| 188 | DS_ARFLAGS="-rvsl" \
|
---|
| 189 | DS_CC=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-gcc \
|
---|
| 190 | DS_AR=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ar \
|
---|
| 191 | DS_LD=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ld \
|
---|
| 192 | DS_RL=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-ranlib \
|
---|
| 193 | DS_ST=/opt/STM/STLinux-2.0/devkit/sh4/bin/sh4-linux-strip
|
---|
| 194 |
|
---|
| 195 | ######################################################################
|
---|
| 196 | #
|
---|
| 197 | # Cygwin crosscompiler
|
---|
| 198 | #
|
---|
| 199 | ######################################################################
|
---|
| 200 | cross-i386-pc-cygwin:
|
---|
| 201 | @-$(MAKE) --no-print-directory \
|
---|
| 202 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
[45] | 203 | OS_LIBS="-lcrypto" \
|
---|
[8] | 204 | OS_CULI="-lncurses" \
|
---|
| 205 | OS_PTLI="-lpthread" \
|
---|
[65] | 206 | DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 207 | DS_CFLAGS="-c" \
|
---|
| 208 | DS_LDFLAGS="" \
|
---|
| 209 | DS_ARFLAGS="-rvsl" \
|
---|
| 210 | DS_CC=i686-pc-cygwin-gcc \
|
---|
| 211 | DS_AR=i686-pc-cygwin-ar \
|
---|
| 212 | DS_LD=i686-pc-cygwin-ld \
|
---|
| 213 | DS_RL=i686-pc-cygwin-ranlib \
|
---|
| 214 | DS_ST=i686-pc-cygwin-strip
|
---|
| 215 |
|
---|
| 216 | ######################################################################
|
---|
| 217 | #
|
---|
| 218 | # Cygwin native
|
---|
| 219 | #
|
---|
| 220 | ######################################################################
|
---|
| 221 | i386-pc-cygwin:
|
---|
| 222 | @-$(MAKE) --no-print-directory \
|
---|
| 223 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
[45] | 224 | OS_LIBS="-lcrypto" \
|
---|
[8] | 225 | OS_CULI="-lncurses" \
|
---|
| 226 | OS_PTLI="-lpthread" \
|
---|
[65] | 227 | DS_OPTS="-O2 -DOS_CYGWIN32 -DCS_CONFDIR=${CS_CONFDIR} -I /tmp/include" \
|
---|
[8] | 228 | DS_CFLAGS="-c" \
|
---|
| 229 | DS_LDFLAGS="" \
|
---|
| 230 | DS_ARFLAGS="-rvsl" \
|
---|
| 231 | DS_CC=gcc \
|
---|
| 232 | DS_AR=ar \
|
---|
| 233 | DS_LD=ld \
|
---|
| 234 | DS_RL=ranlib \
|
---|
| 235 | DS_ST=strip
|
---|
| 236 |
|
---|
| 237 | ######################################################################
|
---|
| 238 | #
|
---|
| 239 | # Solaris 7 crosscompiler
|
---|
| 240 | #
|
---|
| 241 | ######################################################################
|
---|
| 242 | cross-sparc-sun-solaris2.7:
|
---|
| 243 | @-$(MAKE) --no-print-directory \
|
---|
| 244 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 245 | OS_LIBS="" \
|
---|
| 246 | OS_CULI="-lncurses" \
|
---|
| 247 | OS_PTLI="-lpthread" \
|
---|
[65] | 248 | DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 249 | DS_CFLAGS="-c" \
|
---|
| 250 | DS_LDFLAGS="-lsocket" \
|
---|
| 251 | DS_ARFLAGS="-rvsl" \
|
---|
| 252 | DS_CC=sparc-sun-solaris2.7-gcc \
|
---|
| 253 | DS_AR=sparc-sun-solaris2.7-ar \
|
---|
| 254 | DS_LD=sparc-sun-solaris2.7-ld \
|
---|
| 255 | DS_RL=sparc-sun-solaris2.7-ranlib \
|
---|
| 256 | DS_ST=sparc-sun-solaris2.7-strip
|
---|
| 257 |
|
---|
| 258 | ######################################################################
|
---|
| 259 | #
|
---|
[61] | 260 | # OpenSolaris native compiler
|
---|
| 261 | #
|
---|
| 262 | ######################################################################
|
---|
| 263 | opensolaris:
|
---|
| 264 | @-$(MAKE) --no-print-directory \
|
---|
| 265 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 266 | OS_LIBS="-lcrypto -lnsl" \
|
---|
| 267 | OS_CULI="-lncurses" \
|
---|
| 268 | OS_PTLI="-lpthread" \
|
---|
[65] | 269 | DS_OPTS="-O2 -DOS_SOLARIS -DOS_SOLARIS7 -DBSD_COMP -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[61] | 270 | DS_CFLAGS="-c" \
|
---|
| 271 | DS_LDFLAGS="-lsocket" \
|
---|
| 272 | DS_ARFLAGS="-rvsl" \
|
---|
| 273 | DS_CC=gcc \
|
---|
| 274 | DS_AR=ar \
|
---|
| 275 | DS_LD=ld \
|
---|
| 276 | DS_RL=ranlib \
|
---|
| 277 | DS_ST=strip
|
---|
| 278 |
|
---|
| 279 | ######################################################################
|
---|
| 280 | #
|
---|
[8] | 281 | # AIX 4.2 crosscompiler
|
---|
| 282 | #
|
---|
| 283 | ######################################################################
|
---|
| 284 | cross-rs6000-ibm-aix4.2:
|
---|
| 285 | @-$(MAKE) --no-print-directory \
|
---|
| 286 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 287 | OS_LIBS="" \
|
---|
| 288 | OS_CULI="-lncurses" \
|
---|
| 289 | OS_PTLI="-lpthreads" \
|
---|
[65] | 290 | DS_OPTS="-O2 -DOS_AIX -DOS_AIX42 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 291 | DS_CFLAGS="-c" \
|
---|
| 292 | DS_LDFLAGS="" \
|
---|
| 293 | DS_ARFLAGS="-rvsl" \
|
---|
| 294 | DS_CC=rs6000-ibm-aix4.2-gcc \
|
---|
| 295 | DS_AR=rs6000-ibm-aix4.2-ar \
|
---|
| 296 | DS_LD=rs6000-ibm-aix4.2-ld \
|
---|
| 297 | DS_RL=rs6000-ibm-aix4.2-ranlib \
|
---|
| 298 | DS_ST=rs6000-ibm-aix4.2-strip
|
---|
| 299 |
|
---|
| 300 | ######################################################################
|
---|
| 301 | #
|
---|
| 302 | # IRIX 6.5 crosscompiler
|
---|
| 303 | #
|
---|
| 304 | ######################################################################
|
---|
| 305 | cross-mips-sgi-irix6.5:
|
---|
| 306 | @-$(MAKE) --no-print-directory \
|
---|
| 307 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 308 | OS_LIBS="" \
|
---|
| 309 | OS_CULI="-lncurses" \
|
---|
| 310 | OS_PTLI="-lpthread" \
|
---|
[65] | 311 | DS_OPTS="-O2 -DOS_IRIX -DOS_IRIX65 -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 312 | DS_CFLAGS="-c" \
|
---|
| 313 | DS_LDFLAGS="" \
|
---|
| 314 | DS_ARFLAGS="-rvsl" \
|
---|
| 315 | DS_CC=mips-sgi-irix6.5-gcc \
|
---|
| 316 | DS_AR=mips-sgi-irix6.5-ar \
|
---|
| 317 | DS_LD=mips-sgi-irix6.5-ld \
|
---|
| 318 | DS_RL=mips-sgi-irix6.5-ranlib \
|
---|
| 319 | DS_ST=mips-sgi-irix6.5-strip
|
---|
| 320 |
|
---|
| 321 | cross-mipsel-router-linux-uclibc: cross-mipsel-router-linux-uclibc928
|
---|
| 322 | ######################################################################
|
---|
| 323 | #
|
---|
| 324 | # Linux MIPS(LE) crosscompiler with ucLibc 0.9.27
|
---|
| 325 | #
|
---|
| 326 | ######################################################################
|
---|
| 327 | cross-mipsel-router-linux-uclibc927:
|
---|
| 328 | @-mipsel-linux-uclibc-setlib 0.9.27
|
---|
| 329 | @-$(MAKE) --no-print-directory \
|
---|
| 330 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 331 | OS_LIBS="" \
|
---|
| 332 | OS_CULI="-lncurses" \
|
---|
| 333 | OS_PTLI="-lpthread" \
|
---|
[65] | 334 | DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 335 | DS_CFLAGS="-c" \
|
---|
| 336 | DS_LDFLAGS="" \
|
---|
| 337 | DS_ARFLAGS="-rvsl" \
|
---|
| 338 | DS_CC=mipsel-linux-uclibc-gcc \
|
---|
| 339 | DS_AR=mipsel-linux-uclibc-ar \
|
---|
| 340 | DS_LD=mipsel-linux-uclibc-ld \
|
---|
| 341 | DS_RL=mipsel-linux-uclibc-ranlib \
|
---|
| 342 | DS_ST=mipsel-linux-uclibc-strip
|
---|
| 343 |
|
---|
| 344 | ######################################################################
|
---|
| 345 | #
|
---|
| 346 | # Linux MIPS(LE) crosscompiler with ucLibc 0.9.28
|
---|
| 347 | #
|
---|
| 348 | ######################################################################
|
---|
| 349 | cross-mipsel-router-linux-uclibc928:
|
---|
| 350 | @-mipsel-linux-uclibc-setlib 0.9.28
|
---|
| 351 | @-$(MAKE) --no-print-directory \
|
---|
| 352 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 353 | OS_LIBS="" \
|
---|
| 354 | OS_CULI="-lncurses" \
|
---|
| 355 | OS_PTLI="-lpthread" \
|
---|
[65] | 356 | DS_OPTS="-O2 -DOS_LINUX -DMIPSEL -DUCLIBC -DUSE_GPIO -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 357 | DS_CFLAGS="-c" \
|
---|
| 358 | DS_LDFLAGS="" \
|
---|
| 359 | DS_ARFLAGS="-rvsl" \
|
---|
| 360 | DS_CC=mipsel-linux-uclibc-gcc \
|
---|
| 361 | DS_AR=mipsel-linux-uclibc-ar \
|
---|
| 362 | DS_LD=mipsel-linux-uclibc-ld \
|
---|
| 363 | DS_RL=mipsel-linux-uclibc-ranlib \
|
---|
| 364 | DS_ST=mipsel-linux-uclibc-strip
|
---|
| 365 |
|
---|
| 366 | ######################################################################
|
---|
| 367 | #
|
---|
| 368 | # Linux MIPS(LE) crosscompiler with glibc (DM7025)
|
---|
| 369 | #
|
---|
| 370 | ######################################################################
|
---|
| 371 | cross-mipsel-tuxbox-linux-glibc:
|
---|
| 372 | @-$(MAKE) --no-print-directory \
|
---|
| 373 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
[44] | 374 | OS_LIBS="-lcrypto" \
|
---|
[8] | 375 | OS_CULI="-lncurses" \
|
---|
| 376 | OS_PTLI="-lpthread" \
|
---|
[65] | 377 | DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[8] | 378 | DS_CFLAGS="-c" \
|
---|
| 379 | DS_LDFLAGS="" \
|
---|
| 380 | DS_ARFLAGS="-rvsl" \
|
---|
| 381 | DS_CC=mipsel-linux-glibc-gcc \
|
---|
| 382 | DS_AR=mipsel-linux-glibc-ar \
|
---|
| 383 | DS_LD=mipsel-linux-glibc-ld \
|
---|
| 384 | DS_RL=mipsel-linux-glibc-ranlib \
|
---|
| 385 | DS_ST=mipsel-linux-glibc-strip
|
---|
| 386 |
|
---|
[44] | 387 | cross-mipsel-tuxbox-linux:
|
---|
| 388 | @-$(MAKE) --no-print-directory \
|
---|
| 389 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 390 | OS_LIBS="-lcrypto" \
|
---|
| 391 | OS_CULI="-lncurses" \
|
---|
| 392 | OS_PTLI="-lpthread" \
|
---|
[65] | 393 | DS_OPTS="-O2 -DOS_LINUX -DTUXBOX -DMIPSEL -DCS_CONFDIR=${CS_CONFDIR} -static-libgcc" \
|
---|
[44] | 394 | DS_CFLAGS="-c" \
|
---|
| 395 | DS_LDFLAGS="" \
|
---|
| 396 | DS_ARFLAGS="-rvsl" \
|
---|
| 397 | DS_CC=mipsel-linux-gcc \
|
---|
| 398 | DS_AR=mipsel-linux-ar \
|
---|
| 399 | DS_LD=mipsel-linux-ld \
|
---|
| 400 | DS_RL=mipsel-linux-ranlib \
|
---|
| 401 | DS_ST=mipsel-linux-strip
|
---|
| 402 |
|
---|
[8] | 403 | ######################################################################
|
---|
| 404 | #
|
---|
| 405 | # HP/UX 10.20 native
|
---|
| 406 | #
|
---|
| 407 | ######################################################################
|
---|
| 408 | hppa1.1-hp-hpux10.20:
|
---|
| 409 | @-$(MAKE) --no-print-directory \
|
---|
| 410 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 411 | OS_LIBS="" \
|
---|
| 412 | OS_CULI="-lncurses" \
|
---|
| 413 | OS_PTLI="-lpthread" \
|
---|
[65] | 414 | DS_OPTS="-O2 -DOS_HPUX -DOS_HPUX10 -D_XOPEN_SOURCE_EXTENDED -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 415 | DS_CFLAGS="-c" \
|
---|
| 416 | DS_LDFLAGS="" \
|
---|
| 417 | DS_ARFLAGS="-rvsl" \
|
---|
| 418 | DS_CC=gcc \
|
---|
| 419 | DS_AR=ar \
|
---|
| 420 | DS_LD=ld \
|
---|
| 421 | DS_RL=ranlib \
|
---|
| 422 | DS_ST=strip
|
---|
| 423 |
|
---|
| 424 | ######################################################################
|
---|
| 425 | #
|
---|
| 426 | # OSF5.1 native
|
---|
| 427 | #
|
---|
| 428 | ######################################################################
|
---|
| 429 | alpha-dec-osf5.1:
|
---|
| 430 | @-$(MAKE) --no-print-directory \
|
---|
| 431 | -f Maketype TYP=$(subst cross-,,$@) \
|
---|
| 432 | OS_LIBS="" \
|
---|
| 433 | OS_CULI="-lncurses" \
|
---|
| 434 | OS_PTLI="-lpthread" \
|
---|
[65] | 435 | DS_OPTS="-O2 -DOS_OSF -DOS_OSF5 -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 436 | XDS_CFLAGS="-I/usr/include -c" \
|
---|
| 437 | DS_CFLAGS="-c" \
|
---|
| 438 | DS_LDFLAGS="" \
|
---|
| 439 | DS_ARFLAGS="-rvsl" \
|
---|
| 440 | DS_CC=cc \
|
---|
| 441 | DS_AR=ar \
|
---|
| 442 | DS_LD=ld \
|
---|
| 443 | DS_RL=ranlib \
|
---|
| 444 | DS_ST=strip
|
---|
| 445 |
|
---|
| 446 | ######################################################################
|
---|
| 447 | #
|
---|
| 448 | # ARM crosscompiler (big-endian)
|
---|
| 449 | #
|
---|
| 450 | ######################################################################
|
---|
| 451 | cross-arm-nslu2-linux:
|
---|
| 452 | @-$(MAKE) --no-print-directory \
|
---|
| 453 | -f Maketype TYP="$(subst cross-,,$@)" \
|
---|
| 454 | OS_LIBS="" \
|
---|
| 455 | OS_CULI="-lncurses" \
|
---|
| 456 | OS_PTLI="-lpthread" \
|
---|
[65] | 457 | DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 458 | DS_CFLAGS="-c" \
|
---|
| 459 | DS_LDFLAGS="" \
|
---|
| 460 | DS_ARFLAGS="-rvsl" \
|
---|
| 461 | DS_AWK="awk" \
|
---|
| 462 | DS_CC="armv5b-softfloat-linux-gcc" \
|
---|
| 463 | DS_AR="armv5b-softfloat-linux-ar" \
|
---|
| 464 | DS_LD="armv5b-softfloat-linux-ld" \
|
---|
| 465 | DS_RL="armv5b-softfloat-linux-ranlib" \
|
---|
| 466 | DS_ST="armv5b-softfloat-linux-strip"
|
---|
| 467 |
|
---|
| 468 | ######################################################################
|
---|
| 469 | #
|
---|
| 470 | # ARM crosscompiler (big-endian)
|
---|
| 471 | #
|
---|
| 472 | ######################################################################
|
---|
| 473 | cross-armBE-unkown-linux:
|
---|
| 474 | -$(MAKE) --no-print-directory \
|
---|
| 475 | -f Maketype TYP="$(subst cross-,,$@)" \
|
---|
| 476 | OS_LIBS="" \
|
---|
| 477 | OS_CULI="-lncurses" \
|
---|
| 478 | OS_PTLI="-lpthread" \
|
---|
[65] | 479 | DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 480 | DS_CFLAGS="-c" \
|
---|
| 481 | DS_LDFLAGS="" \
|
---|
| 482 | DS_ARFLAGS="-rvsl" \
|
---|
| 483 | DS_AWK="awk" \
|
---|
| 484 | DS_CC="arm-linux-gcc -mbig-endian" \
|
---|
| 485 | DS_AR="arm-linux-ar" \
|
---|
| 486 | DS_LD="arm-linux-ld -EB" \
|
---|
| 487 | DS_RL="arm-linux-ranlib" \
|
---|
| 488 | DS_ST="arm-linux-strip"
|
---|
| 489 |
|
---|
| 490 | ######################################################################
|
---|
| 491 | #
|
---|
| 492 | # ARM crosscompiler (little-endian)
|
---|
| 493 | #
|
---|
| 494 | ######################################################################
|
---|
| 495 | cross-armLE-unkown-linux:
|
---|
| 496 | -$(MAKE) --no-print-directory \
|
---|
| 497 | -f Maketype TYP="$(subst cross-,,$@)" \
|
---|
| 498 | OS_LIBS="" \
|
---|
| 499 | OS_CULI="-lncurses" \
|
---|
| 500 | OS_PTLI="-lpthread" \
|
---|
[65] | 501 | DS_OPTS="-DOS_LINUX -O2 -DARM -DALIGNMENT -DCS_CONFDIR=${CS_CONFDIR}" \
|
---|
[8] | 502 | DS_CFLAGS="-c" \
|
---|
| 503 | DS_LDFLAGS="" \
|
---|
| 504 | DS_ARFLAGS="-rvsl" \
|
---|
| 505 | DS_AWK="awk" \
|
---|
| 506 | DS_CC="arm-linux-gcc -mlittle-endian" \
|
---|
| 507 | DS_AR="arm-linux-ar" \
|
---|
| 508 | DS_LD="arm-linux-ld -EL" \
|
---|
| 509 | DS_RL="arm-linux-ranlib" \
|
---|
| 510 | DS_ST="arm-linux-strip"
|
---|