1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
CCFLAGS=-Wall -Iinclude -std=c99 LDFLAGS= ifeq ($(DEBUG),1) CCFLAGS+=-ggdb -DDEBUG endif all: demo demo: termkey.o driver-csi.o driver-ti.o demo.c gcc $(CCFLAGS) $(LDFLAGS) -o $@ $^ -lncurses %.o: %.c gcc $(CCFLAGS) -o $@ -c $^ .PHONY: clean clean: rm -f *.o demo