2019-12-27 12:40:26 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
#
|
2020-01-02 18:52:25 +00:00
|
|
|
# Copyright (C) 2018-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
2019-12-27 12:40:26 +00:00
|
|
|
|
2020-01-04 13:46:27 +00:00
|
|
|
all: config uapi stringlist
|
2019-12-27 12:40:26 +00:00
|
|
|
|
|
|
|
CFLAGS ?= -O3 -march=native -g
|
2020-01-04 13:46:27 +00:00
|
|
|
CFLAGS += -fsanitize=fuzzer -fsanitize=address -std=gnu11 -idirafter ../uapi
|
2019-12-27 13:57:09 +00:00
|
|
|
CC := clang
|
2019-12-27 12:40:26 +00:00
|
|
|
|
|
|
|
config: config.c ../config.c ../encoding.c
|
2019-12-27 13:57:09 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
uapi: uapi.c ../ipc.c ../curve25519.c ../encoding.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
2019-12-27 12:40:26 +00:00
|
|
|
|
2020-01-04 13:46:27 +00:00
|
|
|
stringlist: stringlist.c ../ipc.c ../curve25519.c ../encoding.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ $<
|
|
|
|
|
2019-12-27 12:40:26 +00:00
|
|
|
clean:
|
2020-01-04 13:46:27 +00:00
|
|
|
rm -f config uapi stringlist
|
2019-12-27 12:40:26 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|