2008-01-18 01:50:35 +03:00
|
|
|
PTARG = $(ROOT)/lib/$(TARG)
|
|
|
|
LIB = $(PTARG).a
|
2007-03-26 08:48:00 +04:00
|
|
|
OFILES = ${OBJ:=.o}
|
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
all: $(HFILES) $(LIB)
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
install: $(PTARG).install
|
|
|
|
uninstall: $(PTARG).uninstall
|
2007-03-26 08:48:00 +04:00
|
|
|
clean: libclean
|
|
|
|
depend: ${OBJ:=.depend}
|
|
|
|
|
|
|
|
libclean:
|
2008-01-18 01:50:35 +03:00
|
|
|
for i in $(LIB) $(OFILES); do \
|
2008-01-29 01:58:23 +03:00
|
|
|
[ -e $$i ] && \
|
|
|
|
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
|
2007-04-19 22:53:07 +04:00
|
|
|
rm -f $$i; \
|
2007-03-26 08:48:00 +04:00
|
|
|
done 2>/dev/null || true
|
|
|
|
|
|
|
|
printinstall:
|
|
|
|
echo 'Install directories:'
|
2008-01-18 01:50:35 +03:00
|
|
|
echo ' Lib: $(LIBDIR)'
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
$(LIB): $(OFILES)
|
|
|
|
echo AR $$($(CLEANNAME) $(BASE)/$@)
|
|
|
|
mkdir $(ROOT)/lib 2>/dev/null || true
|
|
|
|
$(AR) $@ $(OFILES)
|
|
|
|
|
|
|
|
SOMKSH=case "$(MAKESO)" in 1|[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]) echo $(ROOT)/mk/so.mk;; *) echo /dev/null;; esac
|
|
|
|
SOMK:=${shell $(SOMKSH)}
|
|
|
|
SOMK!=$(SOMKSH)
|
|
|
|
include $(SOMK)
|
2007-03-26 08:48:00 +04:00
|
|
|
|