NAME=crumb128-1_at90can128
DEVICE=at90can128
AVRDUDE_DEVICE=c128
-#CPU_FREQUENCY=14745600
-CPU_FREQUENCY=16000000
+#CPU_FREQUENCE=14745600
+CPU_FREQUENCE=16000000
BAUDRATE=115200
# --------------------------------------------------------------------------------
SRC= $(wildcard src/*.c src/*.cpp src/*/*.c src/*/*.cpp)
HDR= $(wildcard src/*.h src/*.hpp src/*/*.h src/*/*.hpp)
-MAINSRC= $(wildcard src/main.c src/main.cpp)
+MAINSRC= $(wildcard src/main.c src/main.cpp)
OBJ_CPP = $(SRC:src/%.cpp=build/%.o)
OBJ = $(OBJ_CPP:src/%.c=build/%.o)
OBJ_SIM_CPP = $(SRC:src/%.cpp=sim/build/%.o)
DATE_USED=
ifneq ($(shell cat $(MAINSRC) | grep __DATE__),)
DATE_USED=true
-endif
+endif
TIME_USED=
ifneq ($(shell cat $(MAINSRC) | grep __TIME__),)
TIME_USED=true
-endif
+endif
ifeq (true, $(filter true, $(DATE_USED) $(TIME_USED)))
build/main.o: $(MAIN_SRC) $(SRC) $(HDR)