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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc1/] [or1ksim/] [cpu/] [or32/] [Makefile.am] - Blame information for rev 1658

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 54 lampret
# Makefile -- Makefile for OR32 dependent simulation
2 7 jrydberg
# Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
3
#
4
# This file is part of OpenRISC 1000 Architectural Simulator.
5
#
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
10
#
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
#
16
# You should have received a copy of the GNU General Public License
17
# along with this program; if not, write to the Free Software
18
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
#
20
 
21
noinst_LIBRARIES = libarch.a
22 706 markom
 
23 1452 nogj
if DYNAMIC_EXECUTION
24 706 markom
 
25 1452 nogj
noinst_PROGRAMS = dyngen test_dyn_rec
26
test_dyn_rec_SOURCES = op.c dyn_rec.c op_support.c gen_ops.c gen_ops_gen.c gen_ops_rel.c dyn_rec_stubs.c or32.c
27
 
28
dyngen_SOURCES = dyngen.c dyngen_i386.c dyngen_elf.c
29
 
30
libarch_a_SOURCES = execute.c or32.c op.c dyn_rec.c op_support.c gen_ops.c gen_ops_gen.c gen_ops_rel.c
31
 
32
dyn_rec.o: gen_ops.h
33
 
34
OP_CFLAGS=-Wall -fomit-frame-pointer -fno-reorder-blocks -O2
35
 
36 1658 nogj
op.S: op.c op_t_reg_mov_op.h op_i386.h op_arith_op.h op_comp_op.h op_extend_op.h op_mac_op.h op_mftspr_op.h op_lwhb_op.h op_swhb_op.h
37 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -S $<
38
 
39
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen op.o
40
 
41 1658 nogj
op.o: op.c op_t_reg_mov_op.h op_i386.h op_arith_op.h op_comp_op.h op_extend_op.h op_mac_op.h op_mftspr_op.h op_lwhb_op.h op_swhb_op.h
42 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -c $<
43
 
44 1512 nogj
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen$(EXEEXT) op.o
45
        ./dyngen$(EXEEXT) op.o gen_ops.c gen_ops_gen.c gen_ops_rel.c gen_ops.h
46 1452 nogj
 
47 706 markom
else
48 1452 nogj
 
49
libarch_a_SOURCES = execute.c or32.c
50
 
51
if GENERATE_NEEDED
52 706 markom
noinst_PROGRAMS = generate
53
generate_SOURCES = or32.c generate.c
54 1452 nogj
 
55 706 markom
BUILT_SOURCES = execgen.c
56
 
57 1512 nogj
execgen.c: generate$(EXEEXT) $(srcdir)/insnset.c
58
        ./generate$(EXEEXT) $(srcdir)/insnset.c execgen.c
59 1345 nogj
 
60 1452 nogj
else
61
 
62
noinst_PROGRAMS =
63
 
64 706 markom
endif
65 1452 nogj
endif
66 1345 nogj
 
67
# If the simulator was first built without --enable-simple and then with it,
68
# then also remove these two files
69 1474 nogj
CLEANFILES=execgen.c generate gen_ops.c gen_ops.h gen_ops_rel.c gen_ops_gen.c

powered by: WebSVN 2.1.0

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