1 csrc = $(wildcard src/*.c)
2 ssrc = $(wildcard src/*.S)
3 obj = $(csrc:.c=.o) $(ssrc:.S=.o)
4 dep = $(csrc:.c=.d) $(ssrc:.S=.d)
10 TCPREFIX = mipsel-linux-gnu-
15 OBJCOPY = $(TCPREFIX)objcopy
17 arch = -march=r3000 -msoft-float -mno-abicalls -mno-shared -fno-pic
19 CFLAGS = $(arch) -pedantic -Wall -g -MMD
21 LDFLAGS = -T psx.ld -print-gc-sections
24 $(OBJCOPY) -O binary $< $@
27 $(LD) -o $@ $(obj) -Map link.map $(LDFLAGS)
29 $(iso): cd/cd.xml cd/system.cnf $(bin)
35 $(CC) $(CFLAGS) -S -o $@ $<
42 rm -f $(obj) $(bin) $(elf) link.map