summaryrefslogtreecommitdiff
path: root/host/ausb/Makefile
blob: fa42f1f9d1045bcbc876086b761861aa5a00991e (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 libausb.a
	$(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