Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
#include "uart.h"#include "global.h"#include "buffer.h"#include "avrlibdefs.h"#include "avrlibtypes.h"
#include "uart.h"#include "uart.c"#include "global.h"#include "buffer.h"#include "buffer.c"#include "avrlibdefs.h"#include "avrlibtypes.h"
# List C source files here. (C dependencies are automatically generated.) SRC = $(TARGET).c buffer.c uart.c
SRC = $(TARGET).c buffer.c uart.cBut as it is easy to predict, it again added all code from buffer.c and uart.c to my hex, and it became 2400 bytes instead of 400.
.a
all: $(PRG).a
# make the library file from all of the object files$(PRG).a: $(OBJ) avr-ar -v -ru $(PRG).a $(OBJ)
LIBS = ..\avrlib\lib.a
$(PRG).elf: $(OBJ) avr-gcc -o $@ $^ $(LIBS)