From 3d489fe502178d2d4e58eb8d5736be2fbda38077 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Thu, 8 Jan 2015 00:28:11 +0900 Subject: Bumped libterm version --- libterm/examples/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'libterm/examples/Makefile') diff --git a/libterm/examples/Makefile b/libterm/examples/Makefile index 64009bd..00583f8 100644 --- a/libterm/examples/Makefile +++ b/libterm/examples/Makefile @@ -1,8 +1,13 @@ CC=gcc +CFLAGS=-I../ ../libterm.o +SOURCES=detect_resize.c detect_screen_size.c filtered_input.c invisible_input.c restore_screen.c print_8025.c +EXE=$(SOURCES:.c=) +BUILD_DIR=. -make: - $(CC) detect_screen_size.c -o detect_screen_size ../libterm.o -I../ - $(CC) detect_resize.c -o detect_resize ../libterm.o -I../ - $(CC) filtered_input.c -o filtered_input ../libterm.o -I../ - $(CC) invisible_input.c -o invisisble_input ../libterm.o -I../ - $(CC) restore_screen.c -o restore_screen ../libterm.o -I../ \ No newline at end of file +all: $(EXE) + +%: %.c + $(CC) $(CFLAGS) $< -o $(BUILD_DIR)/$@ + +clean: + rm -f $(EXE) -- cgit v1.2.3