Skip to content
Snippets Groups Projects
Commit 4da20a68 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

arduino-nano: add .so support to makefile

parent 26411982
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ endif ...@@ -141,7 +141,7 @@ endif
COMMON_FLAGS += -DBAUD=${uart_baud}UL COMMON_FLAGS += -DBAUD=${uart_baud}UL
OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} OBJECTS = ${SO_TARGETS:.a=.so} ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
%.o : %.cc | include/config.h %.o : %.cc | include/config.h
${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc}
...@@ -149,6 +149,9 @@ OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ...@@ -149,6 +149,9 @@ OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
%.o : %.c | include/config.h %.o : %.c | include/config.h
${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c}
%.so : %.a | include/config.h
${QUIET}${CC} ${COMMON_FLAGS} -o $@ -Wl,--whole-archive ${@:.so=.a} -Wl,--no-whole-archive
build/system.elf: ${OBJECTS} build/system.elf: ${OBJECTS}
${QUIET}mkdir -p build ${QUIET}mkdir -p build
${QUIET}${CXX} ${COMMON_FLAGS} ${CXXFLAGS} -Wl,--gc-sections -o $@ ${OBJECTS} ${QUIET}${CXX} ${COMMON_FLAGS} ${CXXFLAGS} -Wl,--gc-sections -o $@ ${OBJECTS}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment