From 1c9c07f07cffa75692346199ca3c0d6efa36335a Mon Sep 17 00:00:00 2001 From: Oskar <> Date: Sun, 10 Mar 2024 13:50:47 +0100 Subject: Changed Makefile again. Ive had trouble deciding how i should organise the building of this project. I think this is the final changes i will do for now. --- Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e709776..9bfee3b 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,12 @@ CC=gcc -CFLAGS=-Wfatal-errors -Wall -Werror -Wextra -g -O2 -static CFLAGS_TESTBIN=-Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address -CFLAGS_RELEASE=-O2 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static +CFLAGS=-O2 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static TARGET=7ed TESTTARGET=7ed-TESTING INSTALL_DIRECTORY=/usr/local/bin MAKEFLAGS += -s -all: 7ed -7ed: - echo "CC 7ed.c functions.c startmode.c editmode.c ---> $(TARGET)" - $(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c -o $(TARGET) - echo "$(TARGET) is done. Run 'make install' as root to install it" - +all: release clean: echo "rm -f $(TARGET)" rm -f $(TARGET) @@ -29,5 +23,5 @@ install: release: echo "CC 7ed.c functions.c startmode.c editmode.c ---> $(TARGET)" - $(CC) $(CFLAGS_RELEASE) 7ed.c functions.c startmode.c editmode.c -o $(TARGET) + $(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c -o $(TARGET) echo "$(TARGET) is done." -- cgit v1.2.3