2008-01-18 01:50:35 +03:00
|
|
|
SOPTARG = $(ROOT)/lib/$(TARG)
|
2008-01-24 05:45:30 +03:00
|
|
|
SO = $(SOPTARG).$(SOEXT)
|
|
|
|
SONAME = $(TARG).$(SOEXT)
|
2010-05-23 04:55:16 +04:00
|
|
|
OFILES_PIC = $(OBJ:=.o_pic)
|
2008-01-18 01:50:35 +03:00
|
|
|
|
2010-06-14 18:30:23 +04:00
|
|
|
all: $(HFILES) $(SO)
|
2008-01-18 01:50:35 +03:00
|
|
|
|
|
|
|
install: $(SOPTARG).install
|
|
|
|
uninstall: $(SOPTARG).uninstall
|
|
|
|
clean: soclean
|
2010-05-23 04:55:16 +04:00
|
|
|
depend: $(OBJ:=.depend)
|
2008-01-18 01:50:35 +03:00
|
|
|
|
|
|
|
soclean:
|
|
|
|
for i in $(SO) $(OFILES_PIC); do \
|
2008-01-29 01:58:23 +03:00
|
|
|
[ -e $$i ] && \
|
|
|
|
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
|
2008-01-18 01:50:35 +03:00
|
|
|
rm -f $$i; \
|
|
|
|
done 2>/dev/null || true
|
|
|
|
|
|
|
|
printsoinstall:
|
|
|
|
echo 'Install directories:'
|
|
|
|
echo ' Lib: $(LIBDIR)'
|
|
|
|
|
|
|
|
printinstall: printsoinstall
|
|
|
|
|
|
|
|
$(SO): $(OFILES_PIC)
|
|
|
|
mkdir $(ROOT)/lib 2>/dev/null || true
|
|
|
|
$(LINKSO) $@ $(OFILES_PIC)
|
|
|
|
|