summaryrefslogtreecommitdiff
path: root/util/Makefile
blob: f40aac2e7a27b28ae2eb1d7e8478e188c207b9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)