Revision 1097
Makefile OS autodetection
Makefile | ||
---|---|---|
14 | 14 |
USE_WIRELESS = 1 |
15 | 15 |
|
16 | 16 |
# com1 = serial port. Use lpt1 to connect to parallel port. |
17 |
AVRDUDE_PORT = com4 |
|
17 |
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi) |
|
18 |
|
|
18 | 19 |
# |
19 |
# |
|
20 | 20 |
################################### |
21 | 21 |
|
22 | 22 |
# Hey Emacs, this is a -*- makefile -*- |
Also available in: Unified diff