1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

eclipse.inc.mk: Split eclipse support into it's own file.

To keep Makefile.include clean and to be consistent with other tools,
the Eclipse IDE support is put in a separate file.
This commit is contained in:
Juan Carrano 2018-12-05 15:22:42 +01:00
parent b271b0d670
commit e666c3864c
2 changed files with 11 additions and 9 deletions

View File

@ -565,15 +565,8 @@ objdump:
$(call check_cmd,$(OBJDUMP),Objdump program) $(call check_cmd,$(OBJDUMP),Objdump program)
$(OBJDUMP) $(OBJDUMPFLAGS) $(ELFFILE) | less $(OBJDUMP) $(OBJDUMPFLAGS) $(ELFFILE) | less
# Generate an XML file containing all macro definitions and include paths for # Support Eclipse IDE.
# use in Eclipse CDT include $(RIOTMAKE)/eclipse.inc.mk
.PHONY: eclipsesym eclipsesym.xml
eclipsesym: $(CURDIR)/eclipsesym.xml
eclipsesym.xml: $(CURDIR)/eclipsesym.xml
$(CURDIR)/eclipsesym.xml: FORCE
$(Q)printf "%s\n" $(CC) $(CFLAGS_WITH_MACROS) $(INCLUDES) | \
$(RIOTTOOLS)/eclipsesym/cmdline2xml.sh > $@
# Export variables used throughout the whole make system: # Export variables used throughout the whole make system:
include $(RIOTMAKE)/vars.inc.mk include $(RIOTMAKE)/vars.inc.mk

9
makefiles/eclipse.inc.mk Normal file
View File

@ -0,0 +1,9 @@
# Generate an XML file containing all macro definitions and include paths for
# use in Eclipse CDT
.PHONY: eclipsesym eclipsesym.xml
eclipsesym: $(CURDIR)/eclipsesym.xml
eclipsesym.xml: eclipsesym
$(CURDIR)/eclipsesym.xml: FORCE
$(Q)printf "%s\n" $(CC) $(CFLAGS_WITH_MACROS) $(INCLUDES) | \
$(RIOTTOOLS)/eclipsesym/cmdline2xml.sh > $@