Files
mckernel/Makefile.in
Yutaka Ishikawa ishikawa@is.s.u-tokyo.ac.jp dc9f282d58 adding the mcshutdown command
2013-11-19 06:08:43 +09:00

47 lines
1.0 KiB
Makefile
Executable File

TARGET = @TARGET@
SBINDIR = @SBINDIR@
all::
@(cd executer/kernel; make modules)
@(cd executer/user; make)
@case "$(TARGET)" in \
attached-mic | builtin-x86 | builtin-mic) \
(cd kernel; make) \
;; \
*) \
echo "unknown target $(TARGET)" >&2 \
exit 1 \
;; \
esac
install::
@(cd executer/kernel; make install)
@(cd executer/user; make install)
@case "$(TARGET)" in \
attached-mic | builtin-x86 | builtin-mic) \
(cd kernel; make install) \
;; \
*) \
echo "unknown target $(TARGET)" >&2 \
exit 1 \
;; \
esac
if [ "$(TARGET)" = attached-mic ]; then \
mkdir -p -m 755 $(SBINDIR); \
install -m 755 arch/x86/tools/mcreboot-attached-mic.sh $(SBINDIR)/mcreboot; \
install -m 755 arch/x86/tools/mcshutdown-attached-mic.sh $(SBINDIR)/mcshutdown; \
fi
clean::
@(cd executer/kernel; make clean)
@(cd executer/user; make clean)
@case "$(TARGET)" in \
attached-mic | builtin-x86 | builtin-mic) \
(cd kernel; make clean) \
;; \
*) \
echo "unknown target $(TARGET)" >&2 \
exit 1 \
;; \
esac