root / trunk / code / projects / unit_tests / Makefile @ 1951
History | View | Annotate | Download (567 Bytes)
1 | 1561 | dsschult | # this is a local makefile |
---|---|---|---|
2 | 789 | dsschult | |
3 | # Relative path to the root directory (containing lib directory) |
||
4 | ifndef COLONYROOT |
||
5 | 1561 | dsschult | COLONYROOT := .. |
6 | 789 | dsschult | |
7 | # Target file name (without extension). |
||
8 | 958 | cmar | TARGET = main |
9 | 789 | dsschult | |
10 | # Uncomment this to use the wireless library |
||
11 | 848 | dsschult | USE_WIRELESS = 1 |
12 | 789 | dsschult | |
13 | # com1 = serial port. Use lpt1 to connect to parallel port. |
||
14 | 1920 | alevkoy | 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 | 789 | dsschult | |
22 | 1561 | dsschult | else |
23 | COLONYROOT := ../$(COLONYROOT) |
||
24 | endif |
||
25 | |||
26 | 1832 | dgurjar | include $(COLONYROOT)/Makefile |