From 267c6a928789c7d0600935fea88fcdbddcf1ea58 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 19 Apr 2023 14:19:49 +0200 Subject: Added Guix manifest file and new make target. * Makefile: Added sanitize target * manifest.scm: Added --- Makefile | 6 +++++- manifest.scm | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 manifest.scm diff --git a/Makefile b/Makefile index 6a4177a..62c49be 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ CC=gcc CFLAGS?=-O2 -Wall -Wextra -Werror +PFLAGS=-std=c99 -pedantic PREFIX?=/usr/local all: lpass +sanitize: lpass.c + $(CC) $(PFLAGS) -g -fsanitize=undefined -fsanitize=leak -fsanitize=address -fno-omit-frame-pointer -fanalyzer -lcrypto lpass.c + lpass: lpass.c - $(CC) -std=c99 -pedantic $(CFLAGS) -lcrypto -o lpass lpass.c + $(CC) $(PFLAGS) $(CFLAGS) -lcrypto -o lpass lpass.c clean: rm -rf lpass diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..0f2c50f --- /dev/null +++ b/manifest.scm @@ -0,0 +1,12 @@ +(use-modules + (guix profiles) + ;; ((guix licenses) :prefix license:) + (gnu packages base) + (gnu packages commencement) + (gnu packages tls)) + +(packages->manifest + (list + gcc-toolchain + gnu-make + openssl)) -- cgit v1.2.3