Project

General

Profile

Download (333 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#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
ausb_test: ausb_test.o libausb.a
18
	$(CC) $(CFLAGS) -lusb -o $@ $^
19

    
20
clean:
21
	@rm -f *.o ausb_test libusb.a libausb.a libausb.so
(1-1/6)
Add picture from clipboard (Maximum size: 48.8 MB)