mirror of
https://github.com/0intro/wmii
synced 2024-11-26 15:49:37 +03:00
81 lines
1.4 KiB
Makefile
81 lines
1.4 KiB
Makefile
.SILENT:
|
|
.SUFFIXES: .O .o .c .sh .rc .awk .1 .depend .install .uninstall .clean
|
|
all:
|
|
|
|
.c.depend:
|
|
${DEPEND} $< >>.depend
|
|
|
|
.c.o:
|
|
${COMPILE} $@ $<
|
|
|
|
.o.O:
|
|
${LINK} $@ $<
|
|
|
|
.c.O:
|
|
${COMPILE} $@ $<
|
|
${LINK} $@ $<
|
|
|
|
.awk.O:
|
|
echo FILTER ${BASE}$<
|
|
${FILTER} $< >$@
|
|
chmod 0755 $@
|
|
|
|
.rc.O:
|
|
echo FILTER ${BASE}$<
|
|
${FILTER} $< >$@
|
|
chmod 0755 $@
|
|
|
|
.sh.O:
|
|
echo FILTER ${BASE}$<
|
|
${FILTER} $< >$@
|
|
chmod 0755 $@
|
|
|
|
.O.install:
|
|
echo INSTALL ${BASE}$*
|
|
cp -f $< ${BIN}/$*
|
|
chmod 0755 ${BIN}/$*
|
|
.O.uninstall:
|
|
echo UNINSTALL ${BASE}$*
|
|
rm -f ${BIN}/$*
|
|
|
|
.a.install:
|
|
echo INSTALL ${BASE}$<
|
|
cp -f $< ${LIBDIR}/$<
|
|
chmod 0644 ${LIBDIR}/$<
|
|
.a.uninstall:
|
|
echo UNINSTALL ${BASE}$<
|
|
rm -f ${LIBDIR}/$<
|
|
|
|
.h.install:
|
|
echo INSTALL ${BASE}$<
|
|
cp -f $< ${INCLUDE}/$<
|
|
chmod 0644 ${INCLUDE}/$<
|
|
.h.uninstall:
|
|
echo UNINSTALL ${BASE}$<
|
|
rm -f ${INCLUDE}/$<
|
|
|
|
.1.install:
|
|
echo INSTALL man $*'(1)'
|
|
${FILTER} $< >${MAN}/man1/$<
|
|
chmod 0644 ${MAN}/man1/$<
|
|
.1.uninstall:
|
|
echo UNINSTALL man $*'(1)'
|
|
rm -f ${MAN}/man1/$<
|
|
|
|
.O.clean:
|
|
rm -f $< || true 2>/dev/null
|
|
rm -f $*.o || true 2>/dev/null
|
|
.o.clean:
|
|
rm -f $< || true 2>/dev/null
|
|
|
|
printinstall:
|
|
mkdirs:
|
|
clean:
|
|
install: printinstall mkdirs
|
|
|
|
FILTER = cat
|
|
COMPILE= CC="${CC}" CFLAGS="${CFLAGS} -I$$(echo ${INCPATH}|sed 's/:/ -I/g') ${EXCFLAGS}" ${ROOT}/util/compile
|
|
LINK= LD="${LD}" LDFLAGS="${LDFLAGS} ${EXLDFLAGS}" ${ROOT}/util/link
|
|
|
|
include ${ROOT}/config.mk
|