tool to upload data to a SuperCharger cartridge
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 427B

1234567891011121314151617181920212223
  1. PROGRAM = makewav
  2. CC := gcc
  3. CFLAGS := -Os -g -Wall
  4. #CFLAGS := -g -Wall
  5. LDFLAGS := -lm -lportaudio
  6. BUILDDIR := obj
  7. all: $(BUILDDIR)/$(PROGRAM)
  8. $(BUILDDIR):
  9. mkdir -p $@
  10. $(BUILDDIR)/%.o: %.c $(BUILDDIR)
  11. $(CC) $(CFLAGS) -c -o $@ $<
  12. $(BUILDDIR)/$(PROGRAM): $(BUILDDIR)/queue.o $(BUILDDIR)/makewav.o $(BUILDDIR)/paplay.o $(BUILDDIR)/streambuffer.o
  13. $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
  14. clean:
  15. rm -rf $(BUILDDIR)