Skip to content

Commit

Permalink
Add apps/include to include path in top-level Make.defs file. Remove …
Browse files Browse the repository at this point in the history
…multiple definitions of INCDIR opt.
  • Loading branch information
gregory-nutt committed Jul 11, 2016
1 parent 2cbad44 commit 3e83aa7
Show file tree
Hide file tree
Showing 23 changed files with 32 additions and 117 deletions.
12 changes: 11 additions & 1 deletion Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# apps/Make.defs
# Common make definitions provided to all applications
#
# Copyright (C) 2011, 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2011, 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -34,6 +34,8 @@
#
############################################################################

# Builtin Registration

BUILTIN_REGISTRY = $(APPDIR)$(DELIM)builtin$(DELIM)registry

DEPCONFIG = $(TOPDIR)$(DELIM).config
Expand Down Expand Up @@ -61,3 +63,11 @@ ifeq ($(CONFIG_WINDOWS_NATIVE),y)
else
MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh
endif

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Standard include path

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" "$(APPDIR)$(DELIM)include"}
6 changes: 1 addition & 5 deletions graphics/screenshot/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/examples/screenshot/Makefile
#
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
# Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# TIFF Screenshot utility

ASRCS =
Expand Down
6 changes: 1 addition & 5 deletions graphics/traveler/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/graphics/traveler/Makefile
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -109,10 +109,6 @@ endif
CONFIG_EXAMPLES_HELLO_PROGNAME ?= hello$(EXEEXT)
PROGNAME = $(CONFIG_EXAMPLES_HELLO_PROGNAME)

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

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

DEPPATH = --dep-path . --dep-path src
Expand Down
6 changes: 1 addition & 5 deletions interpreters/bas/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/bas/Makefile
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -50,10 +50,6 @@ endif
DEPPATH = --dep-path .
VPATH = .

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))

Expand Down
6 changes: 1 addition & 5 deletions interpreters/ficl/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/interpreters/ficl/Makefile
#
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2011-2012, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -40,10 +40,6 @@ include $(APPDIR)/Make.defs

# Tools

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Include paths

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(BUILDDIR)/$(FICL_SUBDIR) $(BUILDDIR)/src}
Expand Down
6 changes: 1 addition & 5 deletions modbus/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/modbus/Makefile
#
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -48,10 +48,6 @@ CSRCS += mb.c
DEPPATH = --dep-path .
VPATH = .

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

include ascii/Make.defs
include functions/Make.defs
include nuttx/Make.defs
Expand Down
6 changes: 1 addition & 5 deletions system/cle/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/cle/Makefile
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# EMACS-like Command Line Editor (CLE)

ASRCS =
Expand Down
6 changes: 1 addition & 5 deletions system/flash_eraseall/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Hello Application
# flash_eraseall Application
# TODO: appname can be automatically extracted from the directory name

APPNAME = flash_eraseall
Expand Down
5 changes: 1 addition & 4 deletions system/free/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# apps/system/free/Makefile
#
# Copyright (C) 2011-2012 Uros Platise. All rights reserved.
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Uros Platise <uros.platise@isotel.eu>
# Gregory Nutt <gnutt@nuttx.org>
#
Expand Down Expand Up @@ -38,10 +39,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Replacement free command

APPNAME = free
Expand Down
6 changes: 1 addition & 5 deletions system/hexed/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/hexed/Makefile
#
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# hexed Application

CONFIG_SYSTEM_HEXED_PRIORITY ?= SCHED_PRIORITY_DEFAULT
Expand Down
8 changes: 2 additions & 6 deletions system/install/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# apps/system/install/Makefile
#
# Copyright (C) 2011 Uros Platise. All rights reserved.
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2012, 2016 Gregory Nutt. All rights reserved.
# Author: Uros Platise <uros.platise@isotel.eu>
# Gregory Nutt <gnutt@nuttx.org>
#
Expand Down Expand Up @@ -42,11 +42,7 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Hello Application
# Install Application
# TODO: appname can be automatically extracted from the directory name

APPNAME = install
Expand Down
6 changes: 1 addition & 5 deletions system/lm75/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/lm75/Makefile
#
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -40,10 +40,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# LM-75 Temperature Sensor Application

CONFIG_SYSTEM_LM75_PRIORITY ?= 100
Expand Down
6 changes: 1 addition & 5 deletions system/netdb/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/netdb/Makefile
#
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# netdb Application

CONFIG_SYSTEM_NETDB_STACKSIZE ?= 2048
Expand Down
6 changes: 1 addition & 5 deletions system/nxplayer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# apps/system/nxplayer/Makefile
#
# Copyright (C) 2013 Ken Pettit. All rights reserved.
# Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
# Copyright (C) 2012-2013, 2016 Gregory Nutt. All rights reserved.
# Author: Ken Pettit <pettitkd@gmail.com>
# Gregory Nutt <gnutt@nuttx.org>
#
Expand Down Expand Up @@ -39,10 +39,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# NxPlayer Library

ASRCS =
Expand Down
6 changes: 1 addition & 5 deletions system/prun/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/prun/Makefile
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -39,10 +39,6 @@ include $(APPDIR)/Make.defs

# Pascal P-Code interpreter / Virtual machine

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \
"." \
"$(APPDIR)$(DELIM)interpreters$(DELIM)pcode$(DELIM)include" \
Expand Down
12 changes: 0 additions & 12 deletions system/prun/prun.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@
#include "pedefs.h"
#include "prun.h"

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

/****************************************************************************
* Private Data
****************************************************************************/

/****************************************************************************
* Public Functions
****************************************************************************/

/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down
4 changes: 0 additions & 4 deletions system/ramtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# RAM test

PRIORITY = SCHED_PRIORITY_DEFAULT
Expand Down
6 changes: 1 addition & 5 deletions system/readline/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/readline/Makefile
#
# Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
# Copyright (C) 2012-2013, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# The Readline Library

ASRCS =
Expand Down
6 changes: 1 addition & 5 deletions system/stackmonitor/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/stackmonitor/Makefile
#
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
# Copyright (C) 2013, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Stack Monitor Application

PRIORITY = SCHED_PRIORITY_DEFAULT
Expand Down
6 changes: 1 addition & 5 deletions system/sudoku/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################
# apps/system/sudoku/Makefile
#
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
# Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,10 +37,6 @@
-include $(TOPDIR)/Make.defs
include $(APPDIR)/Make.defs

ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif

# Sudoku Application

CONFIG_SYSTEM_SUDOKU_STACKSIZE ?= 1536
Expand Down
Loading

0 comments on commit 3e83aa7

Please sign in to comment.