CC=gcc CFLAGS=-I../ ../libterm.o SOURCES=detect_resize.c detect_screen_size.c filtered_input.c invisible_input.c \ readline.c restore_screen.c print_8025.c EXE=$(SOURCES:.c=) BUILD_DIR=. all: $(EXE) %: %.c $(CC) $(CFLAGS) $< -o $(BUILD_DIR)/$@ clean: rm -f $(EXE)