aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-06-24 22:55:29 -0400
committerIan Moffett <ian@osmora.org>2024-06-24 22:55:29 -0400
commit236963e7563be3e3f8220dac7bb4af446928e194 (patch)
treee521ea226db0345bbb3679fffe09d96254b7dc73 /lib/libc/Makefile
parent214eadc62b5578f76c98a38a28f8b3d80ac4d6ad (diff)
Clean out for expt
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
deleted file mode 100644
index 6eeb9f3..0000000
--- a/lib/libc/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-CFLAGS = -c -fno-stack-protector -nostdlib -static -Iinclude/
-LIBC_CFILES = $(shell find src/ -name "*.c")
-LIBC_ASMFILES = $(shell find src/ -name "*.S")
-
-LIBC_OBJ = $(LIBC_CFILES:.c=.o)
-LIBC_ASMOBJ = $(LIBC_ASMFILES:.S=.S.o)
-
-all: $(LIBC_ASMOBJ) $(LIBC_OBJ) build/libc.a
-
-build/libc.a: build/
- ar rcs build/libc.a $(LIBC_OBJ) $(LIBC_ASMOBJ)
-
-#build/ld.so: build/ linker/entry.c linker/entry.S
-# mkdir -p $(@D)
-# $(CC) $(CFLAGS) linker/entry.S -o build/entry.S.o
-# $(CC) $(CFLAGS) linker/entry.c -o build/entry.o
-# $(LD) -znoexecstack $(LIBC_OBJ) \
-# build/entry.o build/entry.S.o -o $@
-
-%.o: %.c
- $(CC) $(CFLAGS) $< -o $@
-
-%.S.o: %.S
- $(CC) $(CFLAGS) $< -o $@
-
-.PHONY:
-build/:
- mkdir -p build/
-
-.PHONY: clean
-clean:
- rm -f $(LIBC_OBJ) $(LIBC_ASMOBJ)
- rm -rf build/
- rm -f $(shell cat include/sys/.sys_export)
- rm include/sys/.sys_export include/sys/.gitignore