kst/ke/Makefile

24 lines
320 B
Makefile
Raw Normal View History

BIN := ke
2020-02-08 07:07:59 +00:00
OBJS := main.o terminal.o util.o
LDFLAGS := -static
CFLAGS := -pedantic -Wall -Werror -Wextra -O2 -std=c99
.PHONY: all
all: $(BIN) run
$(BIN): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS)
.PHONY: clean
clean:
rm -f $(BIN) $(OBJS)
.PHONY: run
run: $(BIN)
2020-02-08 07:07:59 +00:00
reset
./$(BIN)
%.o: %.c
$(CC) $(CFLAGS) -c $@ $<