aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorAndrei Warkentin <andrey.warkentin@gmail.com>2017-03-28 01:58:42 -0400
committerAndrei Warkentin <awarkentin@awarkentin-mba.local>2017-04-25 13:55:18 +0300
commit91cd148a05e2c492a02eb77b12a2581b87bc9822 (patch)
tree9180f497ced5f98a481def42655f5e12488c2ef4 /lib/Makefile
parent0ac29b53dc038408b08e0f8515ae6edabc145f76 (diff)
downloadtinycc-91cd148a05e2c492a02eb77b12a2581b87bc9822.tar.gz
tinycc-91cd148a05e2c492a02eb77b12a2581b87bc9822.tar.bz2
tcc: early OSX native support
- build scripts - working '-run' mode, e.g.: ./tcc -B. -I./include -I. -I.. -D_ANSI_SOURCE -run examples/ex1.c Note: we don't bother parsing Mach-O/Fat images yet. We blindly dlopen the image. Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 9861743..2ac3126 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -46,6 +46,9 @@ TGT-i386 = -DTCC_TARGET_I386
OBJ-x86_64 = $(X86_64_O)
TGT-x86_64 = -DTCC_TARGET_X86_64
+OBJ-x86_64-osx = $(X86_64_O)
+TGT-x86_64-osx = -DTCC_TARGET_X86_64 -DTCC_TARGET_MACHO
+
OBJ-arm = $(ARM_O)
TGT-arm = -DTCC_TARGET_ARM