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
|
|
|
#
|
2024-09-11 19:45:11 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2020-05-08 04:15:09 +08:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
2007-02-18 07:21:28 +08:00
|
|
|
#
|
2020-05-08 04:15:09 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 07:21:28 +08:00
|
|
|
#
|
2020-05-08 04:15:09 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
2007-02-18 07:21:28 +08:00
|
|
|
#
|
2007-09-02 02:06:15 +08:00
|
|
|
############################################################################
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2020-05-19 03:42:11 +08:00
|
|
|
include $(TOPDIR)/Make.defs
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2023-01-27 16:28:19 +08:00
|
|
|
include addrenv/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include clock/Make.defs
|
|
|
|
include environ/Make.defs
|
2024-07-29 09:11:28 +08:00
|
|
|
include event/Make.defs
|
2016-03-11 01:56:33 +08:00
|
|
|
include group/Make.defs
|
2014-08-09 05:30:59 +08:00
|
|
|
include init/Make.defs
|
2023-10-27 21:57:33 +08:00
|
|
|
include instrument/Make.defs
|
2014-08-09 04:31:15 +08:00
|
|
|
include irq/Make.defs
|
2022-12-06 14:33:13 +08:00
|
|
|
include misc/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
|
2022-05-28 00:43:49 +08:00
|
|
|
include tls/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
|
|
|
|
2022-11-01 21:47:53 +08:00
|
|
|
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)sched
|
2020-05-19 17:43:29 +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))
|
2020-11-28 11:43:30 +08:00
|
|
|
|
2020-07-22 15:54:29 +08:00
|
|
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
2024-06-26 16:22:05 +08:00
|
|
|
$(Q) $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep
|
2020-03-23 10:44:03 +08:00
|
|
|
$(Q) touch $@
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2020-03-23 10:44:03 +08:00
|
|
|
depend: .depend
|
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)
|
2020-03-23 10:44:03 +08:00
|
|
|
$(call DELFILE, .depend)
|
2007-02-18 07:21:28 +08:00
|
|
|
|
|
|
|
-include Make.dep
|