Several Makefiles: Add .PHONY definitions to prevent 'clean up to date' message weirdness; Add default definitions for some commonly used things when 'make clean' is used without .config or Make.defs files installed.
This commit is contained in:
parent
a2e83fe135
commit
29e8b8e059
@ -1585,3 +1585,7 @@
|
|||||||
greyscale.
|
greyscale.
|
||||||
* apps/canutils/uavcan: Update UAVCAN version. From Paul Alexander
|
* apps/canutils/uavcan: Update UAVCAN version. From Paul Alexander
|
||||||
Patience (2016-05-03)
|
Patience (2016-05-03)
|
||||||
|
* Several Makefiles: Add .PHONY definitions to prevent 'clean up to date'
|
||||||
|
message weirdness; Add default definitions for some commonly used
|
||||||
|
things when 'make clean' is used without .config or Make.defs files
|
||||||
|
installed (2016-05-10).
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/errno/Makefile
|
# examples/elf/tests/errno/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/hello/Makefile
|
# examples/elf/tests/hello/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/helloxx/Makefile
|
# examples/elf/tests/helloxx/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014-2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014-2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -98,6 +101,7 @@ LDLIBSTDC_STUBS_DIR = $(TOPDIR)/libxx
|
|||||||
LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a
|
LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a
|
||||||
|
|
||||||
all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5)
|
all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.cpp
|
$(OBJS): %$(OBJEXT): %.cpp
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/longjmp/Makefile
|
# examples/elf/tests/longjmp/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/mutex/Makefile
|
# examples/elf/tests/mutex/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/pthread/Makefile
|
# examples/elf/tests/pthread/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/signal/Makefile
|
# examples/elf/tests/signal/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/struct/Makefile
|
# examples/elf/tests/struct/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
CELFFLAGS += -I.
|
CELFFLAGS += -I.
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
@ -70,6 +73,7 @@ SRCS = struct_main.c struct_dummy.c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/task/Makefile
|
# examples/elf/tests/task/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2014, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -69,6 +72,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/examples/module/Makefile
|
# apps/examples/module/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015-2016 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
|
||||||
@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/.config
|
-include $(TOPDIR)/.config
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
include $(APPDIR)/Make.defs
|
include $(APPDIR)/Make.defs
|
||||||
|
|
||||||
# Module example built-in application info
|
# Module example built-in application info
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/module/drivers/chardev/Makefile
|
# examples/module/drivers/chardev/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015-2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
NUTTXLIB = "${shell cygpath -w $(TOPDIR)$(DELIM)lib}"
|
||||||
else
|
else
|
||||||
@ -71,6 +74,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=$(OBJEXT))
|
OBJS = $(SRCS:.c=$(OBJEXT))
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %$(OBJEXT): %.c
|
$(OBJS): %$(OBJEXT): %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/elf/tests/hello/Makefile
|
# examples/elf/tests/hello/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2016 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
|
||||||
@ -41,6 +41,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/posix_spawn/filesystem/redirect/Makefile
|
# examples/posix_spawn/filesystem/redirect/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2013, 2016 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
|
||||||
@ -41,6 +41,7 @@ SRCS = $(BIN).c
|
|||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(OBJS): %.o: %.c
|
$(OBJS): %.o: %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/thttpd/content/hello/Makefile
|
# examples/thttpd/content/hello/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2016 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
|
||||||
@ -44,6 +44,7 @@ R2SRC = $(BIN)-thunk.S
|
|||||||
R2OBJ = $(R2SRC:.S=.o)
|
R2OBJ = $(R2SRC:.S=.o)
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(R1OBJS): %.o: %.c
|
$(R1OBJS): %.o: %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/thttpd/content/netstat/Makefile
|
# examples/thttpd/content/netstat/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2016 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
|
||||||
@ -44,6 +44,7 @@ R2SRC = $(BIN)-thunk.S
|
|||||||
R2OBJ = $(R2SRC:.S=.o)
|
R2OBJ = $(R2SRC:.S=.o)
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(R1OBJS): %.o: %.c
|
$(R1OBJS): %.o: %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# examples/thttpd/content/tasks/Makefile
|
# examples/thttpd/content/tasks/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2016 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
|
||||||
@ -35,6 +35,9 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
|
OBJEXT ?= .o
|
||||||
|
DELIM ?= /
|
||||||
|
|
||||||
BIN = tasks
|
BIN = tasks
|
||||||
|
|
||||||
R1SRCS = $(BIN).c
|
R1SRCS = $(BIN).c
|
||||||
@ -44,6 +47,7 @@ R2SRC = $(BIN)-thunk.S
|
|||||||
R2OBJ = $(R2SRC:.S=.o)
|
R2OBJ = $(R2SRC:.S=.o)
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean install
|
||||||
|
|
||||||
$(R1OBJS): %.o: %.c
|
$(R1OBJS): %.o: %.c
|
||||||
@echo "CC: $<"
|
@echo "CC: $<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/examples/usbserial/Makefile
|
# apps/examples/usbserial/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2010-2012 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008, 2010-2012, 2016 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
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/examples/usbserial/Makefile.host
|
# apps/examples/usbserial/Makefile.host
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008, 2011, 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008, 2011, 2015-2016 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
|
||||||
@ -58,6 +58,7 @@ DEFINES += -DCONFIG_CDCACM=1
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
@$(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@
|
@$(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ interpreters/micropython/Makefile
|
# apps/ interpreters/micropython/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved.
|
||||||
# Authors: Gregory Nutt <gnutt@nuttx.org>
|
# Authors: Gregory Nutt <gnutt@nuttx.org>
|
||||||
# Dave Marples <dave@marples.net>
|
# Dave Marples <dave@marples.net>
|
||||||
#
|
#
|
||||||
@ -127,6 +127,7 @@ ROOTDEPPATH = --dep-path .
|
|||||||
# Common build
|
# Common build
|
||||||
|
|
||||||
all: .built
|
all: .built
|
||||||
|
.PHONY: install context clean distclean
|
||||||
|
|
||||||
$(MICROPYTHON_TARBALL):
|
$(MICROPYTHON_TARBALL):
|
||||||
@echo "Downloading: $(MICROPYTHON_TARBALL)"
|
@echo "Downloading: $(MICROPYTHON_TARBALL)"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/platform/Makefile
|
# apps/platform/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2013-2014, 2016 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
|
||||||
@ -96,7 +96,7 @@ endif
|
|||||||
# Build targets
|
# Build targets
|
||||||
|
|
||||||
all: .built
|
all: .built
|
||||||
.PHONY: context .depend depend clean distclean
|
.PHONY: $(TOPDIR)$(DELIM).config context .depend depend clean distclean
|
||||||
|
|
||||||
ifneq ($(ASRCS),)
|
ifneq ($(ASRCS),)
|
||||||
$(AOBJS): bin$(DELIM)%$(OBJEXT): %.S
|
$(AOBJS): bin$(DELIM)%$(OBJEXT): %.S
|
||||||
@ -116,6 +116,8 @@ endif
|
|||||||
|
|
||||||
# Build context setup
|
# Build context setup
|
||||||
|
|
||||||
|
$(TOPDIR)$(DELIM).config:
|
||||||
|
|
||||||
$(PLATFORMDIR): $(TOPDIR)$(DELIM).config
|
$(PLATFORMDIR): $(TOPDIR)$(DELIM).config
|
||||||
@echo "LN: platform$(DELIM)board to $(LINKDIR)"
|
@echo "LN: platform$(DELIM)board to $(LINKDIR)"
|
||||||
$(Q) $(DIRUNLINK) $(PLATFORMDIR)
|
$(Q) $(DIRUNLINK) $(PLATFORMDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user