From 9f2ccf988319c256f725f2fd4f9e69762ff144ac Mon Sep 17 00:00:00 2001 From: Oskar Date: Fri, 19 Apr 2024 13:52:47 +0200 Subject: Small changes. I was gonna do more changes but theres no point. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc171d8..6559e58 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ TARGET=7ed TESTTARGET=7ed-TESTING INSTALL_DIRECTORY=/usr/local/bin MAKEFLAGS += -s +SRCS=7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c all: release clean: @@ -17,7 +18,7 @@ clean: tests: echo "CC 7ed.c functions.c startmode.c editmode.c i_validation.c process_multiples.c ---> test/$(TESTTARGET)" - $(CC) $(CFLAGS_TESTBIN) 7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c -o test/$(TESTTARGET) + $(CC) $(CFLAGS_TESTBIN) $(SRCS) -o test/$(TESTTARGET) install: cp $(TARGET) $(INSTALL_DIRECTORY) @@ -25,5 +26,5 @@ install: release: echo "CC 7ed.c functions.c startmode.c editmode.c i_validation.c process_multiples.c ---> $(TARGET)" - $(CC) $(CFLAGS) 7ed.c functions.c startmode.c editmode.c input.c i_validation.c process_multiples.c -o $(TARGET) + $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) echo "$(TARGET) is done." -- cgit v1.2.3