From f30abc1f75f483ffe78d92d5109b6c1d700925a3 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 23 Sep 2022 20:20:38 +0200 Subject: added x230x programming and switching utility; fe310 flash utility; --- util/Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 util/Makefile (limited to 'util/Makefile') 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) -- cgit v1.2.3