Added asynchronous demo which uses poll()
This commit is contained in:
5
Makefile
5
Makefile
@@ -15,11 +15,14 @@ ifeq ($(DEBUG),1)
|
||||
CFLAGS_DEBUG=-ggdb -DDEBUG
|
||||
endif
|
||||
|
||||
all: demo
|
||||
all: demo demo-async
|
||||
|
||||
demo: libtermkey.so demo.c
|
||||
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -o $@ $^
|
||||
|
||||
demo-async: libtermkey.so demo-async.c
|
||||
$(CC) $(CFLAGS) $(CFLAGS_DEBUG) -o $@ $^
|
||||
|
||||
libtermkey.so: termkey.o driver-csi.o driver-ti.o
|
||||
$(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses
|
||||
|
||||
|
||||
Reference in New Issue
Block a user