wmii/mk/so.mk

30 lines
570 B
Makefile
Raw Normal View History

SOPTARG = $(ROOT)/lib/$(TARG)
SO = $(SOPTARG).$(SOEXT)
SONAME = $(TARG).$(SOEXT)
OFILES_PIC = $(OBJ:=.o_pic)
2010-06-14 18:30:23 +04:00
all: $(HFILES) $(SO)
install: $(SOPTARG).install
uninstall: $(SOPTARG).uninstall
clean: soclean
depend: $(OBJ:=.depend)
soclean:
for i in $(SO) $(OFILES_PIC); do \
[ -e $$i ] && \
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
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)