summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-02-11 17:51:01 +0100
committerOskar <[email protected]>2024-02-11 17:51:01 +0100
commit32e27cbd2d5c151e7f4805dd862c5ec18ca62b9d (patch)
treed5978af5f32fa177b95913ceead88fb9bfa2fc3c /Makefile
parentdd8b6d127e366ace19860781b00812e44c0c4a27 (diff)
README update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d4371ce..83d8401 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-CC=gcc #gcc works best here, mostly because i experienced errors in clang that i dont care to deal with quite yet.
+CC=cc
CFLAGS=-Wfatal-errors -Wall -Werror -Wextra -g -O2 -static
CFLAGS_TESTBIN=-Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address
TARGET=7ed
TESTTARGET=7ed-TESTING
INSTALL_DIRECTORY=/usr/local/bin
+
all: 7ed
7ed:
$(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c -o $(TARGET)
@@ -18,6 +19,6 @@ tests:
$(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c -o test/$(TESTTARGET)
install:
- cp $(TARGET) $(INSTALL_DIRECTORY)
+ @cp $(TARGET) $(INSTALL_DIRECTORY)
@echo "$(TARGET) was installed to $(INSTALL_DIRECTORY)"