From f6eaf81d8c36bfaf3810443bfec3492c36645cb7 Mon Sep 17 00:00:00 2001 From: night0721 Date: Sun, 27 Oct 2024 01:46:50 +0100 Subject: [PATCH] Fix makefile --- Makefile | 6 +++--- src/io.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d5790fc..473192c 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ BINDIR = $(PREFIX)/bin CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -SRC = src/*.c config.h +SRC != find src -name *.c INCLUDE = include -$(TARGET): $(SRC) - $(CC) $(SRC) -o $@ $(CFLAGS) -I$(INCLUDE) -I. +$(TARGET): $(SRC) config.h + $(CC) $(SRC) config.h -o $@ $(CFLAGS) -I$(INCLUDE) -I. dist: mkdir -p $(TARGET)-$(VERSION) diff --git a/src/io.c b/src/io.c index ef64234..3f46205 100644 --- a/src/io.c +++ b/src/io.c @@ -96,7 +96,6 @@ void save_file() void process_key() { - int c = read_key(); switch (c) { case '\r':