wmii/mk/lib.mk

26 lines
475 B
Makefile
Raw Normal View History

LIB = ${ROOT}/lib/${TARG}.a
OFILES = ${OBJ:=.o}
all: ${HFILES} ${LIB}
install: ${TARG}.install
uninstall: ${TARG}.uninstall
clean: libclean
depend: ${OBJ:=.depend}
libclean:
for i in ${LIB} ${OFILES}; do \
2007-04-19 22:53:07 +04:00
rm -f $$i; \
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}
include ${ROOT}/mk/common.mk