mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
modify to work on etch, identify architecture host and build with dpkg-architecture
This commit is contained in:
parent
cdc94e3962
commit
99efa437be
18
debian/rules
vendored
18
debian/rules
vendored
@ -5,25 +5,20 @@
|
|||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
|
|
||||||
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
||||||
HOST=$(shell uname -m)
|
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||||
ifeq ($(HOST),i686)
|
|
||||||
ifeq ($(DEB_BUILD_ARCH),i386)
|
|
||||||
HOST=i386
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(DEB_BUILD_ARCH),$(HOST))
|
ifeq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH))
|
||||||
CROSS_COMPILE=
|
CROSS_COMPILE=
|
||||||
else
|
else
|
||||||
CROSS_COMPILE=$(DEB_BUILD_ARCH)-linux-
|
CROSS_COMPILE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)-
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HOST),m68k)
|
ifeq ($(DEB_BUILD_ARCH),m68k)
|
||||||
M68K_CROSS_COMPILE=
|
M68K_CROSS_COMPILE=
|
||||||
target=all
|
target=all
|
||||||
target_install=install
|
target_install=install
|
||||||
else
|
else
|
||||||
M68K_CROSS_COMPILE=m68k-linux-
|
M68K_CROSS_COMPILE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE -am68k)-
|
||||||
M68K_GCC_PATH=$(shell $(M68K_CROSS_COMPILE)gcc -dumpversion)
|
M68K_GCC_PATH=$(shell $(M68K_CROSS_COMPILE)gcc -dumpversion)
|
||||||
ifeq ($(M68K_GCC_PATH),)
|
ifeq ($(M68K_GCC_PATH),)
|
||||||
target=docs tools
|
target=docs tools
|
||||||
@ -40,8 +35,7 @@ build: build-stamp
|
|||||||
build-stamp:
|
build-stamp:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
# Add here commands to compile the package.
|
# Add here commands to compile the package.
|
||||||
$(MAKE) M68K_CROSS_COMPILE="$(M68K_CROSS_COMPILE)" CROSS_COMPILE="$(CROSS_COMPILE)" $(target)
|
$(MAKE) M68K_CROSS_COMPILE="$(M68K_CROSS_COMPILE)" CROSS_COMPILE="$(CROSS_COMPILE)" CC=$(CROSS_COMPILE)gcc AS=$(CROSS_COMPILE)as ld=$(CROSS_COMPILE)ld $(target)
|
||||||
|
|
||||||
touch build-stamp
|
touch build-stamp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user