Remove errstrings.h, in favor of error.c
[akaros.git] / kern / src / Kbuild
index 3aaf92d..0981c66 100644 (file)
@@ -1,29 +1,50 @@
+
+$(src)/error.c: $(AKAROS_ROOT)/include/ros/errno.h
+       @echo "// This file was automatically generated not edit" > $(@)
+       @echo ""                               >> $(@)
+       @echo "const char *errno_strings[] = {" >> $(@)
+       @cat $(^) | $(AKAROS_ROOT)/scripts/parse_errno.sh >> $(@)
+       @echo "};"                             >> $(@)
+       @echo "const int MAX_ERRNO = sizeof(errno_strings)/sizeof(errno_strings[0]);" >> $(@)
+
 obj-y                                          += alarm.o
 obj-y                                          += apipe.o
 obj-y                                          += arsc.o
 obj-y                                          += atomic.o
+obj-y                                          += bitmap.o
 obj-y                                          += blockdev.o
+obj-y                                          += ceq.o
 obj-y                                          += colored_caches.o
 obj-y                                          += console.o
+obj-y                                          += ctype.o
 obj-y                                          += devfs.o
+obj-y                                          += dmapool.o
 obj-y                                          += elf.o
 obj-y                                          += env.o
+obj-y                                          += err.o
+obj-y                                          += error.o
+obj-$(CONFIG_ETH_AUDIO)                += eth_audio.o
 obj-y                                          += event.o
 obj-y                                          += ext2fs.o
+obj-y                                          += fdtap.o
+obj-y                                          += find_next_bit.o
+obj-y                                          += find_last_bit.o
 obj-y                                          += frontend.o
 obj-y                                          += hashtable.o
+obj-y                                          += hexdump.o
 obj-y                                          += init.o
 obj-y                                          += kdebug.o
 obj-y                                          += kfs.o
 obj-y                                          += kmalloc.o
+obj-y                                          += ktest/
 obj-y                                          += kthread.o
 obj-y                                          += manager.o
 obj-y                                          += mm.o
 obj-y                                          += monitor.o
 obj-y                                          += multiboot.o
 obj-y                                          += net/
-obj-y                                          += net.o
-obj-$(CONFIG_ETH_AUDIO)                += eth_audio.o
+obj-y                                          += ns/
+obj-y                                          += oprofile/
 obj-y                                          += page_alloc.o
 obj-y                                          += pagemap.o
 obj-y                                          += pmap.o
@@ -32,18 +53,21 @@ obj-y                                               += printfmt.o
 obj-y                                          += process.o
 obj-y                                          += radix.o
 obj-y                                          += readline.o
+obj-y                                          += rendez.o
 obj-y                                          += rwlock.o
+obj-y                                          += scatterlist.o
 obj-y                                          += schedule.o
 obj-y                                          += slab.o
+obj-y                                          += smallidpool.o
 obj-y                                          += smp.o
-obj-y                                          += socket.o
 obj-y                                          += string.o
+obj-y                                          += strstr.o
 obj-y                                          += syscall.o
-obj-y                                          += sysevent.o
-obj-y                                          += testing.o
+obj-y                                          += taskqueue.o
 obj-y                                          += time.o
 obj-y                                          += trace.o
 obj-y                                          += trap.o
 obj-y                                          += ucq.o
 obj-y                                          += umem.o
 obj-y                                          += vfs.o
+obj-y                                          += vsprintf.o