diff options
author | Danny Holman <dholman@gymli.org> | 2024-06-05 13:47:01 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-06-05 13:47:01 -0500 |
commit | 5db066eb5184cc45e7634838b5b0b8c67cb2ae25 (patch) | |
tree | 9201570bb47cf57cd41f7efc8bf764b3ec70b802 /Makefile | |
parent | e5aff92e72a0d0e1c18ddaab80b2efe370f04588 (diff) |
Create build targets for a skeleton libc that only includes enough
functionality to get a cross compiler running.
Signed-off-by: Danny Holman <dholman@gymli.org>
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 |