2007-09-02 02:06:15 +08:00
|
|
|
############################################################################
|
2008-01-08 08:19:24 +08:00
|
|
|
# sched/Makefile
|
2007-02-18 07:21:28 +08:00
|
|
|
#
|
2016-03-11 01:56:33 +08:00
|
|
|
# Copyright (C) 2007-2014, 2016 Gregory Nutt. All rights reserved.
|
2012-02-01 07:39:12 +08:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
2007-02-18 07:21:28 +08:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
2008-01-08 08:19:24 +08:00
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
2007-02-18 07:21:28 +08:00
|
|
|
# used to endorse or promote products derived from this software
|
|
|
|
# without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
2007-09-02 02:06:15 +08:00
|
|
|
############################################################################
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
-include $(TOPDIR)/Make.defs
|
|
|
|
|
2014-10-07 21:41:52 +08:00
|
|
|
ASRCS =
|
|
|
|
CSRCS =
|
|
|
|
|
2014-08-09 02:31:23 +08:00
|
|
|
VPATH =
|
|
|
|
DEPPATH = --dep-path .
|
|
|
|
|
2016-03-11 01:56:33 +08:00
|
|
|
include clock/Make.defs
|
|
|
|
include errno/Make.defs
|
|
|
|
include environ/Make.defs
|
|
|
|
include group/Make.defs
|
2014-08-09 05:30:59 +08:00
|
|
|
include init/Make.defs
|
2014-08-09 04:31:15 +08:00
|
|
|
include irq/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include mqueue/Make.defs
|
|
|
|
include module/Make.defs
|
2014-08-09 05:08:07 +08:00
|
|
|
include paging/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include pthread/Make.defs
|
2014-08-09 07:29:44 +08:00
|
|
|
include sched/Make.defs
|
2014-08-09 03:53:29 +08:00
|
|
|
include semaphore/Make.defs
|
2014-08-09 02:44:44 +08:00
|
|
|
include signal/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include task/Make.defs
|
2014-08-09 04:55:16 +08:00
|
|
|
include timer/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include wdog/Make.defs
|
2014-10-07 21:41:52 +08:00
|
|
|
include wqueue/Make.defs
|
2011-04-13 11:12:51 +08:00
|
|
|
|
2014-08-09 05:52:55 +08:00
|
|
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
2013-01-19 00:37:37 +08:00
|
|
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2013-01-19 00:37:37 +08:00
|
|
|
SRCS = $(ASRCS) $(CSRCS)
|
|
|
|
OBJS = $(AOBJS) $(COBJS)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2013-01-19 00:37:37 +08:00
|
|
|
BIN = libsched$(LIBEXT)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2013-01-19 00:37:37 +08:00
|
|
|
all: $(BIN)
|
2012-11-18 02:54:53 +08:00
|
|
|
.PHONY: context depend clean distclean
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2007-02-28 07:59:20 +08:00
|
|
|
$(AOBJS): %$(OBJEXT): %.S
|
2008-01-09 01:06:21 +08:00
|
|
|
$(call ASSEMBLE, $<, $@)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2007-02-28 07:59:20 +08:00
|
|
|
$(COBJS): %$(OBJEXT): %.c
|
2008-01-09 01:06:21 +08:00
|
|
|
$(call COMPILE, $<, $@)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
$(BIN): $(OBJS)
|
2012-11-16 01:43:29 +08:00
|
|
|
$(call ARCHIVE, $@, $(OBJS))
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2020-03-23 02:15:29 +08:00
|
|
|
Make.dep: Makefile $(SRCS)
|
|
|
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >$@
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2020-03-23 02:15:29 +08:00
|
|
|
depend: Make.dep
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
clean:
|
2012-11-20 23:47:41 +08:00
|
|
|
$(call DELFILE, $(BIN))
|
2008-01-11 02:23:08 +08:00
|
|
|
$(call CLEAN)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
distclean: clean
|
2012-11-20 23:47:41 +08:00
|
|
|
$(call DELFILE, Make.dep)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
-include Make.dep
|