diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-29 09:33:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-29 09:33:06 -0600 |
commit | c958153461173d01033c856e0a76627e531e7f91 (patch) | |
tree | 8832506abc35b9008578cd3828c72528d9902be1 /apps/examples/udgram/Makefile | |
parent | 49beb2cc412461f1893e91bc76f91fdb6e3fc8cc (diff) | |
download | px4-nuttx-c958153461173d01033c856e0a76627e531e7f91.tar.gz px4-nuttx-c958153461173d01033c856e0a76627e531e7f91.tar.bz2 px4-nuttx-c958153461173d01033c856e0a76627e531e7f91.zip |
apps/examples/udgram: Add option to configure program name and task properties
Diffstat (limited to 'apps/examples/udgram/Makefile')
-rw-r--r-- | apps/examples/udgram/Makefile | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/apps/examples/udgram/Makefile b/apps/examples/udgram/Makefile index 846e6efad..a6903f8ce 100644 --- a/apps/examples/udgram/Makefile +++ b/apps/examples/udgram/Makefile @@ -51,11 +51,15 @@ SERVER_MAINOBJ = $(SERVER_MAINSRC:.c=$(OBJEXT)) SERVER_SRCS = $(SERVER_ASRCS) $(SERVER_CSRCS) $(SERVER_MAINSRC) SERVER_OBJS = $(SERVER_AOBJS) $(SERVER_COBJS) -SERVER_PROGNAME = server$(EXEEXT) +CONFIG_EXAMPLES_UDGRAM_SERVER_APPNAME ?= server +CONFIG_EXAMPLES_UDGRAM_SERVER_STACKSIZE ?= 4096 +CONFIG_EXAMPLES_UDGRAM_SERVER_PRIORITY ?= SCHED_PRIORITY_DEFAULT +CONFIG_EXAMPLES_UDGRAM_SERVER_PROGNAME ?= server$(EXEEXT) -SERVER_APPNAME = server -SERVER_PRIORITY = SCHED_PRIORITY_DEFAULT -SERVER_STACKSIZE = 2048 +SERVER_APPNAME = $(CONFIG_EXAMPLES_UDGRAM_SERVER_APPNAME) +SERVER_PRIORITY = $(CONFIG_EXAMPLES_UDGRAM_SERVER_PRIORITY) +SERVER_STACKSIZE = $(CONFIG_EXAMPLES_UDGRAM_SERVER_STACKSIZE) +SERVER_PROGNAME = $(CONFIG_EXAMPLES_UDGRAM_SERVER_PROGNAME) CLIENT_ASRCS = CLIENT_AOBJS = $(CLIENT_ASRCS:.S=$(OBJEXT)) @@ -69,11 +73,15 @@ CLIENT_MAINOBJ = $(CLIENT_MAINSRC:.c=$(OBJEXT)) CLIENT_SRCS = $(CLIENT_ASRCS) $(CLIENT_CSRCS) $(CLIENT_MAINSRC) CLIENT_OBJS = $(CLIENT_AOBJS) $(CLIENT_COBJS) -CLIENT_PROGNAME = server$(EXEEXT) +CONFIG_EXAMPLES_UDGRAM_CLIENT_APPNAME ?= client +CONFIG_EXAMPLES_UDGRAM_CLIENT_STACKSIZE ?= 4096 +CONFIG_EXAMPLES_UDGRAM_CLIENT_PRIORITY ?= SCHED_PRIORITY_DEFAULT +CONFIG_EXAMPLES_UDGRAM_CLIENT_PROGNAME ?= client(EXEEXT) -CLIENT_APPNAME = client -CLIENT_PRIORITY = SCHED_PRIORITY_DEFAULT -CLIENT_STACKSIZE = 2048 +CLIENT_APPNAME = $(CONFIG_EXAMPLES_UDGRAM_CLIENT_APPNAME) +CLIENT_PRIORITY = $(CONFIG_EXAMPLES_UDGRAM_CLIENT_PRIORITY) +CLIENT_STACKSIZE = $(CONFIG_EXAMPLES_UDGRAM_CLIENT_STACKSIZE) +CLIENT_PROGNAME = $(CONFIG_EXAMPLES_UDGRAM_CLIENT_PROGNAME) AOBJS = $(CLIENT_AOBJS) $(SERVER_AOBJS) COBJS = $(CLIENT_COBJS) $(CLIENT_MAINOBJ) $(SERVER_COBJS) $(SERVER_MAINOBJ) |