From: David Schleef Date: Wed, 9 Aug 2000 20:45:00 +0000 (+0000) Subject: modbuild changes X-Git-Tag: r0_7_48~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8715d205d449150f08c47ac5458b05581235fed;p=comedi.git modbuild changes --- diff --git a/Makefile.modbuild b/Makefile.modbuild index 8f472c63..f75c8d2a 100644 --- a/Makefile.modbuild +++ b/Makefile.modbuild @@ -7,7 +7,8 @@ # headers # PCMCIADIR = /home/ds/stuff/pcmcia-cs-3.1.15 -ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +#ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +ARCH := ppc .EXPORT_ALL_VARIABLES: CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ @@ -21,6 +22,30 @@ FINDHPATH = $(HPATH)/$(project) HOSTCC =gcc HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer +CROSS_COMPILE = powerpc-linux- + +# +# Include the make variables (CC, etc...) +# + +AS = $(CROSS_COMPILE)as +LD = $(CROSS_COMPILE)ld +CC = $(CROSS_COMPILE)gcc +CPP = $(CC) -E +AR = $(CROSS_COMPILE)ar +NM = $(CROSS_COMPILE)nm +STRIP = $(CROSS_COMPILE)strip +OBJCOPY = $(CROSS_COMPILE)objcopy +OBJDUMP = $(CROSS_COMPILE)objdump +MAKEFILES = $(TOPDIR)/.config +GENKSYMS = /sbin/genksyms +MODFLAGS = -DMODULE +PERL = perl + +export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION KERNELRELEASE ARCH \ + CONFIG_SHELL TOPDIR HPATH HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \ + CPP AR NM STRIP OBJCOPY OBJDUMP MAKE MAKEFILES GENKSYMS MODFLAGS PERL + CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer # use '-fno-strict-aliasing', but only if the compiler can take it CFLAGS += $(shell if $(CC) -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-strict-aliasing"; fi)