2021-02-24 10:07:32 +00:00
|
|
|
CFLAGS = -std=gnu99 -pie -fPIC -pedantic -Wno-imports -Wunused -Wno-missing-field-initializers -Wextra -Wunreachable-code -lsystemd -O3
|
2021-02-24 08:13:25 +00:00
|
|
|
|
|
|
|
all: wireguard-mount wireguard-resolve
|
|
|
|
|
|
|
|
wireguard-mount: mount-daemon/wireguard-mount.c
|
|
|
|
mkdir -p bin
|
|
|
|
gcc $(CFLAGS) -o bin/wireguard-mount mount-daemon/wireguard-mount.c
|
|
|
|
|
|
|
|
wireguard-resolve: resolver/resolve.c resolver/resolve.s
|
|
|
|
mkdir -p bin
|
|
|
|
gcc -shared -o bin/wireguard-resolve.so -nostdlib -fPIC resolver/resolve.c resolver/resolve.s
|