Async error handling
[akaros.git] / lib / Makefrag
index 60bf6f6..19799ea 100644 (file)
@@ -1,14 +1,18 @@
+NATIVECC := ivycc
+
 OBJDIRS += lib
 
 LIB_SRCFILES :=                lib/console.c \
                        lib/libmain.c \
+                       lib/null.c \
                        lib/exit.c \
                        lib/panic.c \
                        lib/printf.c \
                        lib/printfmt.c \
                        lib/readline.c \
                        lib/string.c \
-                       lib/syscall.c
+                       lib/syscall.c \
+                       lib/asynccall.c
 
 
 
@@ -19,12 +23,12 @@ LIB_OBJFILES := $(patsubst lib/%.S, $(OBJDIR)/lib/%.o, $(LIB_OBJFILES))
 $(OBJDIR)/lib/%.o: lib/%.c
        @echo + cc[USER] $<
        @mkdir -p $(@D)
-       $(V)$(CC) -nostdinc $(USER_CFLAGS) -c -o $@ $<
+       $(V)$(NATIVECC) -nostdinc $(USER_CFLAGS) -c -o $@ $<
 
 $(OBJDIR)/lib/%.o: lib/%.S
        @echo + as[USER] $<
        @mkdir -p $(@D)
-       $(V)$(CC) -nostdinc $(USER_CFLAGS) -c -o $@ $<
+       $(V)$(NATIVECC) -nostdinc $(USER_CFLAGS) -c -o $@ $<
 
 $(OBJDIR)/lib/libjos.a: $(LIB_OBJFILES)
        @echo + ar $@