File: Kbuild

package info (click to toggle)
klibc 2.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-backports, jessie-kfreebsd
  • size: 5,376 kB
  • ctags: 7,412
  • sloc: ansic: 48,256; asm: 2,532; perl: 781; makefile: 197; sh: 152
file content (37 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Kbuild file for kinit
#

# library part of kinit. Is used by programs in sub-directories (resume et al)
lib-y   := name_to_dev.o devname.o getarg.o capabilities.o
# use lib for kinit
kinit-y  := lib.a

kinit-y  += kinit.o do_mounts.o ramdisk_load.o initrd.o
kinit-y  += getintfile.o readfile.o xpio.o
kinit-y  += do_mounts_md.o do_mounts_mtd.o nfsroot.o

kinit-y  += ipconfig/
kinit-y  += nfsmount/
kinit-y  += run-init/
kinit-y  += fstype/
kinit-y  += resume/

static-y := kinit
shared-y := kinit.shared
kinit.shared-y := $(kinit-y)

# Additional include paths files
KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
	       -I$(srctree)/$(src)/ipconfig \
  	       -I$(srctree)/$(src)/nfsmount \
  	       -I$(srctree)/$(src)/resume \
 	       -I$(srctree)/$(src)/run-init

# Cleaning
targets += kinit kinit.g kinit.shared kinit.shared.g
subdir- := fstype ipconfig nfsmount resume run-init


# install binary
install-y := kinit kinit.shared