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
)
16 LIBS
+=$(PTHREAD_LIBS
) -L..
/libmixp
-lmixp
-static
20 addr_parse
: addr_parse.c ..
/libmixp
/libixp.a
21 $(CC
) $(CFLAGS
) $(LIBS
) -o
$@
$< $(LIBS
)
23 xall
: lib
$(SONAME
).a lib
$(SONAME
).so
25 lib
$(SONAME
).a
:: $(NOPIC_OBJ
)
27 lib
$(SONAME
).so
:: $(PIC_OBJ
)
29 install: lib
$(SONAME
).a lib
$(SONAME
).so
30 mkdir
-p
$(DESTDIR
)$(LIBDIR
)
31 cp lib
$(SONAME
).a lib
$(SONAME
).so
$(DESTDIR
)$(LIBDIR
)
32 chmod ugo
+x
$(DESTDIR
)$(LIBDIR
)/lib
$(SONAME
).so
35 rm -f
*.o
*.a
*.so addr_parse