forked from Archive/PX4-Autopilot
Centralized the definition of the INCDIR script in tools/Config.mk
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5346 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
9324847103
commit
bcdd7936ce
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
TESTDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ NXWIDGETS_DIR="$(TESTDIR)/../../libnxwidgets"
|
||||||
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
NXWIDGETS_INC="$(NXWIDGETS_DIR)/include"
|
||||||
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
NXWIDGETS_LIB="$(NXWIDGETS_DIR)/libnxwidgets$(LIBEXT)"
|
||||||
|
|
||||||
INCDIR=$(TOPDIR)/tools/incdir.sh
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
CFLAGS += ${shell $(INCDIR) -w "$(CC)" "$(NXWIDGETS_INC)"}
|
||||||
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
CXXFLAGS += ${shell $(INCDIR) -w "$(CXX)" "$(NXWIDGETS_INC)"}
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
# Control build verbosity
|
# Control build verbosity
|
||||||
|
@ -87,8 +86,8 @@ ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
||||||
CXXFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
||||||
DEPPATH = --dep-path src
|
DEPPATH = --dep-path src
|
||||||
VPATH = src
|
VPATH = src
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
# Control build verbosity
|
# Control build verbosity
|
||||||
|
@ -89,10 +88,10 @@ ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWMDIR)/include}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWMDIR)/include}
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
||||||
CXXFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWMDIR)/include}
|
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWMDIR)/include}
|
||||||
CXXFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
|
||||||
|
|
||||||
DEPPATH = --dep-path src
|
DEPPATH = --dep-path src
|
||||||
VPATH = src
|
VPATH = src
|
||||||
|
|
|
@ -35,14 +35,11 @@
|
||||||
|
|
||||||
BUILDDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
BUILDDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
|
|
||||||
INCDIR = $(TOPDIR)/tools/incdir.sh
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -39,6 +39,6 @@ CSRCS += mbascii.c
|
||||||
|
|
||||||
DEPPATH += --dep-path ascii
|
DEPPATH += --dep-path ascii
|
||||||
VPATH += :ascii
|
VPATH += :ascii
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/ascii}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/ascii}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -38,4 +38,4 @@ CSRCS += mbfuncinput.c mbfuncother.c mbutils.c
|
||||||
|
|
||||||
DEPPATH += --dep-path functions
|
DEPPATH += --dep-path functions
|
||||||
VPATH += :functions
|
VPATH += :functions
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/functions}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/functions}
|
||||||
|
|
|
@ -37,4 +37,4 @@ CSRCS += portevent.c portother.c portserial.c porttimer.c
|
||||||
|
|
||||||
DEPPATH += --dep-path nuttx
|
DEPPATH += --dep-path nuttx
|
||||||
VPATH += :nuttx
|
VPATH += :nuttx
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/nuttx}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/nuttx}
|
||||||
|
|
|
@ -39,6 +39,6 @@ CSRCS += mbcrc.c mbrtu.c
|
||||||
|
|
||||||
DEPPATH += --dep-path rtu
|
DEPPATH += --dep-path rtu
|
||||||
VPATH += :rtu
|
VPATH += :rtu
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/rtu}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/rtu}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -39,6 +39,6 @@ CSRCS += mbtcp.c
|
||||||
|
|
||||||
DEPPATH += --dep-path tcp
|
DEPPATH += --dep-path tcp
|
||||||
VPATH += :tcp
|
VPATH += :tcp
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/tcp}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/tcp}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# apps/netutils/cgi-src/Makefile
|
# apps/netutils/cgi-src/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -40,7 +40,7 @@ ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" "$(APPDIR)/netutils/thttpd" "$(APPDIR)/netutils/thttpd/cgi-src"}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)/netutils/thttpd" "$(APPDIR)/netutils/thttpd/cgi-src"}
|
||||||
CGIBINDIR = $(APPDIR)/netutils/thttpd/cgi-bin
|
CGIBINDIR = $(APPDIR)/netutils/thttpd/cgi-bin
|
||||||
CLEANFILES = *.o redirect ssi phf
|
CLEANFILES = *.o redirect ssi phf
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
|
|
||||||
PCODEDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
PCODEDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||||
|
|
||||||
-include $(TOPDIR)/.config
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
|
@ -45,7 +44,6 @@ ifeq ($(DIRLINK),)
|
||||||
DIRLINK = $(TOPDIR)/tools/link.sh
|
DIRLINK = $(TOPDIR)/tools/link.sh
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||||
endif
|
endif
|
||||||
INCDIR = $(TOPDIR)/tools/incdir.sh
|
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
|
|
|
@ -3613,3 +3613,6 @@
|
||||||
critical CFLAG values that cannot be passed on the CMD.exe command line
|
critical CFLAG values that cannot be passed on the CMD.exe command line
|
||||||
(line '='). mkdeps.c is a work in progress that will, hopefully,
|
(line '='). mkdeps.c is a work in progress that will, hopefully,
|
||||||
replace both mkdeps.sh and mkdeps.bat.
|
replace both mkdeps.sh and mkdeps.bat.
|
||||||
|
* tools/Config.mk: Centralize the definition of the scrpt that will be
|
||||||
|
used to generated header file include paths for the compiler. This
|
||||||
|
needs to be centralized in order to support the Windows native build.
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
INCDIROPT = -w
|
INCDIROPT = -w
|
||||||
endif
|
endif
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/sched}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/sched}
|
||||||
|
|
||||||
# Basic BINFMT source files
|
# Basic BINFMT source files
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
LDFLAGS += -g
|
LDFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOSTCC = mingw-gcc.exe
|
HOSTCC = mingw32-gcc.exe
|
||||||
HOSTINCLUDES = -I.
|
HOSTINCLUDES = -I.
|
||||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -g -pipe
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -g -pipe
|
||||||
HOSTLDFLAGS =
|
HOSTLDFLAGS =
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/analog/Make.defs
|
# drivers/analog/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -76,12 +76,12 @@ endif
|
||||||
ifeq ($(CONFIG_DAC),y)
|
ifeq ($(CONFIG_DAC),y)
|
||||||
DEPPATH += --dep-path analog
|
DEPPATH += --dep-path analog
|
||||||
VPATH += :analog
|
VPATH += :analog
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/analog}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/analog}
|
||||||
else
|
else
|
||||||
ifeq ($(CONFIG_ADC),y)
|
ifeq ($(CONFIG_ADC),y)
|
||||||
DEPPATH += --dep-path analog
|
DEPPATH += --dep-path analog
|
||||||
VPATH += :analog
|
VPATH += :analog
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/analog}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/analog}
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/bch/Make.defs
|
# drivers/bch/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -46,7 +46,7 @@ CSRCS += bchlib_setup.c bchlib_teardown.c bchlib_read.c bchlib_write.c \
|
||||||
|
|
||||||
DEPPATH += --dep-path bch
|
DEPPATH += --dep-path bch
|
||||||
VPATH += :bch
|
VPATH += :bch
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/bch}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/bch}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/input/Make.defs
|
# drivers/input/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -71,6 +71,6 @@ endif
|
||||||
|
|
||||||
DEPPATH += --dep-path input
|
DEPPATH += --dep-path input
|
||||||
VPATH += :input
|
VPATH += :input
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/input}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/input}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,6 @@ endif
|
||||||
|
|
||||||
DEPPATH += --dep-path lcd
|
DEPPATH += --dep-path lcd
|
||||||
VPATH += :lcd
|
VPATH += :lcd
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/lcd}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/lcd}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/mmcsd/Make.defs
|
# drivers/mmcsd/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -49,7 +49,7 @@ endif
|
||||||
|
|
||||||
DEPPATH += --dep-path mmcsd
|
DEPPATH += --dep-path mmcsd
|
||||||
VPATH += :mmcsd
|
VPATH += :mmcsd
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/mmcsd}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/mmcsd}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ CSRCS += pm_activity.c pm_changestate.c pm_checkstate.c pm_initialize.c pm_regis
|
||||||
|
|
||||||
POWER_DEPPATH := --dep-path power
|
POWER_DEPPATH := --dep-path power
|
||||||
POWER_VPATH := :power
|
POWER_VPATH := :power
|
||||||
POWER_CFLAGS := ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/power}
|
POWER_CFLAGS := ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/power}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ endif
|
||||||
|
|
||||||
POWER_DEPPATH := --dep-path power
|
POWER_DEPPATH := --dep-path power
|
||||||
POWER_VPATH := :power
|
POWER_VPATH := :power
|
||||||
POWER_CFLAGS := ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/power}
|
POWER_CFLAGS := ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/power}
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/sensors/Make.defs
|
# drivers/sensors/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -57,4 +57,4 @@ endif
|
||||||
|
|
||||||
DEPPATH += --dep-path sensors
|
DEPPATH += --dep-path sensors
|
||||||
VPATH += :sensors
|
VPATH += :sensors
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/sensors}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/sensors}
|
||||||
|
|
|
@ -59,5 +59,5 @@ CSRCS += usbdev_trace.c usbdev_trprintf.c
|
||||||
|
|
||||||
DEPPATH += --dep-path usbdev
|
DEPPATH += --dep-path usbdev
|
||||||
VPATH += :usbdev
|
VPATH += :usbdev
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbdev}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbdev}
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/usbhost/Make.defs
|
# drivers/usbhost/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2010-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -54,4 +54,4 @@ endif
|
||||||
|
|
||||||
DEPPATH += --dep-path usbhost
|
DEPPATH += --dep-path usbhost
|
||||||
VPATH += :usbhost
|
VPATH += :usbhost
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbhost}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/usbhost}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
############################################################################
|
############################################################################
|
||||||
# drivers/wireless/Make.defs
|
# drivers/wireless/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -43,5 +43,5 @@ CSRCS += cc1101.c ISM1_868MHzGFSK100kbps.c ISM2_905MHzGFSK250kbps.c
|
||||||
|
|
||||||
DEPPATH += --dep-path wireless/cc1101
|
DEPPATH += --dep-path wireless/cc1101
|
||||||
VPATH += :wireless/cc1101
|
VPATH += :wireless/cc1101
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/wireless/cc1101}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/wireless/cc1101}
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -44,34 +44,34 @@ endif
|
||||||
|
|
||||||
include nxglib/Make.defs
|
include nxglib/Make.defs
|
||||||
DEPPATH += --dep-path nxglib
|
DEPPATH += --dep-path nxglib
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxglib}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxglib}
|
||||||
|
|
||||||
include nxbe/Make.defs
|
include nxbe/Make.defs
|
||||||
DEPPATH += --dep-path nxbe
|
DEPPATH += --dep-path nxbe
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxbe}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxbe}
|
||||||
|
|
||||||
ifeq ($(CONFIG_NX_MULTIUSER),y)
|
ifeq ($(CONFIG_NX_MULTIUSER),y)
|
||||||
include nxmu/Make.defs
|
include nxmu/Make.defs
|
||||||
DEPPATH += --dep-path nxmu
|
DEPPATH += --dep-path nxmu
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxmu}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxmu}
|
||||||
else
|
else
|
||||||
include nxsu/Make.defs
|
include nxsu/Make.defs
|
||||||
DEPPATH += --dep-path nxsu
|
DEPPATH += --dep-path nxsu
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxsu}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxsu}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include nxtk/Make.defs
|
include nxtk/Make.defs
|
||||||
DEPPATH += --dep-path nxtk
|
DEPPATH += --dep-path nxtk
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxtk}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxtk}
|
||||||
|
|
||||||
include nxfonts/Make.defs
|
include nxfonts/Make.defs
|
||||||
DEPPATH += --dep-path nxfonts
|
DEPPATH += --dep-path nxfonts
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxfonts}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxfonts}
|
||||||
|
|
||||||
ifeq ($(CONFIG_NXCONSOLE),y)
|
ifeq ($(CONFIG_NXCONSOLE),y)
|
||||||
include nxconsole/Make.defs
|
include nxconsole/Make.defs
|
||||||
DEPPATH += --dep-path nxconsole
|
DEPPATH += --dep-path nxconsole
|
||||||
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxconsole}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)/graphics/nxconsole}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ASRCS = $(NXGLIB_ASRCS) $(NXBE_ASRCS) $(NX_ASRCS) $(NXTK_ASRCS) $(NXFONTS_ASRCS) $(NXCON_ASRCS)
|
ASRCS = $(NXGLIB_ASRCS) $(NXBE_ASRCS) $(NX_ASRCS) $(NXTK_ASRCS) $(NXFONTS_ASRCS) $(NXCON_ASRCS)
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
#
|
#
|
||||||
# Author: Richard Cochran
|
# Author: Richard Cochran
|
||||||
#
|
#
|
||||||
|
# This file (along with $(TOPDIR)/.config) must be included by every
|
||||||
|
# configuration-specific Make.defs file.
|
||||||
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
# are met:
|
# are met:
|
||||||
|
@ -40,28 +43,104 @@ CONFIG_ARCH := $(patsubst "%",%,$(strip $(CONFIG_ARCH)))
|
||||||
CONFIG_ARCH_CHIP := $(patsubst "%",%,$(strip $(CONFIG_ARCH_CHIP)))
|
CONFIG_ARCH_CHIP := $(patsubst "%",%,$(strip $(CONFIG_ARCH_CHIP)))
|
||||||
CONFIG_ARCH_BOARD := $(patsubst "%",%,$(strip $(CONFIG_ARCH_BOARD)))
|
CONFIG_ARCH_BOARD := $(patsubst "%",%,$(strip $(CONFIG_ARCH_BOARD)))
|
||||||
|
|
||||||
# Default build rules.
|
# INCDIR - Convert a list of directory paths to a list of compiler include
|
||||||
|
# directirves
|
||||||
|
# Example: CFFLAGS += ${shell $(INCDIR) [options] "compiler" "dir1" "dir2" "dir2" ...}
|
||||||
|
#
|
||||||
|
# Note that the compiler string and each directory path string must quoted if
|
||||||
|
# they contain spaces or any other characters that might get mangled by the
|
||||||
|
# shell
|
||||||
|
#
|
||||||
|
# Depends on this setting passed as a make commaond line definition from the
|
||||||
|
# toplevel Makefile:
|
||||||
|
#
|
||||||
|
# TOPDIR - The path to the the top level NuttX directory in the form
|
||||||
|
# appropriate for the current build environment
|
||||||
|
#
|
||||||
|
# Depends on this settings defined in board-specific defconfig file installed
|
||||||
|
# at $(TOPDIR)/.config:
|
||||||
|
#
|
||||||
|
# CONFIG_WINDOWS_NATIVE - Defined for a Windows native build
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
INCDIR = "$(TOPDIR)\tools\incdir.bat"
|
||||||
|
else
|
||||||
|
INCDIR = "$(TOPDIR)/tools/incdir.sh"
|
||||||
|
endif
|
||||||
|
|
||||||
|
# PREPROCESS - Default macro to run the C pre-processor
|
||||||
|
# Example: $(call PREPROCESS, in-file, out-file)
|
||||||
|
#
|
||||||
|
# Depends on these settings defined in board-specific Make.defs file
|
||||||
|
# installed at $(TOPDIR)/Make.defs:
|
||||||
|
#
|
||||||
|
# CPP - The command to invoke the C pre-processor
|
||||||
|
# CPPFLAGS - Options to pass to the C pre-processor
|
||||||
|
|
||||||
define PREPROCESS
|
define PREPROCESS
|
||||||
@echo "CPP: $1->$2"
|
@echo "CPP: $1->$2"
|
||||||
$(Q) $(CPP) $(CPPFLAGS) $1 -o $2
|
$(Q) $(CPP) $(CPPFLAGS) $1 -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# COMPILE - Default macro to compile one C file
|
||||||
|
# Example: $(call COMPILE, in-file, out-file)
|
||||||
|
#
|
||||||
|
# Depends on these settings defined in board-specific Make.defs file
|
||||||
|
# installed at $(TOPDIR)/Make.defs:
|
||||||
|
#
|
||||||
|
# CC - The command to invoke the C compiler
|
||||||
|
# CFLAGS - Options to pass to the C compiler
|
||||||
|
|
||||||
define COMPILE
|
define COMPILE
|
||||||
@echo "CC: $1"
|
@echo "CC: $1"
|
||||||
$(Q) $(CC) -c $(CFLAGS) $1 -o $2
|
$(Q) $(CC) -c $(CFLAGS) $1 -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# COMPILEXX - Default macro to compile one C++ file
|
||||||
|
# Example: $(call COMPILEXX, in-file, out-file)
|
||||||
|
#
|
||||||
|
# Depends on these settings defined in board-specific Make.defs file
|
||||||
|
# installed at $(TOPDIR)/Make.defs:
|
||||||
|
#
|
||||||
|
# CXX - The command to invoke the C++ compiler
|
||||||
|
# CXXFLAGS - Options to pass to the C++ compiler
|
||||||
|
|
||||||
define COMPILEXX
|
define COMPILEXX
|
||||||
@echo "CXX: $1"
|
@echo "CXX: $1"
|
||||||
$(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2
|
$(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# ASSEMBLE - Default macro to assemble one assembly language file
|
||||||
|
# Example: $(call ASSEMBLE, in-file, out-file)
|
||||||
|
#
|
||||||
|
# Depends on these settings defined in board-specific Make.defs file
|
||||||
|
# installed at $(TOPDIR)/Make.defs:
|
||||||
|
#
|
||||||
|
# CC - By default, the C compiler is used to compile assembly lagnuage
|
||||||
|
# files
|
||||||
|
# AFLAGS - Options to pass to the C+compiler
|
||||||
|
|
||||||
define ASSEMBLE
|
define ASSEMBLE
|
||||||
@echo "AS: $1"
|
@echo "AS: $1"
|
||||||
$(Q) $(CC) -c $(AFLAGS) $1 -o $2
|
$(Q) $(CC) -c $(AFLAGS) $1 -o $2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# ARCHIVE - Add a list of files to an archive
|
||||||
|
# Example: $(call ARCHIVE, archive-file, "file1 file2 file3 ...")
|
||||||
|
#
|
||||||
|
# Note: The fileN strings may not contain spaces or characters that may be
|
||||||
|
# interpreted strangely by the shell
|
||||||
|
#
|
||||||
|
# Depends on these settings defined in board-specific Make.defs file
|
||||||
|
# installed at $(TOPDIR)/Make.defs:
|
||||||
|
#
|
||||||
|
# AR - The command to invoke the archiver (includes any options)
|
||||||
|
#
|
||||||
|
# Depends on this settings defined in board-specific defconfig file installed
|
||||||
|
# at $(TOPDIR)/.config:
|
||||||
|
#
|
||||||
|
# CONFIG_WINDOWS_NATIVE - Defined for a Windows native build
|
||||||
|
|
||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
define ARCHIVE
|
define ARCHIVE
|
||||||
@echo "AR: $2"
|
@echo "AR: $2"
|
||||||
|
|
|
@ -37,6 +37,13 @@ TOPDIR ?= ${shell pwd}/..
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
include ${TOPDIR}/tools/Config.mk
|
include ${TOPDIR}/tools/Config.mk
|
||||||
|
|
||||||
|
# strtok_r is used in some tools, but does not seem to be available in
|
||||||
|
# the MinGW environment.
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
|
HOSTCFLAGS += -D HAVE_STRTOK_C
|
||||||
|
endif
|
||||||
|
|
||||||
all: mkconfig$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) mksymtab$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)
|
all: mkconfig$(HOSTEXEEXT) mkversion$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) bdf-converter$(HOSTEXEEXT) mksymtab$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)
|
||||||
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)
|
default: mkconfig$(HOSTEXEEXT) mksyscall$(HOSTEXEEXT) mkdeps$(HOSTEXEEXT)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
tools/README.txt
|
tools/README.txt
|
||||||
^^^^^^^^^^^^^^^^
|
================
|
||||||
|
|
||||||
This README file addresses the contents of the NuttX tools/ directory.
|
This README file addresses the contents of the NuttX tools/ directory.
|
||||||
|
|
||||||
|
@ -8,22 +8,38 @@ that are necessary parts of the the NuttX build system. These files
|
||||||
include:
|
include:
|
||||||
|
|
||||||
README.txt
|
README.txt
|
||||||
|
----------
|
||||||
|
|
||||||
This file
|
This file!
|
||||||
|
|
||||||
|
Config.mk
|
||||||
|
---------
|
||||||
|
|
||||||
|
This file contains common definitions used by many configureation files.
|
||||||
|
This file (along with <nuttx>/.config) must be included at the top of
|
||||||
|
each configuration-specific Make.defs file like:
|
||||||
|
|
||||||
|
-include $(TOPDIR)/.config
|
||||||
|
include $(TOPDIR)/tools/Config.mk
|
||||||
|
|
||||||
|
Subsequent logic within the configuration-specific Make.defs file may then
|
||||||
|
override these default definitions as necessary.
|
||||||
|
|
||||||
configure.sh
|
configure.sh
|
||||||
|
------------
|
||||||
|
|
||||||
This is a bash script that is used to configure NuttX for a given
|
This is a bash script that is used to configure NuttX for a given
|
||||||
target board. See configs/README.txt or Documentation/NuttxPortingGuide.html
|
target board. See configs/README.txt or Documentation/NuttxPortingGuide.html
|
||||||
for a description of how to configure NuttX with this script.
|
for a description of how to configure NuttX with this script.
|
||||||
|
|
||||||
discover.py
|
discover.py
|
||||||
|
-----------
|
||||||
|
|
||||||
Example script for discovering devices in the local network.
|
Example script for discovering devices in the local network.
|
||||||
It is the counter part to apps/netutils/discover
|
It is the counter part to apps/netutils/discover
|
||||||
|
|
||||||
|
|
||||||
mkconfig.c, cfgparser.c, and cfgparser.h
|
mkconfig.c, cfgparser.c, and cfgparser.h
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
These are Cs file that are used to build mkconfig program. The mkconfig
|
These are Cs file that are used to build mkconfig program. The mkconfig
|
||||||
program is used during the initial NuttX build.
|
program is used during the initial NuttX build.
|
||||||
|
@ -38,11 +54,13 @@ mkconfig.c, cfgparser.c, and cfgparser.h
|
||||||
NuttX configuration that can be included by C files.
|
NuttX configuration that can be included by C files.
|
||||||
|
|
||||||
cmdconfig.c
|
cmdconfig.c
|
||||||
|
-----------
|
||||||
|
|
||||||
This C file can be used to build a utility for comparing two NuttX
|
This C file can be used to build a utility for comparing two NuttX
|
||||||
configuration files.
|
configuration files.
|
||||||
|
|
||||||
mkexport.sh and Makefile.export
|
mkexport.sh and Makefile.export
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
These implement part of the top-level Makefile's 'export' target. That
|
These implement part of the top-level Makefile's 'export' target. That
|
||||||
target will bundle up all of the NuttX libraries, header files, and the
|
target will bundle up all of the NuttX libraries, header files, and the
|
||||||
|
@ -51,6 +69,7 @@ mkexport.sh and Makefile.export
|
||||||
options from the top-level Make.defs file.
|
options from the top-level Make.defs file.
|
||||||
|
|
||||||
mkfsdata.pl
|
mkfsdata.pl
|
||||||
|
-----------
|
||||||
|
|
||||||
This perl script is used to build the "fake" file system and CGI support
|
This perl script is used to build the "fake" file system and CGI support
|
||||||
as needed for the apps/netutils/webserver. It is currently used only
|
as needed for the apps/netutils/webserver. It is currently used only
|
||||||
|
@ -61,6 +80,7 @@ mkfsdata.pl
|
||||||
by Adam Dunkels. uIP has a license that is compatible with NuttX.
|
by Adam Dunkels. uIP has a license that is compatible with NuttX.
|
||||||
|
|
||||||
mkversion.c, cfgparser.c, and cfgparser.h
|
mkversion.c, cfgparser.c, and cfgparser.h
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
This is C file that is used to build mkversion program. The mkversion
|
This is C file that is used to build mkversion program. The mkversion
|
||||||
program is used during the initial NuttX build.
|
program is used during the initial NuttX build.
|
||||||
|
@ -74,6 +94,7 @@ mkversion.c, cfgparser.c, and cfgparser.h
|
||||||
version.h provides version information that can be included by C files.
|
version.h provides version information that can be included by C files.
|
||||||
|
|
||||||
mksyscall.c, cvsparser.c, and cvsparser.h
|
mksyscall.c, cvsparser.c, and cvsparser.h
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
This is a C file that is used to build mksyscall program. The mksyscall
|
This is a C file that is used to build mksyscall program. The mksyscall
|
||||||
program is used during the initial NuttX build by the logic in the top-
|
program is used during the initial NuttX build by the logic in the top-
|
||||||
|
@ -96,6 +117,7 @@ mksyscall.c, cvsparser.c, and cvsparser.h
|
||||||
stub files as output. See syscall/README.txt for additonal information.
|
stub files as output. See syscall/README.txt for additonal information.
|
||||||
|
|
||||||
mksymtab.c, cvsparser.c, and cvsparser.h
|
mksymtab.c, cvsparser.c, and cvsparser.h
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
This is a C file that is used to build symbol tables from common-separated
|
This is a C file that is used to build symbol tables from common-separated
|
||||||
value (CSV) files. This tool is not used during the NuttX build, but
|
value (CSV) files. This tool is not used during the NuttX build, but
|
||||||
|
@ -116,10 +138,12 @@ mksymtab.c, cvsparser.c, and cvsparser.h
|
||||||
./mksymtab.exe tmp.csv tmp.c
|
./mksymtab.exe tmp.csv tmp.c
|
||||||
|
|
||||||
pic32mx
|
pic32mx
|
||||||
|
-------
|
||||||
|
|
||||||
This directory contains build tools used only for PIC32MX platforms
|
This directory contains build tools used only for PIC32MX platforms
|
||||||
|
|
||||||
bdf-convert.c
|
bdf-convert.c
|
||||||
|
-------------
|
||||||
|
|
||||||
This C file is used to build the bdf-converter program. The bdf-converter
|
This C file is used to build the bdf-converter program. The bdf-converter
|
||||||
program be used to convert fonts in Bitmap Distribution Format (BDF)
|
program be used to convert fonts in Bitmap Distribution Format (BDF)
|
||||||
|
@ -255,6 +279,7 @@ bdf-convert.c
|
||||||
};
|
};
|
||||||
|
|
||||||
Makefile.host
|
Makefile.host
|
||||||
|
-------------
|
||||||
|
|
||||||
This is the makefile that is used to make the mkconfig program from
|
This is the makefile that is used to make the mkconfig program from
|
||||||
the mkconfig.c C file, the cmpconfig program from cmpconfig.c C file
|
the mkconfig.c C file, the cmpconfig program from cmpconfig.c C file
|
||||||
|
@ -265,6 +290,7 @@ Makefile.host
|
||||||
make -f Makefile.host <program>
|
make -f Makefile.host <program>
|
||||||
|
|
||||||
mkromfsimg.sh
|
mkromfsimg.sh
|
||||||
|
-------------
|
||||||
|
|
||||||
This script may be used to automate the generate of a ROMFS file system
|
This script may be used to automate the generate of a ROMFS file system
|
||||||
image. It accepts an rcS script "template" and generates and image that
|
image. It accepts an rcS script "template" and generates and image that
|
||||||
|
@ -274,6 +300,7 @@ mkdeps.sh
|
||||||
mkdeps.bat
|
mkdeps.bat
|
||||||
mkdeps.c
|
mkdeps.c
|
||||||
mknulldeps.sh
|
mknulldeps.sh
|
||||||
|
-------------
|
||||||
|
|
||||||
NuttX uses the GCC compilers capabilities to create Makefile dependencies.
|
NuttX uses the GCC compilers capabilities to create Makefile dependencies.
|
||||||
The bash script mkdeps.sh is used to run GCC in order to create the
|
The bash script mkdeps.sh is used to run GCC in order to create the
|
||||||
|
@ -317,6 +344,7 @@ mknulldeps.sh
|
||||||
that mixed environment.
|
that mixed environment.
|
||||||
|
|
||||||
define.sh
|
define.sh
|
||||||
|
---------
|
||||||
|
|
||||||
Different compilers have different conventions for specifying pre-
|
Different compilers have different conventions for specifying pre-
|
||||||
processor definitions on the compiler command line. This bash
|
processor definitions on the compiler command line. This bash
|
||||||
|
@ -324,6 +352,7 @@ define.sh
|
||||||
without concern for the particular compiler in use.
|
without concern for the particular compiler in use.
|
||||||
|
|
||||||
incdir.sh
|
incdir.sh
|
||||||
|
---------
|
||||||
|
|
||||||
Different compilers have different conventions for specifying lists
|
Different compilers have different conventions for specifying lists
|
||||||
of include file paths on the the compiler command line. This bash
|
of include file paths on the the compiler command line. This bash
|
||||||
|
@ -333,6 +362,7 @@ incdir.sh
|
||||||
link.sh
|
link.sh
|
||||||
winlink.sh
|
winlink.sh
|
||||||
unlink.sh
|
unlink.sh
|
||||||
|
----------
|
||||||
|
|
||||||
Different file system have different capabilities for symbolic links.
|
Different file system have different capabilities for symbolic links.
|
||||||
Some windows file systems have no native support for symbolic links.
|
Some windows file systems have no native support for symbolic links.
|
||||||
|
@ -365,16 +395,19 @@ unlink.sh
|
||||||
tried that
|
tried that
|
||||||
|
|
||||||
mkimage.sh
|
mkimage.sh
|
||||||
|
----------
|
||||||
|
|
||||||
The creates a downloadable image as needed with the rrload bootloader.
|
The creates a downloadable image as needed with the rrload bootloader.
|
||||||
|
|
||||||
indent.sh
|
indent.sh
|
||||||
|
---------
|
||||||
|
|
||||||
This script can be used to indent .c and .h files in a manner similar
|
This script can be used to indent .c and .h files in a manner similar
|
||||||
to my coding NuttX coding style. It doesn't do a really good job,
|
to my coding NuttX coding style. It doesn't do a really good job,
|
||||||
however (see the comments at the top of the indent.sh file).
|
however (see the comments at the top of the indent.sh file).
|
||||||
|
|
||||||
zipme.sh
|
zipme.sh
|
||||||
|
--------
|
||||||
|
|
||||||
I use this script to create the nuttx-xx.yy.tar.gz tarballs for
|
I use this script to create the nuttx-xx.yy.tar.gz tarballs for
|
||||||
release on SourceForge. It is handy because it also does the
|
release on SourceForge. It is handy because it also does the
|
||||||
|
|
|
@ -87,6 +87,75 @@ static char *g_topdir = NULL;
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/* MinGW does not seem to provide strtok_r */
|
||||||
|
|
||||||
|
#ifndef HAVE_STRTOK_R
|
||||||
|
static char *strtok_r(char *str, const char *delim, char **saveptr)
|
||||||
|
{
|
||||||
|
char *pbegin;
|
||||||
|
char *pend = NULL;
|
||||||
|
|
||||||
|
/* Decide if we are starting a new string or continuing from
|
||||||
|
* the point we left off.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (str)
|
||||||
|
{
|
||||||
|
pbegin = str;
|
||||||
|
}
|
||||||
|
else if (saveptr && *saveptr)
|
||||||
|
{
|
||||||
|
pbegin = *saveptr;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Find the beginning of the next token */
|
||||||
|
|
||||||
|
for (;
|
||||||
|
*pbegin && strchr(delim, *pbegin) != NULL;
|
||||||
|
pbegin++);
|
||||||
|
|
||||||
|
/* If we are at the end of the string with nothing
|
||||||
|
* but delimiters found, then return NULL.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!*pbegin)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Find the end of the token */
|
||||||
|
|
||||||
|
for (pend = pbegin + 1;
|
||||||
|
*pend && strchr(delim, *pend) == NULL;
|
||||||
|
pend++);
|
||||||
|
|
||||||
|
/* pend either points to the end of the string or to
|
||||||
|
* the first delimiter after the string.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (*pend)
|
||||||
|
{
|
||||||
|
/* Turn the delimiter into a null terminator */
|
||||||
|
|
||||||
|
*pend++ = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Save the pointer where we left off and return the
|
||||||
|
* beginning of the token.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (saveptr)
|
||||||
|
{
|
||||||
|
*saveptr = pend;
|
||||||
|
}
|
||||||
|
return pbegin;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void append(char **base, char *str)
|
static void append(char **base, char *str)
|
||||||
{
|
{
|
||||||
char *oldbase;
|
char *oldbase;
|
||||||
|
|
Loading…
Reference in New Issue