I'd like to include bits of libgcc piecemeal--I don't want to "accidentally" start depending on libgcc bits that I'm not aware of. Reworked division so that it uses the on-chip division register.
18 lines
295 B
Makefile
18 lines
295 B
Makefile
CFLAGS = -Isaturn -Imath
|
|
OPT = -O3
|
|
LIBGCC = $(shell $(CC) -print-file-name=libgcc.a)
|
|
|
|
all: raytracing.iso
|
|
|
|
LIB = ./saturn
|
|
include $(LIB)/common.mk
|
|
|
|
sh/lib1funcs.o: CFLAGS += -DL_ashiftrt
|
|
|
|
raytracing.elf: main-saturn.o raytracing.o sh/lib1funcs.o
|
|
|
|
# clean
|
|
clean: clean-sh
|
|
clean-sh:
|
|
rm -f sh/*.o
|