vmod/vmodttl: fixed bug related to luns not ordered and/or not starting from zero.
[ht-drivers.git] / vmod / lib / Makefile
blobb2f306fffe413843281c038bf1c4b9dbd3b3e00d
1 CPU=L865
4 all: lib
7 ifeq ($(CPU), ppc4)
8 include /acc/src/dsc/co/Make.auto
10 LIBS=libvmod2dioaio.a libvmodttl2dioaio.a libvmoddor2dioaio.a
11 lib: $(LIBS)
12 OBJS=libvmod12a22dioaio.o libvmod16a22dioaio.o libvmod12e162dioaio.o
14 HEADERS=../include \
15 -I/acc/src/dsc/drivers/dioaiofclty/include \
16 -I/acc/src/dsc/drivers/ioconfig/include \
17 -I/acc/src/dsc/drivers/rt/include/ \
18 -I/acc/dsc/lab/ppc4/include
20 CFLAGS=-g -Wall
22 libvmod12a22dioaio.o:
23 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod12a22dioaio.c -o $@
24 libvmod16a22dioaio.o:
25 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod16a22dioaio.c -o $@
26 libvmod12e162dioaio.o:
27 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod12e162dioaio.c -o $@
29 libvmodttl2dioaio.o:
30 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmodttl2dioaio.c -o $@
31 libvmoddor2dioaio.o:
32 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmoddor2dioaio.c -o $@
34 libvmod2dioaio.so: $(OBJS)
35 gcc -shared -o $@ $^
36 libvmod2dioaio.a: $(OBJS)
37 ar r $@ $^
39 libvmod12a22dioaio.a: libvmod12a22dioaio.o
40 ar r $@ $^
41 libvmod16a22dioaio.a: libvmod16a22dioaio.o
42 ar r $@ $^
43 libvmod12e162dioaio.a: libvmod12e162dioaio.o
44 ar r $@ $^
46 libvmodttl2dioaio.a: libvmodttl2dioaio.o
47 ar r $@ $^
48 libvmodttl2dioaio.so: libvmodttl2dioaio.o
49 $(CC) -shared -o $@ $^
50 libvmoddor2dioaio.a: libvmoddor2dioaio.o
51 ar r $@ $^
52 libvmoddor2dioaio.so: libvmoddor2dioaio.o
53 $(CC) -shared -o $@ $^
55 else
58 LIBS=libvmod.a libvmod.so libvmodttl.a libvmoddor.a
59 lib: $(LIBS)
60 OBJS=libvmod12a2.o libvmod16a2.o libvmod12e16.o
62 HEADERS=../include \
63 -I../driver
64 CFLAGS=-g -Wall
66 libvmod12a2.o:
67 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod12a2.c -o $@
68 libvmod16a2.o:
69 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod16a2.c -o $@
70 libvmod12e16.o:
71 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmod12e16.c -o $@
72 libvmodttl.o:
73 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmodttl.c -o $@
74 libvmoddor.o:
75 $(CC) $(CFLAGS) -c -I$(HEADERS) libvmoddor.c -o $@
77 libvmod.so: $(OBJS)
78 gcc -shared -o $@ $^
79 libvmod.a: $(OBJS)
80 ar r $@ $^
82 libvmod12a2.a: libvmod12a2.o
83 ar r $@ $^
84 libvmod16a2.a: libvmod16a2.o
85 ar r $@ $^
86 libvmod12e16.a: libvmod12e16.o
87 ar r $@ $^
89 libvmodttl.a: libvmodttl.o
90 ar r $@ $^
91 libvmodttl.so: libvmodttl.o
92 gcc -shared -o $@ $^
93 libvmoddor.a: libvmoddor.o
94 ar r $@ $^
95 libvmoddor.so: libvmoddor.o
96 gcc -shared -o $@ $^
98 endif
100 clean:
101 rm -f *.o *.a *.pyc *.so