diff options
author | Oskar <[email protected]> | 2024-03-07 23:00:19 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2024-03-07 23:00:19 +0100 |
commit | a8e9ee3b9b8d83fd0dbab22b5d8663154d09f110 (patch) | |
tree | a90766114dd488abe7d01a35690442894857d5f3 /Makefile | |
parent | 67ebb8eae70719f514c5711d404866a131c4b66a (diff) |
Makefile changes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,13 +1,14 @@ 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 TARGET=7ed TESTTARGET=7ed-TESTING INSTALL_DIRECTORY=/usr/local/bin MAKEFLAGS += -s all: 7ed -7ed: +default: 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" @@ -26,3 +27,7 @@ install: cp $(TARGET) $(INSTALL_DIRECTORY) echo "$(TARGET) was installed to $(INSTALL_DIRECTORY)" +7ed: + echo "CC 7ed.c functions.c startmode.c editmode.c ---> $(TARGET)" + $(CC) $(CFLAGS_RELEASE) 7ed.c functions.c startmode.c editmode.c -o $(TARGET) + echo "$(TARGET) is done." |