From ede0817cbd8ca83f136951e1a97dc97f11a68b71 Mon Sep 17 00:00:00 2001 From: emma Date: Mon, 14 Aug 2023 00:01:29 -0600 Subject: [PATCH] minor changes to license headers and to compilation --- Makefile | 9 +++++---- src/cat.c | 2 +- src/false.c | 2 +- src/true.c | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 887aefd..b620128 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 2023 YAC +# Copyright (c) 2023 Emma Tebibyte # SPDX-License-Identifier: FSFAP # # Copying and distribution of this file, with or without modification, are @@ -8,6 +8,7 @@ .POSIX: PREFIX=/usr/local/bin +CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto build: build_dir cat false true @@ -15,13 +16,13 @@ clean: build_dir rm -rf build/ cat: build_dir - cc -o build/cat src/cat.c + cc $(CFLAGS) -o build/cat src/cat.c false: build_dir - cc -o build/false src/false.c + cc $(CFLAGS) -o build/false src/false.c true: build_dir - cc -o build/true src/true.c + cc $(CFLAGS) -o build/true src/true.c build_dir: mkdir -p build diff --git a/src/cat.c b/src/cat.c index 6f0d380..d684768 100644 --- a/src/cat.c +++ b/src/cat.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 YAC + * Copyright (c) 2023 Emma Tebibyte * SPDX-License-Identifier: AGPL-3.0-or-later * * This file is part of YAC coreutils. diff --git a/src/false.c b/src/false.c index d255a9a..e6f64b3 100644 --- a/src/false.c +++ b/src/false.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 YAC + * Copyright (c) 2023 Emma Tebibyte * SPDX-License-Identifier: AGPL-3.0-or-later * * This file is part of YAC coreutils. diff --git a/src/true.c b/src/true.c index 2791766..9d1f79f 100644 --- a/src/true.c +++ b/src/true.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 YAC + * Copyright (c) 2023 Emma Tebibyte * SPDX-License-Identifier: AGPL-3.0-or-later * * This file is part of YAC coreutils.