67cc2f7a2e96b5cab5c014380d584d32b1244b52
9 CFLAGS
=-g
-mmcu
=$(MCU
) -Wall
-Wstrict-prototypes
-Os
-mcall-prologues
13 $(PROJECT
).hex
: $(PROJECT
).out
14 $(OBJCOPY
) -R .eeprom
-O ihex
$(PROJECT
).out
$(PROJECT
).hex
15 $(PROJECT
).out
: $(PROJECT
).o
16 $(CC
) $(CFLAGS
) -o
$(PROJECT
).out
-Wl
,-Map
,$(PROJECT
).map
$(PROJECT
).o
17 $(PROJECT
).o
: $(PROJECT
).c
18 $(CC
) $(CFLAGS
) -Os
-c
$(PROJECT
).c
20 $(CC
) $(CFLAGS
) -O
-S
$(PROJECT
).c
21 # you need to erase first before loading the program.
22 # load (program) the software into the eeprom:
24 $(RESET
) && stty
-F
$(PORT
) 19200 hupcl
&& sleep
2 && stty
-F
$(PORT
) 19200 -hupcl
&& sleep
2 || true
25 avrdude
-cstk500v1
-P
$(PORT
) -b19200
-p
$(MCU
) -Uflash
:w
:$(PROJECT
).hex
:i ||
$(MAKE
) RESET
=true MAKE
=true load
26 # uisp -dlpt=/dev/parport0 --erase --upload --verify if=$(PROJECT).hex -dprog=dapa -v=3 --hash=12
29 rm -f
*.o
*.map
*.out
*.hex
This page took 0.203225 seconds and 3 git commands to generate.