Skip to content

Commit

Permalink
build: Move INCDIROPT to common place
Browse files Browse the repository at this point in the history
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 authored and patacongo committed May 18, 2020
1 parent d232823 commit 6a26547
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ else
endif

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
INCDIROPT = -w
INCDIR += -w
endif

# Standard include path

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
CFLAGS += ${shell $(INCDIR) "$(CC)" "$(APPDIR)$(DELIM)include"}
CXXFLAGS += ${shell $(INCDIR) "$(CC)" "$(APPDIR)$(DELIM)include"}

ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
LDLIBS ?= "${shell cygpath -w $(BIN)}"
Expand Down
2 changes: 1 addition & 1 deletion examples/audio_rttl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ AUDIODIR = $(SDKDIR)$(DELIM)modules$(DELIM)audio

# Audio Example flags

CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(AUDIODIR)"}
CXXFLAGS += ${shell $(INCDIR) "$(CC)" "$(AUDIODIR)"}
CXXFLAGS += -D_POSIX

include $(APPDIR)/Application.mk
4 changes: 2 additions & 2 deletions examples/lvgldemo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endif
MAINSRC = lvgldemo.c

LVGLDIR=$(APPDIR)/graphics/littlevgl/lvgl
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(LVGLDIR)"}
CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(LVGLDIR)"}
CFLAGS += ${shell $(INCDIR) "$(CC)" "$(LVGLDIR)"}
CXXFLAGS += ${shell $(INCDIR) "$(CC)" "$(LVGLDIR)"}

include $(APPDIR)/Application.mk
2 changes: 1 addition & 1 deletion examples/pwfb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# NuttX per-window frame buffer graphics example.

NXGLYPHS = $(APPDIR)$(DELIM)graphics$(DELIM)nxglyphs
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(NXGLYPHS)$(DELIM)include"}
CFLAGS += ${shell $(INCDIR) "$(CC)" "$(NXGLYPHS)$(DELIM)include"}

CSRCS = pwfb_events.c pwfb_motion.c
MAINSRC = pwfb_main.c
Expand Down
2 changes: 1 addition & 1 deletion graphics/littlevgl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ PATCH ?= patch -p0

LVGL_UNPACKDIR = $(WD)/$(LVGL_UNPACKNAME)

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/graphics/littlevgl}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/graphics/littlevgl}

$(LVGL_TARBALL):
@echo "Downloading: $(LVGL_TARBALL)"
Expand Down
2 changes: 1 addition & 1 deletion graphics/pdcurs34/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
include pdcurses/Make.defs
include nuttx/Make.defs

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/graphics/pdcurs34/include}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/graphics/pdcurs34/include}

include $(APPDIR)/Application.mk
2 changes: 1 addition & 1 deletion graphics/pdcurs34/nuttx/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ endif

DEPPATH += --dep-path nuttx
VPATH += :nuttx
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/graphics/pdcurs34/nuttx}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/graphics/pdcurs34/nuttx}
2 changes: 1 addition & 1 deletion graphics/twm4nx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# Add path to cursor images to CXXFLAGS

CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)/graphics/nxglyphs/include"}
CXXFLAGS += ${shell $(INCDIR) "$(CC)" "$(APPDIR)/graphics/nxglyphs/include"}

# Twm4Nx built-in application info

Expand Down
2 changes: 1 addition & 1 deletion interpreters/ficl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BUILDDIR := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'}

# Include paths

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(BUILDDIR)/$(FICL_SUBDIR) $(BUILDDIR)/src}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(BUILDDIR)/$(FICL_SUBDIR) $(BUILDDIR)/src}

# Source Files

Expand Down
2 changes: 1 addition & 1 deletion modbus/ascii/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ CSRCS += mbascii.c

DEPPATH += --dep-path ascii
VPATH += :ascii
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/ascii}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/modbus/ascii}

endif
2 changes: 1 addition & 1 deletion modbus/functions/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ endif

DEPPATH += --dep-path functions
VPATH += :functions
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/functions}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/modbus/functions}
2 changes: 1 addition & 1 deletion modbus/nuttx/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ endif

DEPPATH += --dep-path nuttx
VPATH += :nuttx
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/nuttx}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/modbus/nuttx}
2 changes: 1 addition & 1 deletion modbus/rtu/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ endif

DEPPATH += --dep-path rtu
VPATH += :rtu
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/rtu}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/modbus/rtu}

endif
2 changes: 1 addition & 1 deletion modbus/tcp/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ CSRCS += mbtcp.c

DEPPATH += --dep-path tcp
VPATH += :tcp
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/modbus/tcp}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/modbus/tcp}

endif
2 changes: 1 addition & 1 deletion netutils/thttpd/cgi-src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

-include $(TOPDIR)/Make.defs

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)/netutils/thttpd" "$(APPDIR)/netutils/thttpd/cgi-src"}
CFLAGS += ${shell $(INCDIR) "$(CC)" "$(APPDIR)/netutils/thttpd" "$(APPDIR)/netutils/thttpd/cgi-src"}
CGIBINDIR = $(APPDIR)/netutils/thttpd/cgi-bin
CLEANFILES = *.o redirect ssi phf

Expand Down
2 changes: 1 addition & 1 deletion system/hexed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CSRCS = bfile.c cmdargs.c hexcopy.c hexdump.c hexenter.c hexhelp.c
CSRCS += hexinsert.c hexmove.c hexremove.c hexword.c
MAINSRC = hexed.c

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" include}
CFLAGS += ${shell $(INCDIR) "$(CC)" include}

VPATH += :src
ROOTDEPPATH += --dep-path src
Expand Down
2 changes: 1 addition & 1 deletion wireless/iwpan/src/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ MAINSRC = iwpan.c

DEPPATH += --dep-path src
VPATH += :src
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/wireless/iwpan/src}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/wireless/iwpan/src}

endif
2 changes: 1 addition & 1 deletion wireless/wapi/src/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ endif

DEPPATH += --dep-path src
VPATH += :src
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(APPDIR)/wireless/wapi/src}
CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/wireless/wapi/src}

endif

0 comments on commit 6a26547

Please sign in to comment.