OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o)
OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o)
-CC= avr-g++
+CCP= avr-g++
+CC= avr-gcc
CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c
CFLAGS +=
build/%.o: src/%.cpp
@mkdir -p $(dir $@)
- $(CC) $(CFLAGS) -o $@ $<
+ $(CCP) $(CFLAGS) -o $@ $<
# --------------------------------------------------------------------------------
# simulation/debugging with gdb or simuc
OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o)
OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o)
-CC= avr-g++
+CCP= avr-g++
+CC= avr-gcc
CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c
CFLAGS +=
build/%.o: src/%.cpp
@mkdir -p $(dir $@)
- $(CC) $(CFLAGS) -o $@ $<
+ $(CCP) $(CFLAGS) -o $@ $<
# --------------------------------------------------------------------------------
# simulation/debugging with gdb or simuc
OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o)
OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o)
-CC= avr-g++
+CCP= avr-g++
+CC= avr-gcc
CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c
CFLAGS +=
build/%.o: src/%.cpp
@mkdir -p $(dir $@)
- $(CC) $(CFLAGS) -o $@ $<
+ $(CCP) $(CFLAGS) -o $@ $<
# --------------------------------------------------------------------------------
# simulation/debugging with gdb or simuc
OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o)
OBJ_SIM = $(OBJ_SIM_CPP:src/%.c=sim/build/%.o)
-CC= avr-g++
+CCP= avr-g++
+CC= avr-gcc
CFLAGS= -Wall -mmcu=$(DEVICE) -Os -DF_CPU=$(CPU_FREQUENCE) -c
CFLAGS +=
build/%.o: src/%.cpp
@mkdir -p $(dir $@)
- $(CC) $(CFLAGS) -o $@ $<
+ $(CCP) $(CFLAGS) -o $@ $<
# --------------------------------------------------------------------------------
# simulation/debugging with gdb or simuc