summaryrefslogtreecommitdiff
path: root/openpcd/opcd_test/ausb/Makefile
blob: 626973941d243c9789f4652606437e2f369b02ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include ../../makevars

OBJS=ausb.o usb.o
CFLAGS+=-fPIC

all: libausb.a libausb.so

libausb.a: $(OBJS)
	$(AR) r $@ $^

libausb.so: $(OBJS)
	$(LD) -x --shared -o $@ $^

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

ausb_test: ausb_test.o ausb.o
	$(CC) $(CFLAGS) -lusb -o $@ $^

clean:
	@rm -f *.o ausb_test libusb.a libausb.a libausb.so
personal git repositories of Harald Welte. Your mileage may vary