=== modified file 'Makefile' --- Makefile 2008-11-02 14:18:16 +0000 +++ Makefile 2008-10-09 22:05:40 +0000 @@ -3,19 +3,14 @@ CFLAGS_DEBUG= -SONAME=libtermkey.so.0 - ifeq ($(DEBUG),1) CFLAGS_DEBUG=-ggdb -DDEBUG endif all: demo -demo: libtermkey.so demo.c - $(CC) $(CFLAGS) $(CFLAGS_DEBUG) -o $@ $^ - -libtermkey.so: termkey.o driver-csi.o driver-ti.o - $(LD) -shared -soname=$(SONAME) -o $@ $^ -lncurses +demo: termkey.o driver-csi.o driver-ti.o demo.c + $(CC) $(CFLAGS) $(CFLAGS_DEBUG) -o $@ $^ -lncurses %.o: %.c $(CC) $(CFLAGS) $(CFLAGS_DEBUG) -Wall -std=c99 -o $@ -c $^