Revision 1559
Fixed Makefile for circle_spacing behavior. Now links to the repository library.
Makefile | ||
---|---|---|
4 | 4 |
|
5 | 5 |
# Relative path to the root directory (containing lib directory) |
6 | 6 |
ifndef COLONYROOT |
7 |
COLONYROOT = . |
|
7 |
COLONYROOT = ../../..
|
|
8 | 8 |
endif |
9 | 9 |
|
10 | 10 |
# Target file name (without extension). |
11 |
TARGET = template
|
|
11 |
TARGET = circle_spacing
|
|
12 | 12 |
|
13 | 13 |
# Uncomment this to use the wireless library |
14 | 14 |
USE_WIRELESS = 1 |
15 | 15 |
|
16 | 16 |
# com1 = serial port. Use lpt1 to connect to parallel port. |
17 |
#AVRDUDE_PORT = com4 |
|
17 | 18 |
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi) |
18 |
|
|
19 | 19 |
# |
20 |
# |
|
20 | 21 |
################################### |
21 | 22 |
|
22 | 23 |
# Hey Emacs, this is a -*- makefile -*- |
... | ... | |
116 | 117 |
endif |
117 | 118 |
|
118 | 119 |
# Place -I, -L options here |
119 |
CINCS = -I$(COLONYROOT)/Library/include/libdragonfly
|
|
120 |
CINCS += -L$(COLONYROOT)/Library/bin
|
|
120 |
CINCS = -I$(COLONYROOT)/lib/include/libdragonfly
|
|
121 |
CINCS += -L$(COLONYROOT)/lib/bin
|
|
121 | 122 |
ifdef USE_WIRELESS |
122 |
CINCS += -I$(COLONYROOT)/Library/include/libwireless
|
|
123 |
CINCS += -I$(COLONYROOT)/lib/include/libwireless
|
|
123 | 124 |
endif |
124 | 125 |
|
125 | 126 |
#---------------- Compiler Options ---------------- |
... | ... | |
156 | 157 |
PRINTF_LIB_FLOAT = -Wl,-u,vfprintf -lprintf_flt |
157 | 158 |
|
158 | 159 |
# If this is left blank, then it will use the Standard printf version. |
159 |
#PRINTF_LIB =
|
|
160 |
PRINTF_LIB = |
|
160 | 161 |
#PRINTF_LIB = $(PRINTF_LIB_MIN) |
161 |
PRINTF_LIB = $(PRINTF_LIB_FLOAT) |
|
162 |
#PRINTF_LIB = $(PRINTF_LIB_FLOAT)
|
|
162 | 163 |
|
163 | 164 |
|
164 | 165 |
# Minimalistic scanf version |
... | ... | |
375 | 376 |
|
376 | 377 |
# Program the device. |
377 | 378 |
program: $(TARGET).hex $(TARGET).eep |
379 |
#-taskkill /IM ttermpro.exe |
|
380 |
#sleep 1 |
|
378 | 381 |
$(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) |
379 | 382 |
|
380 | 383 |
|
Also available in: Unified diff