19 lines
252 B
Makefile
19 lines
252 B
Makefile
CCFLAGS=-Wall -Iinclude -std=c99
|
|
LDFLAGS=
|
|
|
|
ifeq ($(DEBUG),1)
|
|
CCFLAGS+=-ggdb -DDEBUG
|
|
endif
|
|
|
|
all: demo
|
|
|
|
demo: termkey.o driver-csi.o demo.c
|
|
gcc $(CCFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
%.o: %.c
|
|
gcc $(CCFLAGS) -o $@ -c $^
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f *.o demo
|