diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-01-08 00:28:11 +0900 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-01-08 00:28:11 +0900 |
commit | 3d489fe502178d2d4e58eb8d5736be2fbda38077 (patch) | |
tree | 153d134b43fb8929e0725bb923742466b6e2f1cd /libterm/examples/Makefile | |
parent | 03e459e7dff84c44644b1eccc0e00b73d846fe2a (diff) | |
download | microbbs-3d489fe502178d2d4e58eb8d5736be2fbda38077.tar.gz microbbs-3d489fe502178d2d4e58eb8d5736be2fbda38077.zip |
Bumped libterm version
Diffstat (limited to 'libterm/examples/Makefile')
-rw-r--r-- | libterm/examples/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
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) |