Project

General

Profile

Revision 668

Updated port of wireless library to bay boards.

View differences:

Makefile
73 73
CINCS = -I$(COLONYROOT)/code/lib/include/libdragonfly
74 74
CINCS += -L$(COLONYROOT)/code/lib/bin
75 75

  
76
CBBINCS = -I$(COLONYROOT)/code/projects/libbayboard
77
CBBINCS += -L$(COLONYROOT)/code/projects/libbayboard
76 78

  
79

  
77 80
#---------------- Compiler Options ----------------
78 81
#  -g*:          generate debugging information
79 82
#  -O*:          optimization level
......
83 86
#    -adhlns...: create assembler listing
84 87
CFLAGS =
85 88
#CFLAGS += -g$(DEBUG)
86
CFLAGS += $(CDEFS) $(CINCS)
89
CFLAGS += $(CDEFS)
87 90
CFLAGS += -O$(OPT)
88 91
CFLAGS += -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
89 92
CFLAGS += -Wall -Wstrict-prototypes
......
146 149

  
147 150
# Define all object files.
148 151
OBJ = $(SRC:.c=.o) $(ASRC:.S=.o) 
152
OBJBB = $(SRC:.c=.obb) $(ASRC:.S=.obb) 
149 153

  
150 154
# Define all listing files.
151 155
LST = $(SRC:.c=.lst) $(ASRC:.S=.lst) 
......
155 159

  
156 160
# Combine all necessary flags and optional flags.
157 161
# Add target processor to flags.
158
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) -Wall $(GENDEPFLAGS)
162
ALL_CFLAGS = -mmcu=atmega128 -I. $(CFLAGS) $(CINCS) -Wall $(GENDEPFLAGS)
163
ALL_BBCFLAGS = -DBAYBOARD -mmcu=atmega164p -I. $(CFLAGS) $(CBBINCS) -Wall $(GENDEPFLAGS)
159 164
ALL_ASFLAGS = rcs
160 165

  
161 166
# Default target.
162 167
all: begin build end
168
bayboard: begin buildbayboard end
163 169

  
164 170
dist: all publish
165 171

  
......
175 181
build: $(OBJ)
176 182
	$(AR) $(ALL_ASFLAGS) $(TARGET).a $(OBJ)
177 183

  
184
buildbayboard: $(OBJBB)
185
	$(AR) $(ALL_ASFLAGS) $(TARGET).a $(OBJ)
186

  
178 187
computer:
179 188
	gcc *.c -Wall -g -I. -c
180 189
	ar rcs $(TARGET).a $(OBJ)
......
200 209
	@echo $(MSG_COMPILING) $<
201 210
	$(CC) -c $(ALL_CFLAGS) $< -o $@ 
202 211

  
212
%.obb : %.c
213
	@echo
214
	@echo $(MSG_COMPILING) $<
215
	$(CC) -c $(ALL_BBCFLAGS) $< -o $@ 
203 216

  
217

  
204 218
# Target: clean project.
205 219
clean: begin clean_list end
206 220

  
......
209 223
	@echo $(MSG_CLEANING)
210 224
	$(REMOVE) $(TARGET).a
211 225
	$(REMOVE) $(OBJ)
226
	$(REMOVE) $(OBJBB)
212 227
	$(REMOVE) $(LST)
213 228
	$(REMOVE) $(SRC:.c=.s)
214 229
	$(REMOVE) $(SRC:.c=.d)

Also available in: Unified diff