Forgot about it. It allows to compile several sources (and other .o's) to one single .o file; tcc -r -o all.o f1.c f2.c f3.S o4.o ... Also: - option -fold-struct-init-code removed, no effect anymore - (tcc_)set_environment() moved to tcc.c - win32/lib/(win)crt1 minor fix & add dependency - debug line output for asm (tcc -c -g xxx.S) enabled - configure/Makefiles: x86-64 -> x86_64 changes - README: cleanup
Showing the changes to lib (1 of 18 files). Show all
Unified · Split
| @@ -9,14 +9,14 @@ VPATH = $(TOPSRC)/lib $(TOPSRC)/win32/lib · 8 unmodified lines | |||
| 9 | ifndef TARGET | 9 | ifndef TARGET |
| 10 | # we're building the native libtcc1.a | 10 | # we're building the native libtcc1.a |
| 11 | ifdef CONFIG_WIN32 | 11 | ifdef CONFIG_WIN32 |
| 12 | ifeq ($(ARCH),x86-64) | 12 | ifeq ($(ARCH),x86_64) |
| 13 | TARGET = x86_64-win32 | 13 | TARGET = x86_64-win32 |
| 14 | else | 14 | else |
| 15 | TARGET = i386-win32 | 15 | TARGET = i386-win32 |
| 16 | endif | 16 | endif |
| 17 | else ifeq ($(ARCH),i386) | 17 | else ifeq ($(ARCH),i386) |
| 18 | TARGET = i386 | 18 | TARGET = i386 |
| 19 | else ifeq ($(ARCH),x86-64) | 19 | else ifeq ($(ARCH),x86_64) |
| 20 | TARGET = x86_64 | 20 | TARGET = x86_64 |
| 21 | else ifeq ($(ARCH),arm) | 21 | else ifeq ($(ARCH),arm) |
| 22 | TARGET = arm | 22 | TARGET = arm |
| @@ -83,6 +83,9 @@ $(DIR)/%.o : %.c · 60 unmodified lines | |||
| 83 | $(DIR)/%.o : %.S | 83 | $(DIR)/%.o : %.S |
| 84 | $(XCC) -c $< -o $@ $(TGT) $(XFLAGS) | 84 | $(XCC) -c $< -o $@ $(TGT) $(XFLAGS) |
| 85 | 85 | ||
| 86 | $(DIR)/crt1w.o : crt1.c | ||
| 87 | $(DIR)/wincrt1w.o : wincrt1.c | ||
| 88 | |||
| 86 | $(OBJ) : $(DIR)/exists | 89 | $(OBJ) : $(DIR)/exists |
| 87 | 90 | ||
| 88 | %/exists : | 91 | %/exists : |