Project

General

Profile

Revision 1518

Added by Brad Neuman over 14 years ago

updated library to add DRAGONFLY_DEBUG stuff
Can now call make debug which will recompile the library with debug flags!

View differences:

Makefile
151 151

  
152 152
# Combine all necessary flags and optional flags.
153 153
# Add target processor to flags.
154
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS)
154
ALL_CFLAGS = -mmcu=$(MCU) -I. $(CFLAGS) $(GENDEPFLAGS) $(GLOBAL_CFLAGS)
155 155
ALL_ASFLAGS = rcs
156 156

  
157 157
# Default target.
......
159 159

  
160 160
dist: all publish
161 161

  
162
debug_dist: ALL_CFLAGS += -DDRAGONFLY_DEBUG
163
debug_dist: test all publish
164

  
165
test:
166
	echo "~~~~~~~ $(ALL_CFLAGS)"
167

  
168

  
162 169
publish:
163 170
	$(COPY) $(TARGET).a $(COLONYROOT)/code/lib/bin
164 171
	$(COPY) *.h $(COLONYROOT)/code/lib/include/$(TARGET)

Also available in: Unified diff