Zack Buhman 511bfd1d0c remove duplicate start functions
This is now provided by default in saturn/common.mk.

Also updates moved header names, changed bit macro names, and changes
to the common.mk build process.
2023-07-30 18:03:19 +00:00

37 lines
768 B
Makefile

CFLAGS = -I../saturn -fstack-usage
OPT = -O3
LIBGCC = $(shell $(CC) -print-file-name=libgcc.a)
LIB = ../saturn
all:
include $(LIB)/m68k/common.mk
# 200 bytes
%-44100-s16be-1ch-100sample.pcm: Makefile
sox \
-r 44100 -e signed-integer -b 16 -c 1 -n -B \
$@.raw \
synth 101s $* 441 vol -10dB
mv $@.raw $@
# 88200 bytes
%-44100-s16be-1ch-1sec.pcm: Makefile
sox \
-r 44100 -e signed-integer -b 16 -c 1 -n -B \
$@.raw \
synth 1 sin 440 vol -10dB
mv $@.raw $@
%.pcm.o: %.pcm
$(BUILD_BINARY_O)
%.mid.o: %.mid
$(BUILD_BINARY_O)
slot.elf: slot.o sine-44100-s16be-1ch-1sec.pcm.o
interrupt.elf: interrupt.o jojo-11025-s16be-1ch.pcm.o
midi.elf: midi.o sine-44100-s16be-1ch-100sample.pcm.o midi_test-c-major-scale.mid.o f2.mid.o ../midi/parse.o $(LIBGCC)