summaryrefslogtreecommitdiffstats
path: root/usr/kinit/resume/Kbuild
blob: c804a8508bb0b6757350917dacf197dfeb0e0ee9 (plain)
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
#
# Kbuild file for resume
#

static-y := static/resume
shared-y := shared/resume

# common .o files
objs := resume.o resumelib.o

# TODO - do we want a stripped version
# TODO - do we want the static.g + shared.g directories?

# Create lib.a with all object files (used by kinit)
lib-y := $(objs)

# Additional include paths files
KLIBCCFLAGS += -I$(srctree)/$(src)/..

# .o files used to built executables
static/resume-y   := $(objs)
static/resume-lib := ../lib.a
shared/resume-y   := $(objs)
shared/resume-lib := ../lib.a

# Cleaning
clean-dirs := static shared

# install binary
ifdef KLIBCSHAREDFLAGS
install-y := $(shared-y)
else
install-y := $(static-y)
endif