CFILES = $(call FIXPATH,\
io/init.c \
+ io/filesystem.c \
io/pi_thread.c \
+ io/si_thread.c \
os/fbtext.c \
os/main.c \
os/mm.c \
os/time.c \
rcp/vi.c \
sp/init.c \
+ sp/sp_thread.c \
)
UCODES = $(call FIXPATH,\
%.o: %.rsp %.rsps
@echo $(call FIXPATH,"Assembling: $(ROM_NAME)/$@")
- @$(CPP) -E -Iucodes $< | $(RSPASM) -o $(<:.rsp=.bin) -
+ @$(CPP) -E -Iucodes $< > $(<:.rsp=.rsppch)
+ @$(RSPASM) $(<:.rsp=.rsppch) -o $(<:.rsp=.bin)
@$(CC) -x assembler-with-cpp $(CFLAGS) $(OPTFLAGS) -MMD -c $(<:.rsp=.rsps) -o $@
#