summaryrefslogtreecommitdiff
path: root/bootloader/midi/Makefile
diff options
context:
space:
mode:
authorbzztbomb <skinny@knowhere.net>2011-04-05 19:57:16 -0700
committerbzztbomb <skinny@knowhere.net>2011-04-05 19:57:16 -0700
commit73e16950d73578900d54f3470b57402a9e908c30 (patch)
tree4e24dd9b04bd432139c3ed61866459ac77e4024a /bootloader/midi/Makefile
parent6827a350052baf3999cfa336411f5ec89bb9e769 (diff)
Public firmware release.
Diffstat (limited to 'bootloader/midi/Makefile')
-rw-r--r--bootloader/midi/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/bootloader/midi/Makefile b/bootloader/midi/Makefile
new file mode 100644
index 0000000..e292826
--- /dev/null
+++ b/bootloader/midi/Makefile
@@ -0,0 +1,41 @@
+MCU=atmega8
+CC=avr-gcc
+OBJCOPY=avr-objcopy
+# optimize for size:
+CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologues
+PORT=/dev/ttyUSB0
+PART=ATmega8
+UISP = uisp -dprog=stk500 -dserial=/dev/ttyUSB0 -dpart=$(PART)
+
+VERSION = 0.2.develop
+DISTDIR = avr-midi.${VERSION}
+
+#-------------------
+current: examples
+#-------------------
+
+examples:
+ cd examples && make
+
+.c.o:
+ @echo CC $<
+ @$(CC) -c $(CFLAGS) -Os -o $*.o $<
+
+dist: clean
+ mkdir -p ${DISTDIR}
+ cp -R COPYING Makefile *.c *.h README examples/ test/ bytequeue/ ${DISTDIR}
+ tar -czf ${DISTDIR}.tar.gz ${DISTDIR}
+ rm -rf ${DISTDIR}
+
+post: dist
+ scp ${DISTDIR}.tar.gz x37v.info:x37v.info/projects/microcontroller/avr-midi/files/
+ scp basic.c x37v.info:x37v.info/projects/microcontroller/avr-midi/
+
+clean:
+ rm -f *.o *.map *.out *.hex *.tar.gz */*.o
+ cd examples/ && make clean
+ cd test/ && make clean
+
+.PHONY: examples
+
+all: examples