diff --git a/Makefile b/Makefile index 4169313d..ca9299f3 100644 --- a/Makefile +++ b/Makefile @@ -158,8 +158,6 @@ endif all: $(PROGS) $(TCCLIBS) $(TCCDOCS) -$(PROGS) $(TCCLIBS): *.c *.h - # Host Tiny C Compiler tcc$(EXESUF): tcc.o $(LIBTCC) $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC) @@ -190,13 +188,14 @@ $(ARM_VFP_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_VFP $(ARM_EABI_CROSS): DEFINES = -DTCC_TARGET_ARM -DTCC_ARM_EABI -DTCC_ARM_VFP $(ARM64_CROSS): DEFINES = -DTCC_TARGET_ARM64 -$(I386_CROSS): $(I386_FILES) -$(X64_CROSS): $(X86_64_FILES) -$(WIN32_CROSS): $(WIN32_FILES) -$(WIN64_CROSS): $(WIN64_FILES) -$(WINCE_CROSS): $(WINCE_FILES) -$(C67_CROSS): $(C67_FILES) +$(I386_CROSS) $($(I386_CROSS)_LINK): $(I386_FILES) +$(X64_CROSS) $($(X64_CROSS)_LINK): $(X86_64_FILES) +$(WIN32_CROSS) $($(WIN32_CROSS)_LINK): $(WIN32_FILES) +$(WIN64_CROSS) $($(WIN64_CROSS)_LINK): $(WIN64_FILES) +$(WINCE_CROSS) $($(WINCE_CROSS)_LINK): $(WINCE_FILES) +$(C67_CROSS) $($(C67_CROSS)_LINK): $(C67_FILES) $(ARM_FPA_CROSS) $(ARM_FPA_LD_CROSS) $(ARM_VFP_CROSS) $(ARM_EABI_CROSS): $(ARM_FILES) +$($(ARM_FPA_CROSS)_LINK) $($(ARM_FPA_LD_CROSS)_LINK) $($(ARM_VFP_CROSS)_LINK) $($(ARM_EABI_CROSS)_LINK): $(ARM_FILES) $(ARM64_CROSS): $(ARM64_FILES) # libtcc generation and test