Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 538eb0de7a
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.717 kB
GCCFLAGS=-g -Os -Wall -mmcu=atmega168 -Iinclude -I../libnerdkits
LINKFLAGS=
AVRDUDEFLAGS=-c avr109 -p m168 -b 115200 -P /dev/cu.PL2303-0000101D
LINKOBJECTS=../libnerdkits/delay.o ../libnerdkits/lcd.o
all: blockgame-upload
blockgame.hex: blockgame.c src/nkbuttons.c src/nkeeprom.c src/nkrand.c src/nklcd.c src/nktimer.c
make -C ../libnerdkits
avr-gcc ${GCCFLAGS} ${LINKFLAGS} -o blockgame.o \
blockgame.c src/nkbuttons.c src/nkeeprom.c src/nkrand.c \
src/nklcd.c src/nktimer.c ${LINKOBJECTS}
avr-objcopy -j .text -O ihex blockgame.o blockgame.hex
blockgame.ass: blockgame.hex
avr-objdump -S -d blockgame.o > blockgame.ass
blockgame-upload: blockgame.hex
avrdude ${AVRDUDEFLAGS} -U flash:w:blockgame.hex:a
Jump to Line
Something went wrong with that request. Please try again.