mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 16:41:39 +00:00
febe3ed322
Add a small shared library that demonstrates the usage of the IOCTL interface. This library can be linked to but, is intended to be loaded and used by higher level languages Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 lines
263 B
Makefile
14 lines
263 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
CFLAGS += -D__EXPORTED_HEADERS__ -I../../../include/uapi -I../../../include
|
|
|
|
TARGET = dbc_library.so
|
|
|
|
all: $(TARGET)
|
|
|
|
dbc_library.so: dbc.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $<
|
|
chmod -x $@
|
|
|
|
clean:
|
|
$(RM) $(TARGET)
|