summaryrefslogtreecommitdiff
path: root/openpcd/opcd_test/Makefile
blob: f134513c0458efa7839e2a2dcac8f5162aba0d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make
LDFLAGS=-lusb
CFLAGS=-Wall

all: opcd_test

clean:
	-rm -f *.o opcd_test
	$(MAKE) -C ausb clean

ausb/libausb.a:
	$(MAKE) -C ausb libausb.a

opcd_test: opcd_test.o opcd_usb.o ausb/libausb.a
	$(CC) $(LDFLAGS) -o $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

.PHONEY: all clean
personal git repositories of Harald Welte. Your mileage may vary