diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 07:05:54 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 07:05:54 -0600 |
commit | 5a874f322600b650145dcb55bdf51e66fbf4acef (patch) | |
tree | 53ca82ce060bf7a9a219eed794be1c2b4f608340 /apps/examples/cpuhog | |
parent | 6ba90d01b2bc73b9ffd9a0ca8305f97ed34efb68 (diff) | |
download | px4-nuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.tar.gz px4-nuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.tar.bz2 px4-nuttx-5a874f322600b650145dcb55bdf51e66fbf4acef.zip |
If now a kernel build, then add the main object in with all of the rest
Diffstat (limited to 'apps/examples/cpuhog')
-rw-r--r-- | apps/examples/cpuhog/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/cpuhog/Makefile b/apps/examples/cpuhog/Makefile index 429a9b3e6..9d62b031a 100644 --- a/apps/examples/cpuhog/Makefile +++ b/apps/examples/cpuhog/Makefile @@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else |