summaryrefslogtreecommitdiff
path: root/src/arch/atmega2560
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/atmega2560')
-rw-r--r--src/arch/atmega2560/Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/atmega2560/Makefile.inc b/src/arch/atmega2560/Makefile.inc
index d78db66..acfd65a 100644
--- a/src/arch/atmega2560/Makefile.inc
+++ b/src/arch/atmega2560/Makefile.inc
@@ -135,10 +135,10 @@ COMMON_FLAGS += -DBAUD=${uart_baud}UL
OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
-.cc.o:
+%.o : %.cc | include/config.h
${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc}
-.c.o:
+%.o : %.c | include/config.h
${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c}
build/system.elf: ${OBJECTS}