summaryrefslogtreecommitdiff
path: root/target/native/target.mk
blob: 74746531877460803827b854f9f71a037e7840c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include $(TOPDIR)/mk/kernel-ver.mk
ARCH:=			$(shell uname -m|sed -e "s/i.*86/x86/" -e "s/_\?64//")
CPU_ARCH:=		$(shell gcc -dumpmachine | sed -e s'/-.*//' \
			 -e 's/sparc.*/sparc/' \
	   		 -e 's/arm.*/arm/g' \
	 		 -e 's/m68k.*/m68k/' \
			 -e 's/ppc/powerpc/g' \
			 -e 's/v850.*/v850/g' \
			 -e 's/sh[234]/sh/' \
	   		 -e 's/mips-.*/mips/' \
	  		 -e 's/mipsel-.*/mipsel/' \
			 -e 's/cris.*/cris/' \
			 -e 's/i[3-9]86/i686/' \
	    		)
TARGET_OPTIMIZATION:=	-Os -pipe
TARGET_CFLAGS_ARCH:=    -march=native