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

Subversion Repositories or1k

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

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 1744 jeremybenn
#
3 7 jrydberg
# Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
4 1744 jeremybenn
# Copyright (C) 2008 Embecosm Limited
5 7 jrydberg
#
6 1744 jeremybenn
# Contributor Jeremy Bennett 
7
#
8 7 jrydberg
# This file is part of OpenRISC 1000 Architectural Simulator.
9
#
10 1744 jeremybenn
# This program is free software; you can redistribute it and/or modify it
11
# under the terms of the GNU General Public License as published by the Free
12
# Software Foundation; either version 3 of the License, or (at your option)
13
# any later version.
14 7 jrydberg
#
15 1744 jeremybenn
# This program is distributed in the hope that it will be useful, but WITHOUT
16
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
# more details.
19 7 jrydberg
#
20 1744 jeremybenn
# You should have received a copy of the GNU General Public License along
21
# with this program.  If not, see .
22 7 jrydberg
 
23 1744 jeremybenn
 
24 7 jrydberg
noinst_LIBRARIES = libarch.a
25 706 markom
 
26 1452 nogj
if DYNAMIC_EXECUTION
27 706 markom
 
28 1685 nogj
noinst_PROGRAMS = dyngen
29 1452 nogj
 
30 1744 jeremybenn
dyngen_SOURCES = dyngen.c dyngen_i386.c dyngen_elf.c \
31
                 common_i386.h dyn32_defs.h dyngen.h dyn_rec.h \
32
                 i386_regs.h op_arith_op.h op_comp_op.h \
33
                 op_extend_op.h op_ff1_op.h op_i386.h op_lwhb_op.h \
34
                 op_mac_op.h op_mftspr_op.h op_support.h op_swhb_op.h \
35
                 op_t_reg_mov_op.h rec_i386.h sched_i386.h simpl32_defs.h
36 1452 nogj
 
37 1744 jeremybenn
libarch_a_SOURCES = execute.c or32.c op.c dyn_rec.c op_support.c gen_ops.c \
38
                    gen_ops_gen.c gen_ops_rel.c \
39
                    common_i386.h dyn32_defs.h dyngen.h dyn_rec.h \
40
                    i386_regs.h op_arith_op.h op_comp_op.h \
41
                    op_extend_op.h op_ff1_op.h op_i386.h op_lwhb_op.h \
42
                    op_mac_op.h op_mftspr_op.h op_support.h op_swhb_op.h \
43
                    op_t_reg_mov_op.h rec_i386.h sched_i386.h simpl32_defs.h
44 1452 nogj
 
45
dyn_rec.o: gen_ops.h
46
 
47
OP_CFLAGS=-Wall -fomit-frame-pointer -fno-reorder-blocks -O2
48
 
49 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
50 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -S $<
51
 
52
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen op.o
53
 
54 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
55 1452 nogj
        $(CC) $(INCLUDES) $(OP_CFLAGS) -o $@ -c $<
56
 
57 1512 nogj
gen_ops.h gen_ops.c gen_ops_gen.c gen_ops_rel.c: dyngen$(EXEEXT) op.o
58
        ./dyngen$(EXEEXT) op.o gen_ops.c gen_ops_gen.c gen_ops_rel.c gen_ops.h
59 1452 nogj
 
60 706 markom
else
61 1452 nogj
 
62 1744 jeremybenn
libarch_a_SOURCES = execute.c or32.c \
63
                    common_i386.h dyn32_defs.h dyngen.h dyn_rec.h \
64
                    i386_regs.h op_arith_op.h op_comp_op.h \
65
                    op_extend_op.h op_ff1_op.h op_i386.h op_lwhb_op.h \
66
                    op_mac_op.h op_mftspr_op.h op_support.h op_swhb_op.h \
67
                    op_t_reg_mov_op.h rec_i386.h sched_i386.h simpl32_defs.h
68 1452 nogj
 
69
if GENERATE_NEEDED
70 706 markom
noinst_PROGRAMS = generate
71 1744 jeremybenn
generate_SOURCES = or32.c generate.c \
72
                   common_i386.h dyn32_defs.h dyngen.h dyn_rec.h \
73
                   i386_regs.h op_arith_op.h op_comp_op.h \
74
                   op_extend_op.h op_ff1_op.h op_i386.h op_lwhb_op.h \
75
                   op_mac_op.h op_mftspr_op.h op_support.h op_swhb_op.h \
76
                   op_t_reg_mov_op.h rec_i386.h sched_i386.h simpl32_defs.h
77 1452 nogj
 
78 1744 jeremybenn
BUILT_SOURCES = execgen.c \
79
                common_i386.h dyn32_defs.h dyngen.h dyn_rec.h \
80
                i386_regs.h op_arith_op.h op_comp_op.h \
81
                op_extend_op.h op_ff1_op.h op_i386.h op_lwhb_op.h \
82
                op_mac_op.h op_mftspr_op.h op_support.h op_swhb_op.h \
83
                op_t_reg_mov_op.h rec_i386.h sched_i386.h simpl32_defs.h
84 706 markom
 
85 1512 nogj
execgen.c: generate$(EXEEXT) $(srcdir)/insnset.c
86
        ./generate$(EXEEXT) $(srcdir)/insnset.c execgen.c
87 1345 nogj
 
88 1452 nogj
else
89
 
90
noinst_PROGRAMS =
91
 
92 706 markom
endif
93 1452 nogj
endif
94 1345 nogj
 
95
# If the simulator was first built without --enable-simple and then with it,
96
# then also remove these two files
97 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.