source: rtems-testing/sim-scripts/Makefile @ 20873580

4.11
Last change on this file since 20873580 was 20873580, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2009 at 4:22:12 PM

2009-01-20 Joel Sherrill <joel.sherrill@…>

  • Makefile, edb7312.in, gdb-sim-run.in, gdb-sim.in, h8sim.in, jmr3904.in, m32csim.in, m32rsim.in, psim.in, simsh.in, sis.in, skyeye-support: Find run or gdb along PATH. Check for multiple RTEMS versions so there is only one version of the script. Default the simulator name so the BSP specific files do not have to do as much.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1#
2#  $Id$
3#
4
5INSTALL_DIR=../bin
6GENERATED_SCRIPTS=h8sim h8sim-gdb jmr3904 jmr3904-gdb \
7  m32csim m32csim-gdb m32rsim m32rsim-gdb psim psim-gdb \
8  sis sis-gdb simsh simsh-gdb
9SKYEYE_SCRIPTS=edb7312
10COMPILED_PROGRAMS=usleep
11
12all: prep ${GENERATED_SCRIPTS} ${SKYEYE_SCRIPTS} ${COMPILED_PROGRAMS} install
13
14prep:
15        test -d ${INSTALL_DIR} || mkdir ${INSTALL_DIR}
16
17usleep: usleep.c
18        $(CC) -o $@ $<
19
20### Skyeye Simulator BSPs
21edb7312: gdb-sim-run.in edb7312.in
22        ./mkrun no ARM arm edb7312
23
24### GDB Simulator BSPs
25h8sim h8sim-gdb: gdb-sim-run.in gdb-sim.in h8sim.in
26        ./mkrun yes H8300 h8300 h8sim
27
28jmr3904 jmr3904-gdb: gdb-sim-run.in gdb-sim.in jmr3904.in
29        ./mkrun yes MIPS mipstx39 jmr3904
30
31m32csim m32csim-gdb: gdb-sim-run.in gdb-sim.in m32csim.in
32        ./mkrun yes M32C m32c m32csim
33
34m32rsim m32rsim-gdb: gdb-sim-run.in gdb-sim.in m32rsim.in
35        ./mkrun yes M32R m32r m32rsim
36
37psim psim-gdb: gdb-sim-run.in gdb-sim.in psim.in
38        ./mkrun yes PowerPC powerpc psim
39
40sis sis-gdb: gdb-sim-run.in gdb-sim.in sis.in
41        ./mkrun yes SPARC sparc sis
42
43simsh simsh-gdb: gdb-sim-run.in gdb-sim.in simsh.in
44        ./mkrun yes SuperH sh simsh
45
46clean:
47        rm -f ${GENERATED_SCRIPTS} ${COMPILED_PROGRAMS} ${SKYEYE_SCRIPTS}
48
49install:
50        for i in ${COMPILED_PROGRAMS} ${SKYEYE_SCRIPTS}; do \
51          cp $${i} ${INSTALL_DIR} ; \
52        done
53        for i in ${GENERATED_SCRIPTS} ; do \
54          cp $${i} ${INSTALL_DIR}/$${i} ; \
55          chmod +x ${INSTALL_DIR}/$${i} ; \
56        done
57
Note: See TracBrowser for help on using the repository browser.