mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:49:47 +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:
parent
b271b0d670
commit
e666c3864c
@ -565,15 +565,8 @@ objdump:
|
||||
$(call check_cmd,$(OBJDUMP),Objdump program)
|
||||
$(OBJDUMP) $(OBJDUMPFLAGS) $(ELFFILE) | less
|
||||
|
||||
# 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: $(CURDIR)/eclipsesym.xml
|
||||
|
||||
$(CURDIR)/eclipsesym.xml: FORCE
|
||||
$(Q)printf "%s\n" $(CC) $(CFLAGS_WITH_MACROS) $(INCLUDES) | \
|
||||
$(RIOTTOOLS)/eclipsesym/cmdline2xml.sh > $@
|
||||
# Support Eclipse IDE.
|
||||
include $(RIOTMAKE)/eclipse.inc.mk
|
||||
|
||||
# Export variables used throughout the whole make system:
|
||||
include $(RIOTMAKE)/vars.inc.mk
|
||||
|
9
makefiles/eclipse.inc.mk
Normal file
9
makefiles/eclipse.inc.mk
Normal 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 > $@
|
Loading…
Reference in New Issue
Block a user