root / trunk / code / projects / unit_tests / Makefile @ 1951
History | View | Annotate | Download (567 Bytes)
1 |
# this is a local makefile |
---|---|
2 |
|
3 |
# Relative path to the root directory (containing lib directory) |
4 |
ifndef COLONYROOT |
5 |
COLONYROOT := .. |
6 |
|
7 |
# Target file name (without extension). |
8 |
TARGET = main |
9 |
|
10 |
# Uncomment this to use the wireless library |
11 |
USE_WIRELESS = 1 |
12 |
|
13 |
# com1 = serial port. Use lpt1 to connect to parallel port. |
14 |
AVRDUDE_PORT = \ |
15 |
$(shell if uname -s | grep -qi w32; \ |
16 |
then echo 'COM4'; \ |
17 |
elif uname -s | grep -qi Linux; \ |
18 |
then echo '/dev/ttyUSB0'; \ |
19 |
else echo '/dev/tty.usbserial-*'; \ |
20 |
fi) |
21 |
|
22 |
else |
23 |
COLONYROOT := ../$(COLONYROOT) |
24 |
endif |
25 |
|
26 |
include $(COLONYROOT)/Makefile |