summaryrefslogtreecommitdiff
path: root/util/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-09-23 20:20:38 +0200
committerUros Majstorovic <majstor@majstor.org>2022-09-23 20:20:38 +0200
commitf30abc1f75f483ffe78d92d5109b6c1d700925a3 (patch)
treeede5f6a35200f5bfe95d4fdea5cb41ac66e6a0fc /util/Makefile
parent522a419a4139db2023e97e1a9ff2774011f069c9 (diff)
added x230x programming and switching utility; fe310 flash utility;
Diffstat (limited to 'util/Makefile')
-rw-r--r--util/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/util/Makefile b/util/Makefile
new file mode 100644
index 0000000..f40aac2
--- /dev/null
+++ b/util/Makefile
@@ -0,0 +1,25 @@
+CFLAGS = -I/usr/local/include/libftdi1
+LDFLAGS = -lftdi1
+TARGETS = prog switch upload term
+
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+all: $(TARGETS)
+
+prog: prog.o
+ $(CC) -o $@ $< $(LDFLAGS)
+
+switch: switch.o
+ $(CC) -o $@ $< $(LDFLAGS)
+
+term: term.o tty.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+upload: upload.o tty.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -f *.o
+ rm -f $(TARGETS)