summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-02-11 18:28:01 +0100
committerOskar <[email protected]>2024-02-11 18:28:01 +0100
commitdcc3d0e1214616ce639dfcc873650e736e6951af (patch)
tree99149c870db5b69e5cab49172cdfd338ca74acf0 /Makefile
parent32e27cbd2d5c151e7f4805dd862c5ec18ca62b9d (diff)
minor fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 83d8401..87b4e9d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,28 @@
-CC=cc
+CC=gcc
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
-
+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"
+ echo "$(TARGET) is done. Run 'make install' as root to install it"
clean:
+ echo "rm -f $(TARGET)"
rm -f $(TARGET)
+ echo "rm -f test/$(TESTTARGET)"
rm -f test/$(TESTTARGET)
tests:
+ echo "CC 7ed.c functions.c startmode.c editmode.c ---> test/$(TESTTARGET)"
$(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c -o test/$(TESTTARGET)
install:
- @cp $(TARGET) $(INSTALL_DIRECTORY)
- @echo "$(TARGET) was installed to $(INSTALL_DIRECTORY)"
+ cp $(TARGET) $(INSTALL_DIRECTORY)
+ echo "$(TARGET) was installed to $(INSTALL_DIRECTORY)"