Project

General

Profile

Revision 1345

Added by Rich Hong about 10 years ago

Final spline code for master/slave

updated outdated libdragonfly and libwireless

View differences:

Makefile
1 1
############################
2 2
### Update this Section ####
3 3
############################
4

  
5 4
COLONYROOT = ../../../..
6 5

  
7 6
# Target file name (without extension).
8 7
TARGET = libwireless
8
COLONET_TARGET = libwireless_colonet
9 9

  
10 10
############################
11
# don't touch this unless you know what you're doing.
11 12

  
12 13
CDEFS = 
13 14

  
......
48 49
#     Native formats for AVR-GCC's -g are dwarf-2 [default] or stabs.
49 50
#     AVR Studio 4.10 requires dwarf-2.
50 51
#     AVR [Extended] COFF format requires stabs, plus an avr-objcopy run.
51
DEBUG = 
52
DEBUG =
52 53
# dwarf-2
53 54

  
54 55
# List any extra directories to look for include files here.
......
155 156

  
156 157
# Combine all necessary flags and optional flags.
157 158
# Add target processor to flags.
158
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS)
159
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) -Wall $(GENDEPFLAGS)
159 160
ALL_ASFLAGS = rcs
160 161

  
161 162
# Default target.
......
165 166

  
166 167
publish:
167 168
	$(COPY) $(TARGET).a $(COLONYROOT)/code/lib/bin
168
	$(COPY) *.c $(COLONYROOT)/code/lib/src/$(TARGET)
169 169
	$(COPY) *.h $(COLONYROOT)/code/lib/include/$(TARGET)
170 170

  
171 171
docs:
......
176 176
	$(AR) $(ALL_ASFLAGS) $(TARGET).a $(OBJ)
177 177

  
178 178
computer:
179
	gcc *.c -g -I. -c
179
	gcc *.c -Wall -Wshadow -Wextra -g -I. -c
180 180
	ar rcs $(TARGET).a $(OBJ)
181 181

  
182
# we should fine a better way to do this.....
183
bayboard:
184
	avr-gcc *.c -DBAYBOARD -mmcu=atmega164p -I. -DF_CPU=8000000UL -DROBOT -I../../../../code/lib/include/libbayboard \
185
			-L../../../../code/lib/bin/bayboard -Wall -Wshadow -Wextra -std=gnu99 -MD -MP -MF -c
186
	avr-ar rcs $(TARGET).a $(OBJ)
187

  
188
colonet:
189
	g++ -Wall -Wshadow -Wextra *.c -g -I. -c
190
	ar rcs $(COLONET_TARGET).a $(OBJ)
191

  
182 192
# Eye candy.
183 193
# AVR Studio 3.x does not check make's exit code but relies on
184 194
# the following magic strings to be generated by the compile job.
......
204 214
	@echo
205 215
	@echo $(MSG_CLEANING)
206 216
	$(REMOVE) $(TARGET).a
217
	$(REMOVE) $(COLONET_TARGET).a
207 218
	$(REMOVE) $(OBJ)
208 219
	$(REMOVE) $(LST)
209 220
	$(REMOVE) $(SRC:.c=.s)

Also available in: Unified diff