summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2023-06-14 22:51:13 +0200
committercbdev <cb@cbcdn.com>2023-06-14 22:51:13 +0200
commit9fbad1544764c515cb1f22bc552f33bb41206e92 (patch)
tree36b66aee2f956197d28621ac96a922ecee1e2f21 /Makefile
parent1f22af635893d4c3221dffca8f05ea3bb8870028 (diff)
downloadnfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.tar.gz
nfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.tar.bz2
nfcommander-9fbad1544764c515cb1f22bc552f33bb41206e92.zip
Skeleton structure implementation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
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)