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 | 9 | ifndef TARGET |
| 10 | 10 | # we're building the native libtcc1.a |
| 11 | 11 | ifdef CONFIG_WIN32 |
| 12 | − ifeq ($(ARCH),x86-64) | |
| 12 | + ifeq ($(ARCH),x86_64) | |
| 13 | 13 | TARGET = x86_64-win32 |
| 14 | 14 | else |
| 15 | 15 | TARGET = i386-win32 |
| 16 | 16 | endif |
| 17 | 17 | else ifeq ($(ARCH),i386) |
| 18 | 18 | TARGET = i386 |
| 19 | − else ifeq ($(ARCH),x86-64) | |
| 19 | + else ifeq ($(ARCH),x86_64) | |
| 20 | 20 | TARGET = x86_64 |
| 21 | 21 | else ifeq ($(ARCH),arm) |
| 22 | 22 | TARGET = arm |
| @@ -83,6 +83,9 @@ $(DIR)/%.o : %.c · 60 unmodified lines | ||
| 83 | 83 | $(DIR)/%.o : %.S |
| 84 | 84 | $(XCC) -c $< -o $@ $(TGT) $(XFLAGS) |
| 85 | 85 | |
| 86 | +$(DIR)/crt1w.o : crt1.c | |
| 87 | +$(DIR)/wincrt1w.o : wincrt1.c | |
| 88 | + | |
| 86 | 89 | $(OBJ) : $(DIR)/exists |
| 87 | 90 | |
| 88 | 91 | %/exists : |