12 |
# This is the debhelper compatability version to use. |
# This is the debhelper compatability version to use. |
13 |
export DH_COMPAT=2 |
export DH_COMPAT=2 |
14 |
ARCHT:=$(shell dpkg --print-architecture) |
ARCHT:=$(shell dpkg --print-architecture) |
15 |
|
|
16 |
MCC:=gcc |
MCC:=gcc |
17 |
ifeq ($(ARCHT),arm) |
ifeq ($(ARCHT),arm) |
18 |
MCC:=gcc-3.0 |
MCC:=gcc-3.0 |
20 |
ifeq ($(ARCHT),hppa) |
ifeq ($(ARCHT),hppa) |
21 |
MCC:=gcc-3.1 |
MCC:=gcc-3.1 |
22 |
endif |
endif |
23 |
|
ifeq ($(ARCHT),ia64) |
24 |
|
MCC:=gcc-3.1 |
25 |
|
endif |
26 |
|
|
27 |
RELOC=locbfd |
RELOC=locbfd |
28 |
ifeq ($(ARCHT),alpha) |
ifeq ($(ARCHT),alpha) |
29 |
RELOC=dlopen |
RELOC=dlopen |
49 |
chmod -R +x gmp3/* |
chmod -R +x gmp3/* |
50 |
[ "$(ARCHT)" != "i386" ] || ( cd gmp3 && CC=$(MCC) ./configure --build=i486-unknown-linux-gnu ) |
[ "$(ARCHT)" != "i386" ] || ( cd gmp3 && CC=$(MCC) ./configure --build=i486-unknown-linux-gnu ) |
51 |
CC=$(MCC) ./configure --disable-statsysbfd --enable-$(RELOC) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
CC=$(MCC) ./configure --disable-statsysbfd --enable-$(RELOC) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
52 |
|
[ "$(ARCHT)" != "ia64" ] || ( cd o && gcc -c -Wall -DVOL=volatile -I. -fsigned-char -fwritable-strings -pipe -O -fomit-frame-pointer -I../h -I../gcl-tk num_log.c ) |
53 |
touch configure-stamp |
touch configure-stamp |
54 |
|
|
55 |
build: build-stamp |
build: build-stamp |