1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$(BUILDDIR)/%.rock:
        $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $(BUILDDIR)/$*.rock \
                $(filter %.o, $^) \
                $(filter %.a, $+) \
                -lgcc $(PLUGINLDFLAGS) -Wl,-n -Wl,-r
        $(shell arm-elf-eabi-strip --strip-unneeded --strip-debug $@)

or

$(BUILDDIR)/%.rock:
        $(call PRINTS,LD $(@F))$(CC) $(PLUGINFLAGS) -o $(BUILDDIR)/$*.rock \
                $(filter %.o, $^) \
                $(filter %.a, $+) \
                -lgcc $(PLUGINLDFLAGS) -Wl,-n -Wl,-r
        $(shell arm-elf-eabi-strip --strip-unneeded --strip-debug $(BUILDDIR)/$*.rock)