Fix makefile

This commit is contained in:
Night Kaly 2024-10-27 01:46:50 +01:00
parent df3059f120
commit f6eaf81d8c
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM
2 changed files with 3 additions and 4 deletions

View file

@ -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)

View file

@ -96,7 +96,6 @@ void save_file()
void process_key()
{
int c = read_key();
switch (c) {
case '\r':