2 # This file is part of the program psim.
4 # Copyright 1994, 1995, 1996, 1997, 2003 Andrew Cagney
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 srcroot
= $(srcdir)/..
/..
28 exec_prefix = @
exec_prefix@
30 host_alias
= @host_alias@
31 target_alias
= @target_alias@
32 program_transform_name
= @program_transform_name@
35 tooldir
= $(libdir)/$(target_alias
)
39 man1dir = $(mandir)/man1
40 man2dir = $(mandir)/man2
41 man3dir = $(mandir)/man3
42 man4dir = $(mandir)/man4
43 man5dir = $(mandir)/man5
44 man6dir = $(mandir)/man6
45 man7dir = $(mandir)/man7
46 man8dir = $(mandir)/man8
47 man9dir = $(mandir)/man9
49 includedir = @
includedir@
51 # This can be referenced by the gettext configuration code.
58 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
59 INSTALL_DATA
= @INSTALL_DATA@
65 CC_FOR_BUILD
= @CC_FOR_BUILD@
66 CFLAGS_FOR_BUILD
= @CFLAGS_FOR_BUILD@
71 SIM_CFLAGS
= @sim_cflags@
72 INLINE_CFLAGS
= @sim_inline@
73 BSWAP_CFLAGS
= @sim_bswap@
74 ENDIAN_CFLAGS
= @sim_endian@
75 REGPARM_CFLAGS
= @sim_regparm@
76 STDCALL_CFLAGS
= @sim_stdcall@
77 HOSTENDIAN_CFLAGS
= @sim_hostendian@
78 SMP_CFLAGS
= @sim_smp@
79 XOR_ENDIAN_CFLAGS
= @sim_xor_endian@
80 BITSIZE_CFLAGS
= @sim_bitsize@
81 HOSTBITSIZE_CFLAGS
= @sim_hostbitsize@
82 ENV_CFLAGS
= @sim_env@
83 TIMEBASE_CFLAGS
= @sim_timebase@
84 ALIGNMENT_CFLAGS
= @sim_alignment@
85 FLOAT_CFLAGS
= @sim_float@
86 TRACE_CFLAGS
= @sim_trace@
87 ASSERT_CFLAGS
= @sim_assert@
88 RESERVED_CFLAGS
= @sim_reserved@
89 MONITOR_CFLAGS
= @sim_monitor@
90 MODEL_CFLAGS
= @sim_model@ @sim_default_model@ @sim_model_issue@
91 STDIO_CFLAGS
= @sim_stdio@
92 TERMIO_CFLAGS
= @sim_termio@
93 WARNING_CFLAGS
= @sim_warnings@
94 DEVZERO_CFLAGS
= @sim_devzero@
95 CONFIG_CFLAGS
= $(BSWAP_CFLAGS
) \
99 $(HOSTENDIAN_CFLAGS
) \
101 $(XOR_ENDIAN_CFLAGS
) \
103 $(HOSTBITSIZE_CFLAGS
) \
106 $(ALIGNMENT_CFLAGS
) \
116 SIM_FPU_CFLAGS
= @sim_fpu_cflags@
118 STD_CFLAGS
= $(CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(WARNING_CFLAGS
) $(SIM_CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(INCLUDES
) $(INTL_CFLAGS
) $(SIM_FPU_CFLAGS
)
119 NOWARN_CFLAGS
= $(CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(SIM_CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(INCLUDES
) $(SIM_FPU_CFLAGS
)
120 BUILD_CFLAGS
= $(CFLAGS_FOR_BUILD
) $(INCLUDES
) $(WARNING_CFLAGS
)
124 CONFIG_FILE
= @sim_config@
125 IGEN_OPCODE_RULES
= @sim_opcode@
126 IGEN_DECODE_MECHANISM
= @sim_decode_mechanism@
127 IGEN_DUPLICATE
= @sim_dup@
128 IGEN_JUMP
= @sim_jump@
129 IGEN_FILTER
= @sim_filter@
130 IGEN_ICACHE
= @sim_icache@
131 IGEN_SMP
= @sim_igen_smp@
132 IGEN_LINE_NR
= @sim_line_nr@
133 DGEN_FLAGS
= @sim_switch@
135 HDEFINES
= @HDEFINES@
138 $(IGEN_DECODE_MECHANISM
) \
149 LIB_INCLUDES
= -I
$(srcdir)/..
/..
/include
150 BFD_INCLUDES
= -I..
/..
/bfd
-I
$(srcdir)/..
/..
/bfd
151 GDB_INCLUDES
= -I..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
/config
153 INCLUDES
= -I.
-I
$(srcdir) $(LIB_INCLUDES
) $(BFD_INCLUDES
) $(GDB_INCLUDES
)
155 LIBIBERTY_LIB
= ..
/..
/libiberty
/libiberty.a
156 BFD_LIB
= ..
/..
/bfd
/libbfd.a
158 INTLLIBS
= @INTLLIBS@
159 INTLDEPS
= @INTLDEPS@
160 INTL_DIR
= ..
/..
/intl
161 INTL_SRC
= $(srcdir)/$(INTL_DIR
)
162 INTL_CFLAGS
= -I
$(INTL_DIR
) -I
$(INTL_SRC
)
167 all: run
$(TARGETLIB
) $(GDB_OBJ
)
170 $(CC
) -c
$(STD_CFLAGS
) $<
173 # Headers outside sim/ppc.
174 ANSIDECL_H
= $(srcroot
)/include/ansidecl.h
175 BFD_H
= ..
/..
/bfd
/bfd.h
176 GDB_CALLBACK_H
= $(srcroot
)/include/gdb
/callback.h
177 GDB_REMOTE_SIM_H
= $(srcroot
)/include/gdb
/remote-sim.h
178 GDB_SIM_PPC_H
= $(srcroot
)/include/gdb
/sim-ppc.h
179 COMMON_SIM_BASE_H
= $(srcroot
)/sim
/common
/sim-base.h
180 COMMON_SIM_BASICS_H
= $(srcroot
)/sim
/common
/sim-basics.h
181 COMMON_SIM_FPU_H
= $(srcroot
)/sim
/common
/sim-fpu.h
182 COMMON_SIM_INLINE_H
= $(srcroot
)/sim
/common
/sim-inline.h
183 COMMON_SIM_SIGNAL_H
= $(srcroot
)/sim
/common
/sim-signal.h
185 # Headers in sim/ppc.
189 ALTIVEC_EXPRESSION_H
= \
192 ALTIVEC_REGISTERS_H
= \
251 E500_EXPRESSION_H
= \
280 FILTER_FILENAME_H
= \
313 IDECODE_EXPRESSION_H
= \
314 idecode_expression.h \
315 $(ALTIVEC_EXPRESSION_H
) \
364 $(E500_REGISTERS_H
) \
365 $(ALTIVEC_REGISTERS_H
) \
380 $(COMMON_SIM_BASICS_H
) \
381 $(COMMON_SIM_SIGNAL_H
) \
418 $(IDECODE_EXPRESSION_H
) \
419 $(IDECODE_FIELDS_H
) \
454 BUILT_SRC_WO_CONFIG
= \
456 support.h support.c \
457 idecode.h idecode.c \
458 semantics.h semantics.c \
462 support.h support.c \
469 $(BUILT_SRC_WO_CONFIG
) \
506 # NOTE: semantics, idecode and psim put last so smaller files are compiled
544 GDB_OBJ
= gdb-sim.o sim_calls.o @sim_callback@
546 HW_SRC
= @sim_hw_src@
547 HW_OBJ
= @sim_hw_obj@
549 PACKAGE_SRC
= @sim_pk_src@
550 PACKAGE_OBJ
= @sim_pk_obj@
553 psim
: $(TARGETLIB
) main.o
$(LIBIBERTY_LIB
) $(BFD_LIB
) $(LIBS
) $(INTLDEPS
)
554 $(CC
) $(CFLAGS
) $(SIM_CFLAGS
) $(LDFLAGS
) -o psim
$(EXEEXT
) main.o
$(TARGETLIB
) $(BFD_LIB
) $(INTLLIBS
) $(LIBIBERTY_LIB
) $(LIBS
)
558 ln psim
$(EXEEXT
) run
$(EXEEXT
)
560 $(TARGETLIB
): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines
$(LIB_OBJ
) $(GDB_OBJ
)
562 $(AR
) $(AR_FLAGS
) $(TARGETLIB
) $(LIB_OBJ
) $(GDB_OBJ
)
563 $(RANLIB
) $(TARGETLIB
)
565 psim.o
: psim.c
$(CPU_H
) $(IDECODE_H
) $(OPTIONS_H
) $(TREE_H
) $(BFD_H
)
567 bits.o
: bits.c
$(BASICS_H
)
569 debug.o
: debug.c
$(CONFIG_H
) $(BASICS_H
)
570 filter_filename.o
: filter_filename.c
$(CONFIG_H
) $(PPC_CONFIG_H
) $(FILTER_FILENAME_H
)
572 sim-endian.o
: sim-endian.c
$(CONFIG_H
) $(BASICS_H
) $(SIM_ENDIAN_N_H
)
574 os_emul.o
: os_emul.c
$(CPU_H
) $(IDECODE_H
) $(OS_EMUL_H
) $(EMUL_GENERIC_H
) $(EMUL_NETBSD_H
) $(EMUL_UNIX_H
) $(EMUL_CHIRP_H
) $(EMUL_BUGAPI_H
)
575 emul_generic.o
: emul_generic.c
$(EMUL_GENERIC_H
)
577 emul_bugapi.o
: emul_bugapi.c
$(EMUL_GENERIC_H
) $(EMUL_BUGAPI_H
)
578 emul_chirp.o
: emul_chirp.c
$(EMUL_GENERIC_H
) $(EMUL_CHIRP_H
)
579 emul_netbsd.o
: emul_netbsd.c
$(EMUL_GENERIC_H
) $(EMUL_NETBSD_H
)
580 emul_unix.o
: emul_unix.c
$(EMUL_GENERIC_H
) $(EMUL_UNIX_H
)
582 registers.o
: registers.c
$(BASICS_H
) $(REGISTERS_H
)
584 cpu.o
: cpu.c
$(CPU_H
) $(IDECODE_H
)
586 interrupts.o
: interrupts.c
$(CPU_H
) $(IDECODE_H
) $(OS_EMUL_H
)
588 # Given that inlines are turned on now, rebuild idecode whenever
590 idecode.o
: idecode.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(LIB_INLINE_SRC
) $(BUILT_SRC
)
592 # double.o: double.c dp-bit.c
594 vm.o
: vm.c
$(BASICS_H
) $(REGISTERS_H
) $(DEVICE_H
) $(COREFILE_H
) $(VM_H
) $(INTERRUPTS_H
) $(MON_H
) $(CPU_H
) $(VM_N_H
)
596 corefile.o
: corefile.c
$(BASICS_H
) $(DEVICE_TABLE_H
) $(COREFILE_H
) $(COREFILE_N_H
)
598 model.o
: model.c
$(CPU_H
) $(MON_H
)
600 events.o
: events.c
$(BASICS_H
) $(EVENTS_H
)
602 sim_calls.o
: sim_calls.c
$(PSIM_H
) $(OPTIONS_H
) $(DEFS_H
) $(BFD_H
) $(GDB_CALLBACK_H
) $(GDB_REMOTE_SIM_H
)
604 gdb-sim.o
: gdb-sim.c
$(PSIM_H
) $(OPTIONS_H
) $(REGISTERS_H
) $(GDB_REMOTE_SIM_H
) $(GDB_SIM_PPC_H
) $(SIM_CALLBACK_H
)
606 spreg.o
: spreg.c
$(BASICS_H
) $(SPREG_H
)
608 main.o
: main.c
$(PSIM_H
) $(OPTIONS_H
) $(DEVICE_H
) $(EVENTS_H
) $(BFD_H
) $(GDB_CALLBACK_H
) $(GDB_REMOTE_SIM_H
)
610 device.o
: device.c
$(DEVICE_TABLE_H
) $(CAP_H
) $(EVENTS_H
) $(PSIM_H
)
612 tree.o
: tree.c
$(BASICS_H
) $(DEVICE_H
) $(TREE_H
)
614 device_table.o
: device_table.c
$(DEVICE_TABLE_H
) hw.c
616 cap.o
: cap.c
$(CAP_H
)
618 semantics.o
: semantics.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
620 icache.o
: icache.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(ICACHE_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
622 support.o
: support.c
$(CPU_H
) $(IDECODE_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
624 itable.o
: itable.c
$(ITABLE_H
)
626 mon.o
: mon.c
$(BASICS_H
) $(CPU_H
) $(MON_H
)
628 # GDB after 4.16 expects the default_callback structure to be setup.
629 # As a kludge, build the common stuff here for now.
630 gentmap
: ..
/common
/gentmap.c Makefile targ-vals.def
631 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -I.
-I..
/common
-I
$(srcdir)/..
/common
-o gentmap
$< $(BUILD_LIBS
)
633 targ-vals.def
: $(srcdir)/..
/common
/nltvals.def
634 rm -f targ-vals.def tmp-def
635 cat
$(srcdir)/..
/common
/nltvals.def
> tmp-vals.def
636 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-vals.def targ-vals.def
638 targ-vals.h
: Makefile gentmap
$(srcdir)/..
/..
/move-if-change
640 .
/gentmap
-h
> tmp-vals.h
641 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-vals.h targ-vals.h
643 targ-map.c
: Makefile gentmap
$(srcdir)/..
/..
/move-if-change
645 .
/gentmap
-c
> tmp-map.c
646 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-map.c targ-map.c
648 callback.o
: ..
/common
/callback.c
$(TARG_VALS_H
) $(CONFIG_H
)
649 $(CC
) -c
$(STD_CFLAGS
) -DHAVE_CONFIG_H
$<
651 targ-map.o
: targ-map.c
$(ANSIDECL_H
) $(GDB_CALLBACK_H
) $(TARG_VALS_H
)
653 sim-fpu.o
: $(srcdir)/..
/common
/sim-fpu.c
$(CONFIG_H
) $(TCONFIG_H
)
654 $(CC
) -c
$(STD_CFLAGS
) -DHAVE_CONFIG_H
$(srcdir)/..
/common
/sim-fpu.c
660 # Rebuild options whenever something changes so the date/time is up to date.
661 options.o
: options.c
$(CPU_H
) $(OPTIONS_H
) $(DEFINES_H
) $(BASICS_H
) $(IDECODE_H
) $(INLINE
) $(LIB_SRC
) $(BUILT_SRC
) config.status Makefile
662 $(CC
) -c
$(STD_CFLAGS
) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $<
664 defines.h
: tmp-defines
; @true
665 tmp-defines
: config.h Makefile
666 sed
-n
-e
'/^#define HAVE_/s/ 1$$/",/' -e
'/^#define HAVE_/s//"HAVE_/p' < config.h
> tmp-defines.h
667 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-defines.h defines.h
671 # Rules to create the built c source code files
674 ppc-config.h
: $(CONFIG_FILE
)
675 cp
$(srcdir)/$(CONFIG_FILE
) ppc-config.h
678 tmp-dgen
: dgen ppc-spr-table
$(srcdir)/..
/..
/move-if-change
679 .
/dgen
$(DGEN_FLAGS
) \
680 -r
$(srcdir)/ppc-spr-table \
681 -n spreg.h
-hp tmp-spreg.h \
682 -n spreg.c
-p tmp-spreg.c
683 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-spreg.h spreg.h
684 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-spreg.c spreg.c
687 tmp-igen
: igen
$(srcdir)/ppc-instructions
$(srcdir)/altivec.igen
$(srcdir)/e500.igen
$(IGEN_OPCODE_RULES
) $(srcdir)/..
/..
/move-if-change tmp-ld-decode tmp-ld-cache tmp-ld-insn tmp-filter
688 .
/igen
$(IGEN_FLAGS
) \
689 -o
$(srcdir)/$(IGEN_OPCODE_RULES
) \
690 -I
$(srcdir) -i
$(srcdir)/ppc-instructions \
691 -n icache.h
-hc tmp-icache.h \
692 -n icache.c
-c tmp-icache.c \
693 -n semantics.h
-hs tmp-semantics.h \
694 -n semantics.c
-s tmp-semantics.c \
695 -n idecode.h
-hd tmp-idecode.h \
696 -n idecode.c
-d tmp-idecode.c \
697 -n itable.h
-ht tmp-itable.h \
698 -n itable.c
-t tmp-itable.c \
699 -n model.h
-hm tmp-model.h \
700 -n model.c
-m tmp-model.c \
701 -n support.h
-hf tmp-support.h \
702 -n support.c
-f tmp-support.c
703 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
704 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
705 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
706 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
707 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
708 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
709 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
710 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
711 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
712 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
713 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
714 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
717 # NOTE: Some versions of make don't handle files created as side-effects
718 # uncomment the below if that is the case.
720 $(TARGETLIB
): tmp-igen tmp-dgen
721 itable.h itable.c icache.h icache.c idecode.h idecode.c semantics.h semantics.c model.h model.c support.h support.c
: tmp-igen
722 spreg.h spreg.c
: tmp-dgen
724 dgen
: dgen.o table.o lf.o misc.o filter_host.o
725 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -o dgen dgen.o table.o lf.o misc.o filter_host.o
$(BUILD_LIBS
)
727 igen
: igen.o table.o lf.o misc.o filter_host.o ld-decode.o ld-cache.o
filter.o ld-insn.o gen-model.o gen-itable.o gen-icache.o gen-semantics.o gen-idecode.o gen-support.o
728 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o igen igen.o table.o lf.o misc.o filter_host.o ld-decode.o ld-cache.o
filter.o ld-insn.o gen-model.o gen-itable.o gen-icache.o gen-semantics.o gen-idecode.o gen-support.o
$(BUILD_LIBS
)
730 filter_host.c
: filter_filename.c
731 cat
$(srcdir)/filter_filename.c
> filter_host.c
733 filter_host.o
: filter_host.c
$(CONFIG_H
) $(PPC_CONFIG_H
) $(FILTER_FILENAME_H
)
734 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c filter_host.c
736 table.o
: table.c
$(CONFIG_H
) $(MISC_H
) $(LF_H
) $(TABLE_H
)
737 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/table.c
739 lf.o
: lf.c
$(CONFIG_H
) $(MISC_H
) $(LF_H
)
740 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/lf.c
742 filter.o
: filter.c
$(CONFIG_H
) $(MISC_H
) $(FILTER_H
)
743 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/filter.c
744 tmp-filter
: filter.c
$(MISC_H
) misc.o
745 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-filter
-DMAIN
$(srcdir)/filter.c misc.o
$(BUILD_LIBS
)
747 ld-decode.o
: ld-decode.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(LD_DECODE_H
)
748 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-decode.c
749 tmp-ld-decode
: ld-decode.c misc.o lf.o table.o filter_host.o
750 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-ld-decode
-DMAIN
$(srcdir)/ld-decode.c misc.o lf.o table.o filter_host.o
$(BUILD_LIBS
)
752 ld-cache.o
: ld-cache.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(LD_CACHE_H
)
753 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-cache.c
754 tmp-ld-cache
: ld-cache.c misc.o lf.o table.o filter_host.o
755 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-ld-cache
-DMAIN
$(srcdir)/ld-cache.c misc.o lf.o table.o filter_host.o
$(BUILD_LIBS
)
757 ld-insn.o
: ld-insn.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_DECODE_H
) $(LD_CACHE_H
) $(LD_INSN_H
) $(IGEN_H
)
758 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-insn.c
759 tmp-ld-insn
: ld-insn.c ld-cache.o misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
760 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-ld-insn
-DMAIN
$(srcdir)/ld-insn.c ld-cache.o misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
$(BUILD_LIBS
)
762 gen-model.o
: gen-model.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_CACHE_H
) $(LD_DECODE_H
) $(LD_INSN_H
) $(GEN_MODEL_H
)
763 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-model.c
765 gen-itable.o
: gen-itable.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_CACHE_H
) $(LD_DECODE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_ITABLE_H
)
766 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-itable.c
768 gen-icache.o
: gen-icache.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_DECODE_H
) $(LD_CACHE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_SEMANTICS_H
) $(GEN_IDECODE_H
) $(GEN_ICACHE_H
)
769 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-icache.c
771 gen-semantics.o
: gen-semantics.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_DECODE_H
) $(LD_CACHE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_SEMANTICS_H
) $(GEN_ICACHE_H
) $(GEN_IDECODE_H
)
772 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-semantics.c
774 gen-idecode.o
: gen-idecode.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_DECODE_H
) $(LD_CACHE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_IDECODE_H
) $(GEN_ICACHE_H
) $(GEN_SEMANTICS_H
)
775 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-idecode.c
777 gen-support.o
: gen-support.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(FILTER_H
) $(LD_DECODE_H
) $(LD_CACHE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_SEMANTICS_H
) $(GEN_SUPPORT_H
)
778 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-support.c
780 dgen.o
: dgen.c
$(CONFIG_H
) $(MISC_H
) $(LF_H
) $(TABLE_H
)
781 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/dgen.c
783 igen.o
: igen.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(CONFIG_H
) $(FILTER_H
) $(LD_CACHE_H
) $(LD_DECODE_H
) $(LD_INSN_H
) $(IGEN_H
) $(GEN_MODEL_H
) $(GEN_ICACHE_H
) $(GEN_ITABLE_H
) $(GEN_IDECODE_H
) $(GEN_SEMANTICS_H
) $(GEN_SUPPORT_H
)
784 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/igen.c
786 misc.o
: misc.c
$(CONFIG_H
) $(MISC_H
)
787 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/misc.c
792 hw.c hw.h
: tmp-hw
; @true
793 tmp-hw
: Makefile
$(HW_SRC
) $(srcdir)/..
/..
/move-if-change
794 # The first for loop is to remove duplicates.
796 for i in
$(HW_SRC
) ; do \
802 for hw in
$$f ; do echo
$$hw ; done \
803 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
804 -e
's/^/extern const device_descriptor /' \
805 -e
's/$$/_device_descriptor\[\];/' \
808 for i in
$(HW_SRC
) ; do \
814 for hw in
$$f ; do echo
$$hw ; done \
815 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
817 -e
's/$$/_device_descriptor,/' \
819 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-hw.h hw.h
820 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-hw.c hw.c
823 hw_cpu.o
: hw_cpu.c
$(DEVICE_TABLE_H
) $(HW_CPU_H
) $(INTERRUPTS_H
) $(CPU_H
)
824 hw_com.o
: hw_com.c
$(DEVICE_TABLE_H
)
825 hw_core.o
: hw_core.c
$(DEVICE_TABLE_H
) $(COREFILE_H
)
826 hw_disk.o
: hw_disk.c
$(DEVICE_TABLE_H
) $(PK_H
)
827 hw_eeprom.o
: hw_eeprom.c
$(DEVICE_TABLE_H
)
828 hw_glue.o
: hw_glue.c
$(DEVICE_TABLE_H
)
829 hw_htab.o
: hw_htab.c
$(DEVICE_TABLE_H
) $(BFD_H
)
830 hw_ide.o
: hw_ide.c
$(DEVICE_TABLE_H
)
831 hw_init.o
: hw_init.c
$(DEVICE_TABLE_H
) $(BFD_H
) $(PSIM_H
)
832 hw_iobus.o
: hw_iobus.c
$(DEVICE_TABLE_H
)
833 hw_memory.o
: hw_memory.c
$(DEVICE_TABLE_H
)
834 hw_nvram.o
: hw_nvram.c
$(DEVICE_TABLE_H
)
835 hw_opic.o
: hw_opic.c
$(DEVICE_TABLE_H
)
836 hw_pal.o
: hw_pal.c
$(DEVICE_TABLE_H
) $(CPU_H
)
837 hw_phb.o
: hw_phb.c
$(DEVICE_TABLE_H
) $(HW_PHB_H
) $(COREFILE_H
)
838 hw_register.o
: hw_register.c
$(DEVICE_TABLE_H
) $(PSIM_H
)
839 hw_trace.o
: hw_trace.c
$(DEVICE_TABLE_H
)
840 hw_vm.o
: hw_vm.c
$(DEVICE_TABLE_H
) $(CPU_H
)
841 # ignore this line, it stops make from getting confused
847 tmp-pk
: Makefile
$(PACKAGE_SRC
) $(srcdir)/..
/..
/move-if-change
848 # The first for loop is to remove duplicates.
850 for i in
$(PACKAGE_SRC
) ; do \
856 for pk in
$$f ; do echo
$$pk ; done \
857 | sed
-e
's/^.*pk_\(.*\)\.c/\1/' \
858 -e
's/^/extern package_create_instance_callback pk_/' \
859 -e
's/$$/_create_instance;/' \
861 $(SHELL
) $(srcdir)/..
/..
/move-if-change tmp-pk.h pk.h
864 pk_disklabel.o
: pk_disklabel.c
$(DEVICE_TABLE_H
) $(PK_H
)
865 # ignore this line, it stops make from getting confused
872 etags
$(srcdir)/*.h
$(srcdir)/*.c
$(BUILT_SRC
)
875 rm -f tmp-
* *.
[oasi
] core psim
$(EXEEXT
) run
$(EXEEXT
) igen dgen
$(BUILT_SRC_WO_CONFIG
) gentmap
877 distclean realclean: clean
878 rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
880 maintainer-clean
: distclean
881 rm -f
*~
*.log ppc-config.h core
*.core
883 Makefile
: Makefile.in config.status
884 CONFIG_FILES
=Makefile CONFIG_HEADERS
= $(SHELL
) .
/config.status
886 config.h
: stamp-h
; @true
887 stamp-h
: config.in config.status
888 CONFIG_FILES
= CONFIG_HEADERS
=config.h
:config.in
$(SHELL
) .
/config.status
890 config.status
: configure
891 $(SHELL
) .
/config.status
--recheck
894 n
=`echo run | sed '$(program_transform_name)'`; \
895 $(INSTALL_PROGRAM
) run
$(EXEEXT
) $(DESTDIR
)$(bindir)/$$n$(EXEEXT
)
898 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(DESTDIR
)$(bindir)