12.15.1. Rebuilding on UNIX

Follow these steps to rebuild the ARMulator under UNIX:

  1. Place the source code in the directory sources.

  2. Load the Makefile in build/ into an editor.

  3. Add the object to the list of objects to be built.

  4. Change the lines:

    OBJALL=main.o angel.o armfast.o armflat.o armmap.o \
    armpie.o bytelane.o dummymmu.o ebsa110.o errors.o \
    models.o pagetab.o profiler.o tracer.o trickbox.o \ validate.o watchpnt.o winglass.o

    to read:

    OBJALL=main.o angel.o armfast.o armflat.o armmap.o \ 
    armpie.o bytelane.o dummymmu.o ebsa110.o errors.o \ 
    models.o pagetab.o profiler.o tracer.o trickbox.o \ validate.o watchpnt.o winglass.o example.o

  5. Add a rule for building the example:

    example.o: $(SRCDIR1)/example.c
    example.o: $(SRCDIR1)/armdefs.h
    example.o: $(SRCDIR1)/rdi_hif.h
           $(CC) $(CFLAGS) $(CFLexample) -o example.o

  6. In directory build, type:


    For the Solaris/gcc target, this produces the following output:

    Example 12.1.  Sample output

    gcc -c -ansi -pedantic -W -Wformat -Wimplicit -Wmissing-prototypes -Wchar-subscripts -Wunused -Wuninitialized -Wreturn-type -Wpointer-arith
    -Wcast-qual -Wstrict-prototypes -Wcomment -Dunix -g -O2
    -DARM_RELEASE="\"unreleased\""   -Iderived -I../../armsd/source
    -I../../armsd/source -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj
    -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj
    -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj
    -I../../armsd/obj -I../../armsd/obj -I../../armsd/obj  -o example.o
    ../../armsd/source/example.c:44: warning: pointer targets in initialization
    differ in signedness
    gcc -o armsd  -lm -lsocket -lnsl main.o angel.o armfast.o armflat.o
    armmap.o armpie.o bytelane.o  dummymmu.o ebsa110.o errors.o models.o
    pagetab.o profiler.o tracer.o  trickbox.o validate.o watchpnt.o winglass.o
    example.o ../../armsd/obj/gccsolrs/angsd.o
    ../../armsd/obj/gccsolrs/sarmul.a ../../armsd/obj/gccsolrs/iarm.a
    ../../armsd/obj/gccsolrs/armul920.a  ../../armsd/obj/gccsolrs/armul940.a
    ../../armsd/obj/gccsolrs/armulib.a ../../armsd/obj/gccsolrs/asdlib.a
    ../../armsd/obj/gccsolrs/dbglib.a ../../armsd/obj/gccsolrs/armdbg.a
    ../../armsd/obj/gccsolrs/armsd.a ../../armsd/obj/gccsolrs/c150t100.a
    echo "Made armsd"
    Made armsd
Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D