diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-09-23 20:20:38 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-09-23 20:20:38 +0200 |
commit | f30abc1f75f483ffe78d92d5109b6c1d700925a3 (patch) | |
tree | ede5f6a35200f5bfe95d4fdea5cb41ac66e6a0fc /util/Makefile | |
parent | 522a419a4139db2023e97e1a9ff2774011f069c9 (diff) |
added x230x programming and switching utility; fe310 flash utility;
Diffstat (limited to 'util/Makefile')
-rw-r--r-- | util/Makefile | 25 |
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) |