Fix that way that NxWight UnitTests are reigistered as NSH builtin apps

This commit is contained in:
Gregory Nutt 2013-05-30 16:49:20 -06:00
parent 90d063e9dc
commit d69d3cd080
39 changed files with 194 additions and 133 deletions

View file

@ -1,5 +1,4 @@
/Make.dep
/.context
/.depend
/.built
/*.asm

View file

@ -1,7 +1,7 @@
#################################################################################
# NxWidgets/UnitTests/CButtonArray/Makefile
#
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
# Copyright (C) 2012-2013 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@ -142,15 +142,18 @@ else
endif
$(Q) touch .built
# Standard housekeeping targets
# Register NSH built-in application
.context:
ifeq ($(CONFIG_NSH_BUILTIN_APPS),y)
$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile
$(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main)
endif
$(Q) touch $@
context: .context
context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat
else
context:
endif
# Standard housekeeping targets
.depend: Makefile $(SRCS)
$(Q) $(MKDEP) $(ROOTDEPPATH) $(CXX) -- $(CXXFLAGS) -- $(SRCS) >Make.dep
@ -159,6 +162,7 @@ context: .context
depend: .depend
clean:
$(call DELFILE, $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat)
$(call DELFILE, .built)
$(call CLEAN)