orbea / zippy / sofort

Forked from zippy/sofort 2 years ago
Clone

Blame sysinfo/compiler/clang.mk

f46039
ifeq ($(CROSS_COMPILE)x,x)
b46bd6
	CROSS_HOST	=
f46039
	CROSS_HOST_SPEC =
dc909f
else ifeq ($(CROSS_HOST)x,x)
b46bd6
	CROSS_HOST	= $(HOST)
f46039
	CROSS_HOST_SPEC = --target=$(HOST)
dc909f
else
dc909f
	CROSS_HOST_SPEC = --target=$(CROSS_HOST)
f46039
endif
f46039
f46039
f46039
ifeq ($(USER_CC)x,x)
f46039
	CC	= $(NATIVE_CC) $(CROSS_HOST_SPEC)
f46039
else
f46039
	CC	= $(USER_CC) $(CROSS_HOST_SPEC)
f46039
endif
f46039
f46039
ifeq ($(USER_CPP)x,x)
f46039
	CPP	= $(NATIVE_CC) $(CROSS_HOST_SPEC) -E
f46039
else
f46039
	CPP	= $(USER_CPP) $(CROSS_HOST_SPEC) -E
f46039
endif
f46039
f46039
ifeq ($(USER_CXX)x,x)
f46039
	CXX	= $(NATIVE_CC)++ $(CROSS_HOST_SPEC)
f46039
else
f46039
	CXX	= $(USER_CXX) $(CROSS_HOST_SPEC)
f46039
endif
f46039
f46039
b46bd6
CFLAGS_PIC	= -fPIC