summaryrefslogtreecommitdiff
path: root/euler/makefile
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-07-27 16:57:39 -0400
committerBenji Dial <benji@benjidial.net>2024-07-27 16:57:39 -0400
commitfbfc078e9f44c1c1e95c9c484f1d5650bcf631b7 (patch)
treecab539c8cbbac81d895b6f8be695f3f53bf8f4d5 /euler/makefile
parent9af5588c30c4126a2800aae1afcb0de2c373dc6c (diff)
downloadhilbert-os-fbfc078e9f44c1c1e95c9c484f1d5650bcf631b7.tar.gz
lots and lots of userspace stuff
Diffstat (limited to 'euler/makefile')
-rw-r--r--euler/makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/euler/makefile b/euler/makefile
index 1767d75..62716f6 100644
--- a/euler/makefile
+++ b/euler/makefile
@@ -1,7 +1,6 @@
-LIBSTDCPP_SOURCES = euler/stream.cpp strings/strlen.cpp euler/syscall.asm \
- euler/entry.cpp io/fopen.cpp euler/gcc.asm memory/delete.cpp euler/heap.cpp \
- memory/new.cpp io/fclose.cpp io/fread.cpp strings/memcpy.cpp io/fseek.cpp \
- euler/start_process.cpp
+LIBC_SOURCES = \
+ entry.cpp std/string.cpp std/cstring.cpp syscall.cpp std/cstdlib.cpp \
+ heap.cpp syscall.asm std/cctype.cpp std/cstdio.cpp stream.cpp
clean:
rm -rf build
@@ -12,12 +11,12 @@ build/%.asm.o: source/%.asm
build/%.cpp.o: source/%.cpp
@mkdir -p $(@D)
- $(HILBERT_CC) -c $^ -o $@
+ $(HILBERT_CC) -ffreestanding -c $^ -o $@
build/crt0.o: build/empty.asm.o
cp $^ $@
-build/libc.a: build/empty.asm.o
+build/libc.a: ${LIBC_SOURCES:%=build/%.o}
$(HILBERT_AR) rcs $@ $^
build/libg.a: build/empty.asm.o
@@ -25,6 +24,3 @@ build/libg.a: build/empty.asm.o
build/libm.a: build/empty.asm.o
$(HILBERT_AR) rcs $@ $^
-
-build/libstdc++.a: ${LIBSTDCPP_SOURCES:%=build/%.o}
- $(HILBERT_AR) rcs $@ $^