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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [or32/] [Makefile.am] - Blame information for rev 1685

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 1685 nogj
noinst_PROGRAMS = dyngen
26 1452 nogj
 
27
dyngen_SOURCES = dyngen.c dyngen_i386.c dyngen_elf.c
28
 
29
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
30
 
31
dyn_rec.o: gen_ops.h
32
 
33
OP_CFLAGS=-Wall -fomit-frame-pointer -fno-reorder-blocks -O2
34
 
35 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
36 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -S $<
37
 
38
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen op.o
39
 
40 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
41 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -c $<
42
 
43 1512 nogj
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen$(EXEEXT) op.o
44
        ./dyngen$(EXEEXT) op.o gen_ops.c gen_ops_gen.c gen_ops_rel.c gen_ops.h
45 1452 nogj
 
46 706 markom
else
47 1452 nogj
 
48
libarch_a_SOURCES = execute.c or32.c
49
 
50
if GENERATE_NEEDED
51 706 markom
noinst_PROGRAMS = generate
52
generate_SOURCES = or32.c generate.c
53 1452 nogj
 
54 706 markom
BUILT_SOURCES = execgen.c
55
 
56 1512 nogj
execgen.c: generate$(EXEEXT) $(srcdir)/insnset.c
57
        ./generate$(EXEEXT) $(srcdir)/insnset.c execgen.c
58 1345 nogj
 
59 1452 nogj
else
60
 
61
noinst_PROGRAMS =
62
 
63 706 markom
endif
64 1452 nogj
endif
65 1345 nogj
 
66
# If the simulator was first built without --enable-simple and then with it,
67
# then also remove these two files
68 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.