2007-09-01 20:06:15 +02:00
|
|
|
############################################################################
|
2008-01-08 01:19:24 +01:00
|
|
|
# sched/Makefile
|
2007-02-18 00:21:28 +01:00
|
|
|
#
|
2016-03-10 18:56:33 +01:00
|
|
|
# Copyright (C) 2007-2014, 2016 Gregory Nutt. All rights reserved.
|
2012-02-01 00:39:12 +01:00
|
|
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
2007-02-18 00:21:28 +01: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 01:19:24 +01:00
|
|
|
# 3. Neither the name NuttX nor the names of its contributors may be
|
2007-02-18 00:21:28 +01: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-01 20:06:15 +02:00
|
|
|
############################################################################
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
-include $(TOPDIR)/Make.defs
|
|
|
|
|
2014-10-07 15:41:52 +02:00
|
|
|
ASRCS =
|
|
|
|
CSRCS =
|
|
|
|
|
2014-08-08 20:31:23 +02:00
|
|
|
VPATH =
|
|
|
|
DEPPATH = --dep-path .
|
|
|
|
|
2016-03-10 18:56:33 +01:00
|
|
|
include clock/Make.defs
|
|
|
|
include errno/Make.defs
|
|
|
|
include environ/Make.defs
|
|
|
|
include group/Make.defs
|
2014-08-08 23:30:59 +02:00
|
|
|
include init/Make.defs
|
2014-08-08 22:31:15 +02:00
|
|
|
include irq/Make.defs
|
2016-03-10 18:56:33 +01:00
|
|
|
include mqueue/Make.defs
|
|
|
|
include module/Make.defs
|
2014-08-08 23:08:07 +02:00
|
|
|
include paging/Make.defs
|
2016-03-10 18:56:33 +01:00
|
|
|
include pthread/Make.defs
|
2014-08-09 01:29:44 +02:00
|
|
|
include sched/Make.defs
|
2014-08-08 21:53:29 +02:00
|
|
|
include semaphore/Make.defs
|
2014-08-08 20:44:44 +02:00
|
|
|
include signal/Make.defs
|
2016-03-10 18:56:33 +01:00
|
|
|
include task/Make.defs
|
2014-08-08 22:55:16 +02:00
|
|
|
include timer/Make.defs
|
2016-03-10 18:56:33 +01:00
|
|
|
include wdog/Make.defs
|
2014-10-07 15:41:52 +02:00
|
|
|
include wqueue/Make.defs
|
2011-04-13 05:12:51 +02:00
|
|
|
|
2014-08-08 23:52:55 +02:00
|
|
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
2013-01-18 17:37:37 +01:00
|
|
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2013-01-18 17:37:37 +01:00
|
|
|
SRCS = $(ASRCS) $(CSRCS)
|
|
|
|
OBJS = $(AOBJS) $(COBJS)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2013-01-18 17:37:37 +01:00
|
|
|
BIN = libsched$(LIBEXT)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2013-01-18 17:37:37 +01:00
|
|
|
all: $(BIN)
|
2012-11-17 19:54:53 +01:00
|
|
|
.PHONY: context depend clean distclean
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-02-28 00:59:20 +01:00
|
|
|
$(AOBJS): %$(OBJEXT): %.S
|
2008-01-08 18:06:21 +01:00
|
|
|
$(call ASSEMBLE, $<, $@)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-02-28 00:59:20 +01:00
|
|
|
$(COBJS): %$(OBJEXT): %.c
|
2008-01-08 18:06:21 +01:00
|
|
|
$(call COMPILE, $<, $@)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
$(BIN): $(OBJS)
|
2012-11-15 18:43:29 +01:00
|
|
|
$(call ARCHIVE, $@, $(OBJS))
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
.depend: Makefile $(SRCS)
|
2014-08-08 20:31:23 +02:00
|
|
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
2012-11-11 19:36:28 +01:00
|
|
|
$(Q) touch $@
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
depend: .depend
|
|
|
|
|
|
|
|
clean:
|
2012-11-20 16:47:41 +01:00
|
|
|
$(call DELFILE, $(BIN))
|
2008-01-10 19:23:08 +01:00
|
|
|
$(call CLEAN)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
distclean: clean
|
2012-11-20 16:47:41 +01:00
|
|
|
$(call DELFILE, Make.dep)
|
|
|
|
$(call DELFILE, .depend)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
-include Make.dep
|