File: xmake.sh

package info (click to toggle)
allegro4 2%3A4.0.1-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 17,052 kB
  • ctags: 12,972
  • sloc: ansic: 109,525; asm: 16,672; cpp: 3,221; sh: 1,761; makefile: 556; pascal: 105; perl: 73
file content (33 lines) | stat: -rwxr-xr-x 1,000 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
# By: Henrik Stokseth.
#
# This is a helper script for using a cross compiler to build and install
# the Allegro library. It is currently set up to use the Mingw32
# cross-compiler out of the box but you can edit XC_PATH and INSTALL_BASE
# to use it with for example a djgpp cross-compiler.

# 1. Put here the path on which the cross compiler and other tools
# for the target will be found with standard names.

XC_PATH=/usr/local/cross-tools/i386-mingw32msvc/bin:/usr/local/cross-tools/bin

# 2. Put here the path for where things are to be installed.
# You should have created the lib, info and include directories
# in this directory.

INSTALL_BASE=/usr/local/cross-tools/i386-mingw32msvc

# Set up some environment variables and export them to GNU make.

CROSSCOMPILE=1
MINGDIR=$INSTALL_BASE
DJDIR=$INSTALL_BASE
NATIVEPATH=$PATH
PATH=$XC_PATH:$NATIVEPATH

export CROSSCOMPILE MINGDIR DJDIR NATIVEPATH PATH

# Then run make and pass through all command line parameters to it.

make $*