From 21b6441f0b44533f92883b38c0bccd1c2c4358fe Mon Sep 17 00:00:00 2001 From: David Allen Date: Wed, 19 Jun 2024 10:42:30 -0600 Subject: [PATCH] Added Makefile to make building driver and plugins easier --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7b0fd12 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ + +# build everything at once +all: plugins exe + +# build the main executable to make configs +main: exe +exe: + go build --tags=all -o configurator + +# build all of the generators into plugins +plugins: + mkdir -p lib + go build -buildmode=plugin -o lib/conman.so internal/generator/plugins/conman/conman.go + go build -buildmode=plugin -o lib/coredhcp.so internal/generator/plugins/coredhcp/coredhcp.go + go build -buildmode=plugin -o lib/dnsmasq.so internal/generator/plugins/dnsmasq/dnsmasq.go + go build -buildmode=plugin -o lib/powerman.so internal/generator/plugins/powerman/powerman.go + go build -buildmode=plugin -o lib/syslog.so internal/generator/plugins/syslog/syslog.go