aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-02-28 16:55:10 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-11-05 19:29:43 +0800
commitfbb4841606b555311048229cf26de22ea5cf0682 (patch)
treee46f040c43768e22a37c1beeb0e2c07d12d1be87 /lib/Makefile
parentb7d017dec89984b8536139ec6053fc0255413c27 (diff)
downloadtinycc-fbb4841606b555311048229cf26de22ea5cf0682.tar.gz
tinycc-fbb4841606b555311048229cf26de22ea5cf0682.tar.bz2
Add __clear_cache implementation in libtcc1
Add __clear_cache function for flushing caches to libtcc1.
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 300fa46..dfd01c3 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -24,6 +24,10 @@ ifndef TARGET
ifneq ($(TARGETOS),Darwin)
XCC = $(CC)
endif
+ else
+ ifeq ($(ARCH),arm)
+ TARGET = arm
+ endif
endif
endif
endif
@@ -41,6 +45,7 @@ cross : TCC = $(TOP)/$(TARGET)-tcc$(EXESUF)
I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O)
X86_64_O = libtcc1.o alloca86_64.o
+ARM_O = libtcc1.o
WIN32_O = $(I386_O) crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o
WIN64_O = $(X86_64_O) crt1.o wincrt1.o dllcrt1.o dllmain.o chkstk.o
@@ -66,11 +71,17 @@ ifeq "$(TARGET)" "x86_64"
TGT = -DTCC_TARGET_X86_64
XCC ?= $(TCC) -B$(TOP)
else
+ifeq "$(TARGET)" "arm"
+ OBJ = $(addprefix $(DIR)/,$(ARM_O))
+ TGT = -DTCC_TARGET_ARM
+ XCC ?= $(TCC) -B$(TOP)
+else
$(error libtcc1.a not supported on target '$(TARGET)')
endif
endif
endif
endif
+endif
XFLAGS = $(CPPFLAGS) $(CFLAGS) $(TGT)