File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,10 +301,10 @@ ifneq ($(KEEP_TEMPS),1)
301301 @echo "$(CC1) <flags> -o $@ $<"
302302 @$(CPP) $(CPPFLAGS) $< | $(PREPROC) -i $< charmap.txt | $(CC1) $(CFLAGS) -o - - | cat - <(echo -e ".text\n\t.align\t2, 0") | $(AS) $(ASFLAGS) -o $@ -
303303else
304- @$(CPP) $(CPPFLAGS) $< -o $*.i
305- @$(PREPROC) $*.i charmap.txt | $(CC1) $(CFLAGS) -o $*.s
306- @echo -e ".text\n\t.align\t2, 0\n" >> $*.s
307- $(AS) $(ASFLAGS) -o $@ $*.s
304+ @$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$ *.i
305+ @$(PREPROC) $(C_BUILDDIR)/$ *.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/ $*.s
306+ @echo -e ".text\n\t.align\t2, 0\n" >> $(C_BUILDDIR)/$ *.s
307+ $(AS) $(ASFLAGS) -o $@ $(C_BUILDDIR)/$ *.s
308308endif
309309
310310$(C_BUILDDIR ) /% .d : $(C_SUBDIR ) /% .c
You can’t perform that action at this time.
0 commit comments