yay! working editor!

This commit is contained in:
2020-02-10 22:02:11 -08:00
parent 388af0ecc0
commit 514953e20d
2 changed files with 370 additions and 30 deletions

View File

@@ -1,11 +1,11 @@
BIN := ke
OBJS := main.o
LDFLAGS :=
LDFLAGS :=
CFLAGS := -pedantic -Wall -Werror -Wextra -O2 -std=c99 -g
.PHONY: all
all: build run
all: build
.PHONY: build
build: $(BIN)
@@ -15,12 +15,12 @@ $(BIN): main.c
.PHONY: clean
clean:
rm -f $(BIN) $(OBJS) *.core
rm -f $(BIN) $(OBJS) *.core keypress
.PHONY: run
run: $(BIN)
reset
./$(BIN) notes.txt
./$(BIN) hello.txt
keypress: keypress.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ keypress.c