2008-02-07 01:58:41 +01:00
|
|
|
CCFLAGS=-Wall -Iinclude -std=c99
|
|
|
|
LDFLAGS=
|
|
|
|
|
2008-10-07 00:24:54 +02:00
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
CCFLAGS+=-ggdb -DDEBUG
|
|
|
|
endif
|
|
|
|
|
2008-02-07 01:58:41 +01:00
|
|
|
all: demo
|
|
|
|
|
2008-10-08 03:04:47 +02:00
|
|
|
demo: termkey.o driver-csi.o driver-ti.o demo.c
|
|
|
|
gcc $(CCFLAGS) $(LDFLAGS) -o $@ $^ -lncurses
|
2008-02-07 01:58:41 +01:00
|
|
|
|
2008-10-07 00:27:19 +02:00
|
|
|
%.o: %.c
|
2008-02-07 01:58:41 +01:00
|
|
|
gcc $(CCFLAGS) -o $@ -c $^
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f *.o demo
|