2007-09-01 18:06:15 +00:00
|
|
|
############################################################################
|
2008-01-08 00:19:24 +00:00
|
|
|
# sched/Makefile
|
2007-02-17 23:21:28 +00:00
|
|
|
#
|
2020-05-07 14:15:09 -06: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-17 23:21:28 +00:00
|
|
|
#
|
2020-05-07 14:15:09 -06:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-17 23:21:28 +00:00
|
|
|
#
|
2020-05-07 14:15:09 -06: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-17 23:21:28 +00:00
|
|
|
#
|
2007-09-01 18:06:15 +00:00
|
|
|
############################################################################
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2020-05-19 03:42:11 +08:00
|
|
|
include $(TOPDIR)/Make.defs
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2016-03-10 11:56:33 -06:00
|
|
|
include clock/Make.defs
|
|
|
|
include environ/Make.defs
|
|
|
|
include group/Make.defs
|
2014-08-08 15:30:59 -06:00
|
|
|
include init/Make.defs
|
2014-08-08 14:31:15 -06:00
|
|
|
include irq/Make.defs
|
2016-03-10 11:56:33 -06:00
|
|
|
include mqueue/Make.defs
|
|
|
|
include module/Make.defs
|
2014-08-08 15:08:07 -06:00
|
|
|
include paging/Make.defs
|
2016-03-10 11:56:33 -06:00
|
|
|
include pthread/Make.defs
|
2014-08-08 17:29:44 -06:00
|
|
|
include sched/Make.defs
|
2014-08-08 13:53:29 -06:00
|
|
|
include semaphore/Make.defs
|
2014-08-08 12:44:44 -06:00
|
|
|
include signal/Make.defs
|
2016-03-10 11:56:33 -06:00
|
|
|
include task/Make.defs
|
2014-08-08 14:55:16 -06:00
|
|
|
include timer/Make.defs
|
2016-03-10 11:56:33 -06:00
|
|
|
include wdog/Make.defs
|
2014-10-07 07:41:52 -06:00
|
|
|
include wqueue/Make.defs
|
2011-04-13 03:12:51 +00:00
|
|
|
|
2020-05-19 17:43:29 +08:00
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched}
|
|
|
|
|
2014-08-08 15:52:55 -06:00
|
|
|
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
2013-01-18 16:37:37 +00:00
|
|
|
COBJS = $(CSRCS:.c=$(OBJEXT))
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2013-01-18 16:37:37 +00:00
|
|
|
SRCS = $(ASRCS) $(CSRCS)
|
|
|
|
OBJS = $(AOBJS) $(COBJS)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2013-01-18 16:37:37 +00:00
|
|
|
BIN = libsched$(LIBEXT)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2013-01-18 16:37:37 +00:00
|
|
|
all: $(BIN)
|
2012-11-17 18:54:53 +00:00
|
|
|
.PHONY: context depend clean distclean
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2007-02-27 23:59:20 +00:00
|
|
|
$(AOBJS): %$(OBJEXT): %.S
|
2008-01-08 17:06:21 +00:00
|
|
|
$(call ASSEMBLE, $<, $@)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2007-02-27 23:59:20 +00:00
|
|
|
$(COBJS): %$(OBJEXT): %.c
|
2008-01-08 17:06:21 +00:00
|
|
|
$(call COMPILE, $<, $@)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
|
|
|
$(BIN): $(OBJS)
|
2012-11-15 17:43:29 +00:00
|
|
|
$(call ARCHIVE, $@, $(OBJS))
|
2020-11-28 11:43:30 +08:00
|
|
|
|
2020-11-18 13:44:58 -03:00
|
|
|
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
|
|
$(call CATFILE, Make.dep, $^)
|
|
|
|
$(call DELFILE, $^)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2020-07-22 16:54:29 +09:00
|
|
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
2020-11-18 13:44:58 -03:00
|
|
|
$(Q) $(MAKE) makedepfile
|
2020-03-23 11:44:03 +09:00
|
|
|
$(Q) touch $@
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2020-03-23 11:44:03 +09:00
|
|
|
depend: .depend
|
2007-02-17 23:21:28 +00:00
|
|
|
|
|
|
|
clean:
|
2012-11-20 15:47:41 +00:00
|
|
|
$(call DELFILE, $(BIN))
|
2008-01-10 18:23:08 +00:00
|
|
|
$(call CLEAN)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2012-11-20 15:47:41 +00:00
|
|
|
$(call DELFILE, Make.dep)
|
2020-03-23 11:44:03 +09:00
|
|
|
$(call DELFILE, .depend)
|
2007-02-17 23:21:28 +00:00
|
|
|
|
|
|
|
-include Make.dep
|