Overview
Comment: | Updated to use "tcc" to produce object files on Mac OS X |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
929a77707a2b94178f1f1f116f9f38d7 |
User & Date: | rkeene on 2014-06-21 05:55:08 |
Other Links: | manifest | tags |
Context
2014-06-21
| ||
05:59 | Updated to allow libtcc1.c to compile under TCC check-in: f49bec1323 user: rkeene tags: trunk | |
05:55 | Updated to use "tcc" to produce object files on Mac OS X check-in: 929a77707a user: rkeene tags: trunk | |
05:54 | Updated to process stray slashes more liberally check-in: a67fcde598 user: rkeene tags: trunk | |
Changes
Modified Makefile.in from [39f0082a9e] to [2c6027ccbc].
︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure $(TCC_CONFIGURE_OPTS); \ fi tcc/libtcc.a: tcc/config.h $(MAKE) -C tcc libtcc.a tcc/libtcc1.a: tcc/config.h $(MAKE) -C tcc libtcc1.a tcc4tcl.o: $(srcdir)/tcc4tcl.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h $(CC) $(CPPFLAGS) $(CFLAGS) -o tcc4tcl.o -c $(srcdir)/tcc4tcl.c tcc4tcl.@SHOBJEXT@: tcc4tcl.o tcc/libtcc.a $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcc4tcl.@SHOBJEXT@ tcc4tcl.o tcc/libtcc.a $(LIBS) | > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | cd tcc && $(shell cd $(srcdir) && pwd)/tcc/configure $(TCC_CONFIGURE_OPTS); \ fi tcc/libtcc.a: tcc/config.h $(MAKE) -C tcc libtcc.a tcc/libtcc1.a: tcc/config.h -$(MAKE) -C tcc tcc $(MAKE) -C tcc libtcc1.a tcc4tcl.o: $(srcdir)/tcc4tcl.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h $(CC) $(CPPFLAGS) $(CFLAGS) -o tcc4tcl.o -c $(srcdir)/tcc4tcl.c tcc4tcl.@SHOBJEXT@: tcc4tcl.o tcc/libtcc.a $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHOBJLDFLAGS) -o tcc4tcl.@SHOBJEXT@ tcc4tcl.o tcc/libtcc.a $(LIBS) |
︙ | ︙ |
Modified build/tcc-patches/0.9.26/tcc-0.9.26-crosscompilefixes.diff from [ff4d7758ed] to [8fc05b07c4].
︙ | ︙ | |||
177 178 179 180 181 182 183 | + ;; + esac fi if test "$cygwin" = "yes" ; then echo "#ifndef _WIN32" >> $TMPH diff -uNr tcc-0.9.26.orig/lib/Makefile tcc-0.9.26-1crosscompilefixes/lib/Makefile --- tcc-0.9.26.orig/lib/Makefile 2013-02-15 08:24:00.000000000 -0600 | | | | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | + ;; + esac fi if test "$cygwin" = "yes" ; then echo "#ifndef _WIN32" >> $TMPH diff -uNr tcc-0.9.26.orig/lib/Makefile tcc-0.9.26-1crosscompilefixes/lib/Makefile --- tcc-0.9.26.orig/lib/Makefile 2013-02-15 08:24:00.000000000 -0600 +++ tcc-0.9.26-1crosscompilefixes/lib/Makefile 2014-06-21 00:26:03.490011999 -0500 @@ -25,6 +25,12 @@ XCC = $(CC) endif endif + ifeq ($(ARCH),arm) + TARGET = arm + ifneq ($(TARGETOS),Darwin) + XCC = $(CC) + endif + endif endif endif endif @@ -41,20 +47,19 @@ I386_O = libtcc1.o alloca86.o alloca86-bt.o $(BCHECK_O) X86_64_O = libtcc1.o alloca86_64.o +ARM_O = dummy.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 |
︙ | ︙ | |||
215 216 217 218 219 220 221 | TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE - XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include - XAR = $(DIR)/tiny_libmaker$(EXESUF) + XCC = $(CC) -I$(top_srcdir)/win32 -I$(top_srcdir)/include else ifeq "$(TARGET)" "i386" OBJ = $(addprefix $(DIR)/,$(I386_O)) | | < < < < < | < | | | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE - XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include - XAR = $(DIR)/tiny_libmaker$(EXESUF) + XCC = $(CC) -I$(top_srcdir)/win32 -I$(top_srcdir)/include else ifeq "$(TARGET)" "i386" OBJ = $(addprefix $(DIR)/,$(I386_O)) @@ -66,11 +71,17 @@ TGT = -DTCC_TARGET_X86_64 XCC ?= $(TCC) -B$(TOP) else +ifeq "$(TARGET)" "arm" + OBJ = $(addprefix $(DIR)/,$(ARM_O)) + TGT = -DTCC_TARGET_ARM + XCC ?= $(CC) -I$(TOP) +else $(error libtcc1.a not supported on target '$(TARGET)') endif endif endif endif +endif |
︙ | ︙ |