From b9fc5fed91512208d861e287b1369f3122861144 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 20 Jan 2016 14:03:21 +1300 Subject: Initial import --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..058c0b7 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ + +CFLAGS = -Wall -Werror -Wextra + +.PHONY: all +all: casio-get screen-to-xpm + +screen-to-xpm: screen-to-xpm.o packet.o + $(CC) -o $@ $^ $(LDFLAGS) + +casio-get: casio-get.o error.o port.o packet.o + $(CC) -o $@ $^ $(LDFLAGS) -lserialport + + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + + +.PHONY: clean +clean: + rm -fv casio-get screen-to-xpm *.o -- cgit v1.1