2007-07-01 15:08:30 +04:00
|
|
|
LIB = ${ROOT}/lib/${TARG}.a
|
2007-03-26 08:48:00 +04:00
|
|
|
OFILES = ${OBJ:=.o}
|
|
|
|
|
|
|
|
all: ${HFILES} ${LIB}
|
|
|
|
|
|
|
|
install: ${TARG}.install
|
2007-03-26 20:57:46 +04:00
|
|
|
uninstall: ${TARG}.uninstall
|
2007-03-26 08:48:00 +04:00
|
|
|
clean: libclean
|
|
|
|
depend: ${OBJ:=.depend}
|
|
|
|
|
|
|
|
libclean:
|
|
|
|
for i in ${LIB} ${OFILES}; do \
|
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:'
|
|
|
|
echo ' Lib: ${LIBDIR}'
|
|
|
|
|
|
|
|
${LIB}: ${OFILES}
|
2007-07-01 23:26:14 +04:00
|
|
|
echo AR $$($(ROOT)/util/cleanname $(BASE)/$@)
|
|
|
|
mkdir ${ROOT}/lib 2>/dev/null || true
|
|
|
|
${AR} $@ ${OFILES}
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
include ${ROOT}/mk/common.mk
|