gluon-hex-to-b64 takes base64 content such as a fastd private key in legacy form via stdin and emits it in base64 encoded (WireGuard) form. Provides basic return codes.
10 lines
330 B
Makefile
10 lines
330 B
Makefile
all: respondd.so gluon-hex-to-b64
|
|
|
|
CFLAGS += -Wall -Werror-implicit-function-declaration
|
|
|
|
gluon-hex-to-b64: gluon-hex-to-b64.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS) -lubox
|
|
|
|
respondd.so: respondd.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -fPIC -D_GNU_SOURCE -o $@ $^ $(LDLIBS) -lgluonutil -lubus
|