diff options
| author | PikalaxALT <pikalaxalt@gmail.com> | 2019-09-03 16:48:12 -0400 |
|---|---|---|
| committer | huderlem <huderlem@gmail.com> | 2019-09-05 20:48:48 -0500 |
| commit | 900a51932d7ed6dd53942e0ebef046ef628b6b44 (patch) | |
| tree | 218a136acf50727c89ca3c0ff2febf10f5ca094a /Makefile | |
| parent | f3bed6045e57fad4b930aae7fe97e1cf0dc28305 (diff) | |
Don't look for src/crt0.c, it doesn't exist
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -229,7 +229,7 @@ endif ifeq ($(NODEP),1) $(C_BUILDDIR)/%.o: c_dep := else -$(C_BUILDDIR)/%.o: c_dep = $(shell $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c) +$(C_BUILDDIR)/%.o: c_dep = $(shell [[ -f $(C_SUBDIR)/$*.c ]] && $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c) endif ifeq ($(DINFO),1) @@ -245,7 +245,7 @@ $(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep) ifeq ($(NODEP),1) $(C_BUILDDIR)/%.o: c_asm_dep := else -$(C_BUILDDIR)/%.o: c_asm_dep = $(shell $(SCANINC) -I "" $(C_SUBDIR)/$*.s) +$(C_BUILDDIR)/%.o: c_asm_dep = $(shell [[ -f $(C_SUBDIR)/$*.s ]] && $(SCANINC) -I "" $(C_SUBDIR)/$*.s) endif $(C_BUILDDIR)/%.o: $(C_SUBDIR)/%.s $$(c_asm_dep) |
