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.mxe 667B

123456789101112131415161718192021222324252627282930
  1. PROGRAM := makewav.exe
  2. MXE_DIR := /opt/mxe
  3. MXE_TARGET := i686-w64-mingw32.static
  4. CC := $(MXE_DIR)/usr/bin/$(MXE_TARGET)-gcc
  5. STRIP := $(MXE_DIR)/usr/bin/$(MXE_TARGET)-strip
  6. CFLAGS := -Os
  7. #CFLAGS := -g -Wall
  8. LDFLAGS := -lm -lportaudio -lwinmm -lsetupapi -lhid -lole32
  9. BUILDDIR := mxe
  10. all: $(BUILDDIR)/$(PROGRAM)
  11. $(BUILDDIR):
  12. mkdir -p $@
  13. $(BUILDDIR)/%.o: %.c $(BUILDDIR)
  14. $(CC) $(CFLAGS) -c -o $@ $<
  15. $(BUILDDIR)/$(PROGRAM): $(BUILDDIR)/queue.o $(BUILDDIR)/makewav.o $(BUILDDIR)/paplay.o $(BUILDDIR)/streambuffer.o
  16. $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
  17. $(STRIP) $@
  18. upx --ultra-brute $@ || :
  19. ls -l $@
  20. clean:
  21. rm -rf $(BUILDDIR)