aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 16:17:50 +0200
committerMarvin Borner2021-04-02 16:17:50 +0200
commitb62b9d1f33a4911feb9f318ece0c1565f27abf8d (patch)
treeaecea9f7b5bf651b584911cf90c61258b9564556 /libs/libc/Makefile
parentd055495f3dbb62f74809d31a84621d6e86d61d0a (diff)
Replaced target macros
Diffstat (limited to 'libs/libc/Makefile')
-rw-r--r--libs/libc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libc/Makefile b/libs/libc/Makefile
index 1c66f43..d8d58ff 100644
--- a/libs/libc/Makefile
+++ b/libs/libc/Makefile
@@ -27,13 +27,13 @@ ASFLAGS = -f elf32
%.o: %.c
@$(CC) -c $(CFLAGS) $< -o $@
-libc: CFLAGS += -Duserspace
+libc: CFLAGS += -DUSER
libc: $(COBJS)
@$(AS) $(ASFLAGS) crt/crt0.asm -o crt0.o
@mkdir -p ../../build/
@$(AR) rcs ../../build/libc.a crt0.o $+
-libk: CFLAGS += -Dkernel -ffreestanding -I../../kernel/inc/ $(CFLAGS_EXTRA)
+libk: CFLAGS += -DKERNEL -ffreestanding -I../../kernel/inc/ $(CFLAGS_EXTRA)
libk: $(COBJS)
@mkdir -p ../../build/
@$(AR) rcs ../../build/libk.a $+