aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-01-20 14:03:21 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-01-20 14:03:21 +1300
commitb9fc5fed91512208d861e287b1369f3122861144 (patch)
treee11e3cc823b19feed7fb6c84d92990e9585e3d8b /Makefile
downloadcasio-9850-b9fc5fed91512208d861e287b1369f3122861144.tar.xz
Initial import
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