summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-01 12:20:45 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-01 12:20:45 +0200
commit5cac9acd3aedc8043d4272d93c56805c46ff6214 (patch)
treeba9eb5ef86f7cf7afd4f7ab02de1d6bb86715632 /Makefile
parent66b32658d2e5aa99493dcb3abcb73cdb2cc6f0b5 (diff)
downloadTCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.tar.gz
TCE-5cac9acd3aedc8043d4272d93c56805c46ff6214.zip
Some cleanup ; relocated the kernel at 0xC0000000
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1da4ce5..c5667d0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,18 @@
.PHONY: clean, mrproper, Init.rfs, floppy, commit
-Projects = kernel library modules/test
+Projects = common kernel user/lib user/test
QemuCmd = qemu-system-i386
-Floppy = Grapes.fl.img
+BasePath = $(shell pwd)
+SrcPath = $(BasePath)/src
+
+Floppy = TCE.fl.img
all:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Building $$p"; \
- make -C src/$$p; \
+ BasePath=$(BasePath) SrcPath=$(SrcPath) make -C src/$$p || exit -1; \
done
rebuild: mrproper all
@@ -18,14 +21,14 @@ clean:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Cleaning $$p"; \
- make -C src/$$p clean -s; \
+ BasePath=$(BasePath) SrcPath=$(SrcPath) make -C src/$$p clean -s; \
done
mrproper:
@for p in $(Projects); do \
echo ""; echo "----------------------"; \
echo "=> Cleaning $$p"; \
- make -C src/$$p mrproper -s; \
+ BasePath=$(BasePath) SrcPath=$(SrcPath) make -C src/$$p mrproper -s; \
done
commit: mrproper