openpcd/host/ausb/Makefile @ master
1 | 4c1c0deb | (no author) | #include ../../makevars
|
---|---|---|---|
2 | |||
3 | OBJS=ausb.o usb.o |
||
4 | CFLAGS+=-fPIC |
||
5 | |||
6 | all: libausb.a libausb.so |
||
7 | |||
8 | libausb.a: $(OBJS) |
||
9 | $(AR) r $@ $^ |
||
10 | |||
11 | libausb.so: $(OBJS) |
||
12 | $(LD) -x --shared -o $@ $^ |
||
13 | |||
14 | %.o: %.c |
||
15 | $(CC) $(CFLAGS) -o $@ -c $^ |
||
16 | |||
17 | 6506db78 | Harald Welte | ausb_test: ausb_test.o libausb.a |
18 | 4c1c0deb | (no author) | $(CC) $(CFLAGS) -lusb -o $@ $^ |
19 | |||
20 | clean: |
||
21 | @rm -f *.o ausb_test libusb.a libausb.a libausb.so |