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