]>
Commit | Line | Data |
---|---|---|
34dc7c2f BB |
1 | subdir-m += include |
2 | DISTFILES = Makefile.in udmu_util.c udmu.c | |
3 | ||
4 | LIBRARY := libudmu | |
5 | ||
6 | # Compile as kernel module unsupported for libudmu. | |
7 | ||
8 | # Compile as shared library. There's an extra useless host program | |
9 | # here called 'zu' because it was the easiest way I could convince | |
10 | # the kernel build system to construct a user space shared library. | |
11 | ||
12 | HOSTCFLAGS += @HOSTCFLAGS@ | |
13 | HOSTCFLAGS += -I@LIBDIR@/libsolcompat/include | |
14 | HOSTCFLAGS += -I@LIBDIR@/libport/include | |
15 | HOSTCFLAGS += -I@LIBDIR@/libavl/include | |
16 | ||
17 | hostprogs-y := zu | |
18 | always := $(hostprogs-y) | |
19 | ||
20 | zu-objs := zu.o ${LIBRARY}.so | |
21 | ||
22 | ${LIBRARY}-objs += udmu.o |