From 9fbad1544764c515cb1f22bc552f33bb41206e92 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 14 Jun 2023 22:51:13 +0200 Subject: Skeleton structure implementation --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9cb714b --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.PHONY: all + +CFLAGS += -g -Wall -Wpedantic +CORE_OBJS = control.o reader.o config.o +PLUGINS = reader_yhy.so + +%.so: CFLAGS += -shared -fPIC + +%.so :: %.c %.h + $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS) + +nfcommander: LDLIBS = -ldl + +all: nfcommander $(PLUGINS) + +nfcommander: nfcommander.c nfcommander.h $(CORE_OBJS) + +clean: + $(RM) nfcommander + $(RM) $(CORE_OBJS) -- cgit v1.2.3