Fix 8 space tab formatting for non-C files
[akaros.git] / kern / src / Kbuild
1 $(src)/build_info.cid:
2         @echo `git rev-parse HEAD` > $(src)/build_info.cid.tmp
3         @if [ ! -f $(src)/build_info.cid ] || \
4             [ `cmp -s $(src)/build_info.cid $(src)/build_info.cid.tmp` -ne 0 ];\
5             then \
6                 cp $(src)/build_info.cid.tmp $(src)/build_info.cid; fi;
7         @rm -f $(src)/build_info.cid.tmp
8
9 $(src)/build_info.c: $(src)/build_info.cid
10         @echo "/* Automatically generated. DO NOT EDIT! */" > $(@)
11         @echo "" >> $(@)
12         @echo "const char build_info_date[] = { \"`date`\" };"\
13                 >> $(@)
14         @echo "const char build_info_commitid[] = { \"`cat $(src)/build_info.cid`\" };"\
15                 >> $(@)
16         @echo "const char build_info_version[] = { \"$(KERNELVERSION)\" };"\
17                 >> $(@)
18         @echo "const char build_info_version_name[] = { \"$(VERNAME)\" };"\
19                 >> $(@)
20
21 $(src)/kconfig_info.c: .config
22         @scripts/make_kconfig_info.sh $< $@
23
24 clean-files += build_info.c build_info.cid kconfig_info.c
25
26 obj-y                                           += alarm.o
27 obj-y                                           += apipe.o
28 obj-y                                           += arena.o
29 obj-y                                           += arsc.o
30 obj-y                                           += atomic.o
31 obj-y                                           += bitmap.o
32 obj-y                                           += build_info.o
33 obj-y                                           += ceq.o
34 obj-y                                           += completion.o
35 obj-y                                           += coreprov.o
36 obj-y                                           += ctype.o
37 obj-y                                           += dmapool.o
38 obj-y                                           += elf.o
39 obj-y                                           += env.o
40 obj-y                                           += err.o
41 obj-$(CONFIG_ETH_AUDIO)                         += eth_audio.o
42 obj-y                                           += event.o
43 obj-y                                           += ex_table.o
44 obj-y                                           += fdtap.o
45 obj-$(CONFIG_COREALLOC_FCFS)                    += corealloc_fcfs.o
46 obj-y                                           += find_next_bit.o
47 obj-y                                           += find_last_bit.o
48 obj-y                                           += hashtable.o
49 obj-y                                           += hexdump.o
50 obj-y                                           += init.o
51 obj-y                                           += kconfig_info.o
52 obj-y                                           += kdebug.o
53 obj-y                                           += kmalloc.o
54 obj-y                                           += kreallocarray.o
55 obj-y                                           += ktest/
56 obj-y                                           += kthread.o
57 obj-y                                           += manager.o
58 obj-y                                           += mm.o
59 obj-y                                           += monitor.o
60 obj-y                                           += multiboot.o
61 obj-y                                           += net/
62 obj-y                                           += ns/
63 obj-y                                           += profiler.o
64 obj-$(CONFIG_COREALLOC_PACKED) += corealloc_packed.o
65 obj-y                                           += page_alloc.o
66 obj-y                                           += pagemap.o
67 obj-y                                           += percpu.o
68 obj-y                                           += pmap.o
69 obj-y                                           += printf.o
70 obj-y                                           += printfmt.o
71 obj-y                                           += process.o
72 obj-y                                           += radix.o
73 obj-y                                           += readline.o
74 obj-y                                           += rendez.o
75 obj-y                                           += rcu.o
76 obj-y                                           += rcu_tree_helper.o
77 obj-y                                           += rwlock.o
78 obj-y                                           += scatterlist.o
79 obj-y                                           += schedule.o
80 obj-y                                           += slab.o
81 obj-y                                           += smallidpool.o
82 obj-y                                           += smp.o
83 obj-y                                           += string.o
84 obj-y                                           += strstr.o
85 obj-y                                           += syscall.o
86 obj-y                                           += taskqueue.o
87 obj-y                                           += time.o
88 obj-y                                           += trace.o
89 obj-y                                           += trap.o
90 obj-y                                           += ucq.o
91 obj-y                                           += umem.o
92 obj-y                                           += vfs.o
93 obj-y                                           += vsprintf.o