OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [before_ORP/] [uclinux/] [uClinux-2.0.x/] [scripts/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
HOSTCFLAGS:=$(HOSTCFLAGS) -g -Wall
2
HEADER=header.tk
3
TAIL=tail.tk
4
 
5
# Ksymoops - to compile error-parsing program
6
#
7
ksymoops:
8
        g++ ksymoops.cc -I /usr/include/g++/ -o ksymoops
9
 
10
# We allow the Makefile in drivers/sound to decide when to rebuild its
11
# files, rather than trying to second-guess it like we did before.
12
#
13
soundscript:
14
        make -C ${TOPDIR}/drivers/sound mkscript
15
        @echo
16
 
17
# There is probably a better way to decide when to rebuild kconfig.tk; this
18
# one won't catch every last change to the various Config.in files.  However,
19
# the reliance on ${TOPDIR}/Makefile makes sure we at least rebuild when the
20
# kernel version number changes.
21
#
22
kconfig.tk: soundscript ${TOPDIR}/Makefile ${TOPDIR}/arch/${ARCH}/config.in \
23
                tkparse ${HEADER} ${TAIL}
24
        ./tkparse < ../arch/${ARCH}/config.in  > kconfig.tmp
25
        @if [ -f /usr/local/bin/wish ]; then \
26
                echo '#!'"/usr/local/bin/wish -f" > kconfig.tk; \
27
        else \
28
                echo '#!'"/usr/bin/wish -f" > kconfig.tk; \
29
        fi
30
        cat ${HEADER} >> ./kconfig.tk
31
        cat kconfig.tmp >> kconfig.tk
32
        rm -f kconfig.tmp
33
        echo "set defaults \"arch/${ARCH}/defconfig\"" >> kconfig.tk
34
        cat ${TAIL} >> kconfig.tk
35
        chmod 755 kconfig.tk
36
 
37
tkparse: tkparse.o tkcond.o tkgen.o
38
        ${HOSTCC} -o tkparse tkparse.o tkcond.o tkgen.o
39
 
40
tkparse.o: tkparse.c tkparse.h
41
        $(HOSTCC) $(HOSTCFLAGS) -c -o tkparse.o tkparse.c
42
 
43
tkcond.o: tkcond.c tkparse.h
44
        $(HOSTCC) $(HOSTCFLAGS) -c -o tkcond.o tkcond.c
45
 
46
tkgen.o: tkgen.c tkparse.h
47
        $(HOSTCC) $(HOSTCFLAGS) -c -o tkgen.o tkgen.c
48
 
49
clean:
50
        rm -f *~ kconfig.tk *.o tkparse
51
 
52
include $(TOPDIR)/Rules.make

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.