diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..373bc3c --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +ROOT:=$(PWD) +SYS_INCLUDE:=-I$(ROOT)/include +SYS_ROOT?=$(ROOT)/sysroot +export SYS_INCLUDE +export SYS_ROOT +export ROOT + +ARCH?=i386 +export ARCH + +SUBDIRS?=libc \ + +.PHONY: all install clean + +all: + for d in $(SUBDIRS); do $(MAKE) -C $$d; done + +install: + install -d $(SYS_ROOT)/usr + install -d $(SYS_ROOT)/lib + install -d $(SYS_ROOT)/bin + install -d $(SYS_ROOT)/sbin + for d in $(SUBDIRS); do $(MAKE) -C $$d install; done + +clean: + for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done |