summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <>2024-03-10 13:50:47 +0100
committerOskar <>2024-03-10 13:50:47 +0100
commit1c9c07f07cffa75692346199ca3c0d6efa36335a (patch)
tree0d34f5e1ed2b9eff4028a9620656c281fb92d27c /Makefile
parent264a4cc12ba6442cf7a9c1a1ed400d310dafd9cd (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files 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."