7 OBJNAMES
=client convert intmap message request socket transport util error rpc thread addr thread_
$(THREADLIB
) server
9 NOPIC_OBJ
= $(addsuffix .nopic.o
,$(OBJNAMES
))
10 PIC_OBJ
= $(addsuffix .pic.o
,$(OBJNAMES
))
12 PTHREAD_LIBS
=`$(PKG_CONFIG) --libs libc-pthread`
13 PTHREAD_CFLAGS
=`$(PKG_CONFIG) --cflags libc-pthread`
15 CFLAGS
+=-I..
/include $(PTHREAD_CFLAGS
)
18 all: lib
$(SONAME
).a lib
$(SONAME
).so
20 lib
$(SONAME
).a
:: $(NOPIC_OBJ
)
22 lib
$(SONAME
).so
:: $(PIC_OBJ
)
24 install: lib
$(SONAME
).a lib
$(SONAME
).so
25 mkdir
-p
$(DESTDIR
)$(LIBDIR
)
26 cp lib
$(SONAME
).a lib
$(SONAME
).so
$(DESTDIR
)$(LIBDIR
)
27 chmod ugo
+x
$(DESTDIR
)$(LIBDIR
)/lib
$(SONAME
).so