2007-03-26 08:48:00 +04:00
|
|
|
.SILENT:
|
2007-03-26 20:57:46 +04:00
|
|
|
.SUFFIXES: .O .o .c .sh .rc .awk .1 .depend .install .uninstall .clean
|
2007-03-26 08:48:00 +04:00
|
|
|
all:
|
|
|
|
|
|
|
|
.c.depend:
|
|
|
|
${DEPEND} $< >>.depend
|
|
|
|
|
2007-03-26 20:57:46 +04:00
|
|
|
.c.o:
|
|
|
|
${COMPILE} $@ $<
|
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
.o.O:
|
|
|
|
${LINK} $@ $<
|
|
|
|
|
2007-03-26 20:57:46 +04:00
|
|
|
.c.O:
|
|
|
|
${COMPILE} $@ $<
|
|
|
|
${LINK} $@ $<
|
|
|
|
|
2007-03-26 08:48:00 +04:00
|
|
|
.awk.O:
|
|
|
|
echo FILTER ${BASE}$<
|
|
|
|
${FILTER} $< >$@
|
2007-03-26 20:57:46 +04:00
|
|
|
chmod 0755 $@
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.rc.O:
|
|
|
|
echo FILTER ${BASE}$<
|
|
|
|
${FILTER} $< >$@
|
2007-03-26 20:57:46 +04:00
|
|
|
chmod 0755 $@
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.sh.O:
|
|
|
|
echo FILTER ${BASE}$<
|
|
|
|
${FILTER} $< >$@
|
2007-03-26 20:57:46 +04:00
|
|
|
chmod 0755 $@
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.O.install:
|
2007-03-26 20:57:46 +04:00
|
|
|
echo INSTALL ${BASE}$*
|
2007-03-26 08:48:00 +04:00
|
|
|
cp -f $< ${BIN}/$*
|
|
|
|
chmod 0755 ${BIN}/$*
|
2007-03-26 20:57:46 +04:00
|
|
|
.O.uninstall:
|
|
|
|
echo UNINSTALL ${BASE}$*
|
|
|
|
rm -f ${BIN}/$*
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.a.install:
|
2007-03-26 20:57:46 +04:00
|
|
|
echo INSTALL ${BASE}$<
|
2007-03-26 08:48:00 +04:00
|
|
|
cp -f $< ${LIBDIR}/$<
|
|
|
|
chmod 0644 ${LIBDIR}/$<
|
2007-03-26 20:57:46 +04:00
|
|
|
.a.uninstall:
|
|
|
|
echo UNINSTALL ${BASE}$<
|
|
|
|
rm -f ${LIBDIR}/$<
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.h.install:
|
2007-03-26 20:57:46 +04:00
|
|
|
echo INSTALL ${BASE}$<
|
2007-03-26 08:48:00 +04:00
|
|
|
cp -f $< ${INCLUDE}/$<
|
|
|
|
chmod 0644 ${INCLUDE}/$<
|
2007-03-26 20:57:46 +04:00
|
|
|
.h.uninstall:
|
|
|
|
echo UNINSTALL ${BASE}$<
|
|
|
|
rm -f ${INCLUDE}/$<
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.1.install:
|
|
|
|
echo INSTALL man $*'(1)'
|
|
|
|
${FILTER} $< >${MAN}/man1/$<
|
|
|
|
chmod 0644 ${MAN}/man1/$<
|
2007-03-26 20:57:46 +04:00
|
|
|
.1.uninstall:
|
|
|
|
echo UNINSTALL man $*'(1)'
|
|
|
|
rm -f ${MAN}/man1/$<
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
.O.clean:
|
2007-04-19 22:53:07 +04:00
|
|
|
rm -f $< || true 2>/dev/null
|
|
|
|
rm -f $*.o || true 2>/dev/null
|
2007-03-26 08:48:00 +04:00
|
|
|
.o.clean:
|
2007-04-19 22:53:07 +04:00
|
|
|
rm -f $< || true 2>/dev/null
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
printinstall:
|
|
|
|
mkdirs:
|
|
|
|
clean:
|
|
|
|
install: printinstall mkdirs
|
|
|
|
|
2007-03-26 09:26:10 +04:00
|
|
|
FILTER = cat
|
2007-03-26 08:48:00 +04:00
|
|
|
COMPILE= CC="${CC}" CFLAGS="${CFLAGS} ${EXCFLAGS}" ${ROOT}/util/compile
|
|
|
|
LINK= LD="${LD}" LDFLAGS="${LDFLAGS} ${EXLDFLAGS}" ${ROOT}/util/link
|
|
|
|
|
|
|
|
include ${ROOT}/config.mk
|