2007-03-26 08:48:00 +04:00
|
|
|
PROG = ${TARG}.O
|
|
|
|
OFILES = ${OBJ:=.o}
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
install: ${TARG}.install
|
2007-03-26 20:57:46 +04:00
|
|
|
uninstall: ${TARG}.uninstall
|
2007-03-26 08:48:00 +04:00
|
|
|
clean: oneclean
|
|
|
|
depend: ${OBJ:=.depend}
|
|
|
|
|
|
|
|
printinstall:
|
|
|
|
echo 'Install directories:'
|
|
|
|
echo ' Bin: ${BIN}'
|
|
|
|
|
|
|
|
oneclean:
|
|
|
|
for i in ${PROG} ${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
|
|
|
|
|
2007-04-14 11:03:06 +04:00
|
|
|
${OFILES}: ${HFILES}
|
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
${PROG}: ${OFILES} ${LIB}
|
|
|
|
${LINK} $@ ${OFILES} ${LIB}
|
|
|
|
|
|
|
|
include ${ROOT}/mk/common.mk
|