aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
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