URL
https://opencores.org/ocsvn/igor/igor/trunk
[/] [igor/] [trunk/] [simulator/] [Makefile] - Blame information for rev 4
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
4 |
atypic |
CC= gcc
|
2 |
|
|
CFLAGS= -Wall -g -std=c99 -mcmodel=large #-O2
|
3 |
|
|
LDFLAGS=-lreadline
|
4 |
|
|
PROG= emulator
|
5 |
|
|
OBJS= main.o regs.o instructions.o object.o memory.o microcode.o machine.o breakpoint.o debug.o hash.o linkedlist.o alloc.o print.o io.o bits.o profiler.o
|
6 |
|
|
MEMPROG=memtool
|
7 |
|
|
MEMOBJS=memtool.o memory.o object.o regs.o debug.o hash.o linkedlist.o alloc.o io.o bits.o
|
8 |
|
|
BINPROG=bindump
|
9 |
|
|
BINOBJS=bindump.o
|
10 |
|
|
|
11 |
|
|
.PHONY: all clean run
|
12 |
|
|
|
13 |
|
|
all: $(PROG) $(MEMPROG) $(BINPROG)
|
14 |
|
|
|
15 |
|
|
$(MEMPROG): $(MEMOBJS)
|
16 |
|
|
$(CC) -o $(MEMPROG) $(MEMOBJS) $(LDFLAGS)
|
17 |
|
|
|
18 |
|
|
$(PROG): $(OBJS)
|
19 |
|
|
$(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
|
20 |
|
|
|
21 |
|
|
$(BINPROG): $(BINOBJS)
|
22 |
|
|
$(CC) -o $(BINPROG) $(BINOBJS)
|
23 |
|
|
|
24 |
|
|
memory.bin: memtool /tmp/initmem
|
25 |
|
|
./memtool /tmp/initmem memory.bin
|
26 |
|
|
|
27 |
|
|
# initmem: /tmp/initmem initmem_builtins
|
28 |
|
|
# cat /tmp/initmem initmem_builtins >initmem
|
29 |
|
|
|
30 |
|
|
# initmem_builtins: initmem_builtins.py
|
31 |
|
|
# ./initmem_builtins.py >initmem_builtins
|
32 |
|
|
|
33 |
|
|
regfile.bin: memtool /tmp/regfile
|
34 |
|
|
./memtool /tmp/regfile regfile.bin
|
35 |
|
|
|
36 |
|
|
microprogram.foo: /tmp/microcode bindump
|
37 |
|
|
./bindump /tmp/microcode microprogram.foo 48 4000
|
38 |
|
|
regfile.foo: regfile.bin bindump
|
39 |
|
|
./bindump regfile.bin regfile.foo 32
|
40 |
|
|
|
41 |
|
|
run: $(PROG) memory.bin regfile.bin
|
42 |
|
|
./emulator -f b:memory.bin -f k:keyboard -f s:screen -f o:serial_out -f f:filesystem -r regfile.bin -M
|
43 |
|
|
|
44 |
|
|
sim: $(PROG) memory.bin regfile.bin
|
45 |
|
|
./emulator -z igorfibtest -f b:memory.bin -f k:igorfib.lisp -f s:sf -f o:so -f f:filesystem -r regfile.bin -M -a 128 -h 4096 -t 2bit
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
clean:
|
49 |
|
|
rm -f $(PROG) $(OBJS) $(MEMOBJS) $(BINOBJS) memory.bin regfile.bin
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.