summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 22:10:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-29 22:10:52 +0000
commit45f021f2a88d9f76c7802aa31d3fc67827ff288d (patch)
tree4a7abb3a751f790f2ac18f842ee27f32c5941818 /NxWidgets/libnxwidgets/Makefile
parentc38d91a6cda19491b56dfb2e298e28ea3de06086 (diff)
downloadnuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.tar.gz
nuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.tar.bz2
nuttx-45f021f2a88d9f76c7802aa31d3fc67827ff288d.zip
NxWM update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4676 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/Makefile')
-rw-r--r--NxWidgets/libnxwidgets/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/NxWidgets/libnxwidgets/Makefile b/NxWidgets/libnxwidgets/Makefile
index e3ff57339..9a52087ed 100644
--- a/NxWidgets/libnxwidgets/Makefile
+++ b/NxWidgets/libnxwidgets/Makefile
@@ -36,8 +36,7 @@
-include $(TOPDIR)/.config
-include $(TOPDIR)/Make.defs
-NXWDIR := ${shell pwd | sed -e 's/ /\\ /g'}
-
+NXWIDGETDIR := ${shell pwd | sed -e 's/ /\\ /g'}
ASRCS =
CSRCS =
@@ -76,8 +75,12 @@ OBJS = $(AOBJS) $(COBJS) $(CXXOBJS)
BIN = libnxwidgets$(LIBEXT)
-CFLAGS += -I include
-CXXFLAGS += -I include
+ifeq ($(WINTOOL),y)
+INCDIROPT = -w
+endif
+
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
+CXXFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(NXWIDGETDIR)/include}
DEPPATH = --dep-path src
VPATH = src
@@ -97,7 +100,7 @@ check_nuttx:
@( \
if [ -z "$(TOPDIR)" ]; then \
echo "The path to the nuttx directory must be provided on the command line."; \
- echo "Usage: make -C $(NXWDIR) TOPDIR=\"<nuttx directory>\""; \
+ echo "Usage: make -C $(NXWIDGETDIR) TOPDIR=\"<nuttx directory>\""; \
exit 1; \
fi; \
if [ ! -d "$(TOPDIR)" ]; then \