summaryrefslogtreecommitdiff
path: root/LibC/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/Makefile')
-rw-r--r--LibC/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/LibC/Makefile b/LibC/Makefile
index d0ab3ef533..c376122965 100644
--- a/LibC/Makefile
+++ b/LibC/Makefile
@@ -1,4 +1,11 @@
-OBJS = \
+AK_OBJS = \
+ ../AK/StringImpl.o \
+ ../AK/String.o \
+ ../AK/StringBuilder.o \
+ ../AK/FileSystemPath.o \
+ ../AK/kmalloc.o
+
+LIBC_OBJS = \
stdio.o \
unistd.o \
string.o \
@@ -8,8 +15,11 @@ OBJS = \
stdlib.o \
time.o \
utsname.o \
+ assert.o \
entry.o
+OBJS = $(AK_OBJS) $(LIBC_OBJS)
+
LIBRARY = LibC.a
ARCH_FLAGS =
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib
@@ -19,7 +29,7 @@ FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions
OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables
INCLUDE_FLAGS = -I.. -I.
-DEFINES = -DSERENITY -DSANITIZE_PTRS
+DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
CXX = g++-8