aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-04 16:11:17 +0100
committergrischka <grischka>2013-02-04 16:24:58 +0100
commit3186455599043938d765b4cc9b92af5fde7241cd (patch)
tree07a51ca78fce6db0b5286910c33f9c59830f96a0 /Makefile
parent4c2941d2486f0635aa70de1d429594b1e0b32186 (diff)
downloadtinycc-3186455599043938d765b4cc9b92af5fde7241cd.tar.gz
tinycc-3186455599043938d765b4cc9b92af5fde7241cd.tar.bz2
Makefile: allow CONFIG_LDDIR=lib64 configuration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d6a0a28..c3346de 100644
--- a/Makefile
+++ b/Makefile
@@ -43,17 +43,19 @@ endif
endif
ifeq ($(ARCH),i386)
-NATIVE_DEFINES=-DTCC_TARGET_I386
-NATIVE_DEFINES+=$(if $(wildcard /lib/i386-linux-gnu),-DCONFIG_MULTIARCHDIR=\"i386-linux-gnu\")
-NATIVE_DEFINES+=$(if $(wildcard /lib/i386-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"i386-kfreebsd-gnu\")
-NATIVE_DEFINES+=$(if $(wildcard /lib/i386-gnu),-DCONFIG_MULTIARCHDIR=\"i386-gnu\")
+NATIVE_DEFINES=-DTCC_TARGET_I386
+NATIVE_DEFINES+=\
+ $(if $(wildcard /lib/i386-linux-gnu),-DCONFIG_MULTIARCHDIR=\"i386-linux-gnu\"\
+ $(if $(wildcard /lib/i386-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"i386-kfreebsd-gnu\"\
+ $(if $(wildcard /lib/i386-gnu),-DCONFIG_MULTIARCHDIR=\"i386-gnu\")))
CFLAGS+=-m32
else ifeq ($(ARCH),x86-64)
NATIVE_DEFINES=-DTCC_TARGET_X86_64
CFLAGS+=-m64
-NATIVE_DEFINES+=$(if $(wildcard /usr/lib64),-DCONFIG_LDDIR=\"lib64\")
-NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-linux-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-linux-gnu\")
-NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-kfreebsd-gnu\")
+NATIVE_DEFINES+=\
+ $(if $(wildcard /usr/lib64),-DCONFIG_LDDIR=\"lib64\"\
+ $(if $(wildcard /lib/x86_64-linux-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-linux-gnu\"\
+ $(if $(wildcard /lib/x86_64-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-kfreebsd-gnu\")))
endif
ifeq ($(ARCH),arm)