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
|
|
|
#
|
2020-05-07 22:15:09 +02: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 00:21:28 +01:00
|
|
|
#
|
2020-05-07 22:15:09 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 00:21:28 +01:00
|
|
|
#
|
2020-05-07 22:15:09 +02: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 00:21:28 +01:00
|
|
|
#
|
2007-09-01 20:06:15 +02:00
|
|
|
############################################################################
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2020-05-18 21:42:11 +02:00
|
|
|
include $(TOPDIR)/Make.defs
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2016-03-10 18:56:33 +01:00
|
|
|
include clock/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
|
|
|
|
2020-05-19 11:43:29 +02:00
|
|
|
CFLAGS += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched}
|
|
|
|
|
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))
|
2020-11-28 04:43:30 +01:00
|
|
|
|
2020-11-18 17:44:58 +01:00
|
|
|
makedepfile: $(CSRCS:.c=.ddc) $(ASRCS:.S=.dds)
|
|
|
|
$(call CATFILE, Make.dep, $^)
|
|
|
|
$(call DELFILE, $^)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2020-07-22 09:54:29 +02:00
|
|
|
.depend: Makefile $(SRCS) $(TOPDIR)$(DELIM).config
|
2020-11-18 17:44:58 +01:00
|
|
|
$(Q) $(MAKE) makedepfile
|
2020-03-23 03:44:03 +01:00
|
|
|
$(Q) touch $@
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2020-03-23 03:44:03 +01:00
|
|
|
depend: .depend
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
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)
|
2020-03-23 03:44:03 +01:00
|
|
|
$(call DELFILE, .depend)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
-include Make.dep
|