#The name of the file which contains main, without the file suffix
TARGET=sndngnex
#TARGET=soundtest1

.PHONY: all clean

all: $(TARGET).vb

clean:
	rm $(TARGET).vb $(TARGET).o

$(TARGET).vb: $(TARGET).o

$(TARGET).o: $(TARGET).c
	v810-gcc -Wall -nodefaultlibs -mv810 -xc -o $(TARGET).o $(TARGET).c
	v810-objcopy -S -O binary $(TARGET).o $(TARGET).vb
