library name fixups
[libmvfs.git] / libmvfs / Makefile
blob24512ce470c3a5b012ec0155f7362d1e2f8bb436
2 LIBNAME=mvfs
3 SONAME=$(LIBNAME)
4 LIBC_LIBS=-lc
6 SRCNAMES = \
7 strmode \
8 urlparse \
9 arglist \
10 default_ops \
11 fileops \
12 fsops \
13 $(FS_SRCNAMES)
15 include _fs.*.mk
17 NOPIC_OBJ = $(addsuffix .nopic.o, $(SRCNAMES))
18 PIC_OBJ = $(addsuffix .pic.o, $(SRCNAMES))
19 UNO_OBJ = $(addsuffix .uno, $(SRCNAMES))
21 CFLAGS+=-I../include $(FS_CFLAGS) $(HASH_CFLAGS) -D_GNU_SOURCE
22 LDFLAGS+=$(FS_LIBS) $(HASH_LIBS) -no-undefined
24 all: info lib$(LIBNAME).a lib$(LIBNAME).so
26 info:
27 echo "CFLAGS=$(CFLAGS)"
28 echo "LDFLAGS=$(LDFLAGS)"
30 include ../build.mk
32 lib$(LIBNAME).a:: $(NOPIC_OBJ)
34 lib$(LIBNAME).so:: $(PIC_OBJ)
36 install: lib$(LIBNAME).a lib$(LIBNAME).so
37 mkdir -p $(DESTDIR)$(LIBDIR)
38 cp lib$(LIBNAME).a lib$(LIBNAME).so $(DESTDIR)$(LIBDIR)
39 chmod ugo+x $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).so
41 uno-check: $(UNO_OBJ)
43 clean:
44 rm -f *.o *.a *.so