HOSTCFLAGS:=$(HOSTCFLAGS) -g -Wall
|
HOSTCFLAGS:=$(HOSTCFLAGS) -g -Wall
|
HEADER=header.tk
|
HEADER=header.tk
|
TAIL=tail.tk
|
TAIL=tail.tk
|
|
|
# Ksymoops - to compile error-parsing program
|
# Ksymoops - to compile error-parsing program
|
#
|
#
|
ksymoops:
|
ksymoops:
|
g++ ksymoops.cc -I /usr/include/g++/ -o ksymoops
|
g++ ksymoops.cc -I /usr/include/g++/ -o ksymoops
|
|
|
# We allow the Makefile in drivers/sound to decide when to rebuild its
|
# We allow the Makefile in drivers/sound to decide when to rebuild its
|
# files, rather than trying to second-guess it like we did before.
|
# files, rather than trying to second-guess it like we did before.
|
#
|
#
|
soundscript:
|
soundscript:
|
make -C ${TOPDIR}/drivers/sound mkscript
|
make -C ${TOPDIR}/drivers/sound mkscript
|
@echo
|
@echo
|
|
|
# There is probably a better way to decide when to rebuild kconfig.tk; this
|
# There is probably a better way to decide when to rebuild kconfig.tk; this
|
# one won't catch every last change to the various Config.in files. However,
|
# one won't catch every last change to the various Config.in files. However,
|
# the reliance on ${TOPDIR}/Makefile makes sure we at least rebuild when the
|
# the reliance on ${TOPDIR}/Makefile makes sure we at least rebuild when the
|
# kernel version number changes.
|
# kernel version number changes.
|
#
|
#
|
kconfig.tk: soundscript ${TOPDIR}/Makefile ${TOPDIR}/arch/${ARCH}/config.in \
|
kconfig.tk: soundscript ${TOPDIR}/Makefile ${TOPDIR}/arch/${ARCH}/config.in \
|
tkparse ${HEADER} ${TAIL}
|
tkparse ${HEADER} ${TAIL}
|
./tkparse < ../arch/${ARCH}/config.in > kconfig.tmp
|
./tkparse < ../arch/${ARCH}/config.in > kconfig.tmp
|
@if [ -f /usr/local/bin/wish ]; then \
|
@if [ -f /usr/local/bin/wish ]; then \
|
echo '#!'"/usr/local/bin/wish -f" > kconfig.tk; \
|
echo '#!'"/usr/local/bin/wish -f" > kconfig.tk; \
|
else \
|
else \
|
echo '#!'"/usr/bin/wish -f" > kconfig.tk; \
|
echo '#!'"/usr/bin/wish -f" > kconfig.tk; \
|
fi
|
fi
|
cat ${HEADER} >> ./kconfig.tk
|
cat ${HEADER} >> ./kconfig.tk
|
cat kconfig.tmp >> kconfig.tk
|
cat kconfig.tmp >> kconfig.tk
|
rm -f kconfig.tmp
|
rm -f kconfig.tmp
|
echo "set defaults \"arch/${ARCH}/defconfig\"" >> kconfig.tk
|
echo "set defaults \"arch/${ARCH}/defconfig\"" >> kconfig.tk
|
cat ${TAIL} >> kconfig.tk
|
cat ${TAIL} >> kconfig.tk
|
chmod 755 kconfig.tk
|
chmod 755 kconfig.tk
|
|
|
tkparse: tkparse.o tkcond.o tkgen.o
|
tkparse: tkparse.o tkcond.o tkgen.o
|
${HOSTCC} -o tkparse tkparse.o tkcond.o tkgen.o
|
${HOSTCC} -o tkparse tkparse.o tkcond.o tkgen.o
|
|
|
tkparse.o: tkparse.c tkparse.h
|
tkparse.o: tkparse.c tkparse.h
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkparse.o tkparse.c
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkparse.o tkparse.c
|
|
|
tkcond.o: tkcond.c tkparse.h
|
tkcond.o: tkcond.c tkparse.h
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkcond.o tkcond.c
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkcond.o tkcond.c
|
|
|
tkgen.o: tkgen.c tkparse.h
|
tkgen.o: tkgen.c tkparse.h
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkgen.o tkgen.c
|
$(HOSTCC) $(HOSTCFLAGS) -c -o tkgen.o tkgen.c
|
|
|
clean:
|
clean:
|
rm -f *~ kconfig.tk *.o tkparse
|
rm -f *~ kconfig.tk *.o tkparse
|
|
|
include $(TOPDIR)/Rules.make
|
include $(TOPDIR)/Rules.make
|
|
|