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 3 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, see <http://www.gnu.org/licenses/>.
24 srccom
= $(srcdir)/..
/common
25 srcroot
= $(srcdir)/..
/..
28 include $(srcroot
)/gdb
/silent-rules.mk
30 # Helper code from gnulib.
31 GNULIB_PARENT_DIR
= ..
/..
32 include $(GNULIB_PARENT_DIR
)/gnulib
/Makefile.gnulib.inc
34 # Settings from top-level configure.
35 include ..
/arch-subdir.mk
38 exec_prefix = @
exec_prefix@
40 datarootdir
= @datarootdir@
43 man1dir = $(mandir)/man1
44 man2dir = $(mandir)/man2
45 man3dir = $(mandir)/man3
46 man4dir = $(mandir)/man4
47 man5dir = $(mandir)/man5
48 man6dir = $(mandir)/man6
49 man7dir = $(mandir)/man7
50 man8dir = $(mandir)/man8
51 man9dir = $(mandir)/man9
53 includedir = @
includedir@
55 # This can be referenced by the gettext configuration code.
63 INLINE_CFLAGS
= $(SIM_INLINE
)
64 SMP_CFLAGS
= @sim_smp@
65 XOR_ENDIAN_CFLAGS
= @sim_xor_endian@
66 BITSIZE_CFLAGS
= @sim_bitsize@
67 HOSTBITSIZE_CFLAGS
= @sim_hostbitsize@
68 TIMEBASE_CFLAGS
= @sim_timebase@
69 FLOAT_CFLAGS
= @sim_float@
70 MONITOR_CFLAGS
= @sim_monitor@
71 MODEL_CFLAGS
= @sim_model@ @sim_default_model@ @sim_model_issue@
72 TERMIO_CFLAGS
= @sim_termio@
73 SWITCH_CFLAGS
= @sim_switch@
76 $(XOR_ENDIAN_CFLAGS
) \
78 $(HOSTBITSIZE_CFLAGS
) \
85 SIM_FPU_CFLAGS
= -DHAVE_COMMON_FPU
-I..
/common
-I
${srcdir}/..
/common
87 STD_CFLAGS
= $(CFLAGS
) $(WERROR_CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(WARN_CFLAGS
) $(INCLUDES
) $(INCGNU
) $(SIM_FPU_CFLAGS
)
88 NOWARN_CFLAGS
= $(CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(INCLUDES
) $(SIM_FPU_CFLAGS
)
89 BUILD_CFLAGS
= $(CFLAGS_FOR_BUILD
) $(INCLUDES
) $(WARN_CFLAGS
)
91 LIBS
= $(COMMON_LIBS
) @LIBS@
$(LIBGNU
) $(LIBGNU_EXTRA_LIBS
)
93 COMPILE_FOR_BUILD
= $(CC_FOR_BUILD
) $(BUILD_CFLAGS
)
94 LINK_FOR_BUILD
= $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(LDFLAGS_FOR_BUILD
) -o
$@
96 IGEN_OPCODE_RULES
= @sim_opcode@
97 IGEN_DECODE_MECHANISM
= @sim_decode_mechanism@
98 IGEN_DUPLICATE
= @sim_dup@
99 IGEN_JUMP
= @sim_jump@
100 IGEN_FILTER
= @sim_filter@
101 IGEN_ICACHE
= @sim_icache@
102 IGEN_SMP
= @sim_igen_smp@
103 IGEN_LINE_NR
= @sim_line_nr@
106 $(IGEN_DECODE_MECHANISM
) \
114 # igen leaks memory, and therefore makes AddressSanitizer unhappy. Disable
115 # leak detection while running it.
117 IGEN
= ASAN_OPTIONS
=detect_leaks
=0 .
/igen
122 LIB_INCLUDES
= -I
$(srcdir)/..
/..
/include
123 BFD_INCLUDES
= -I..
/..
/bfd
-I
$(srcdir)/..
/..
/bfd
124 GDB_INCLUDES
= -I..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
/config
126 INCLUDES
= -I.
-I
$(srcdir) $(LIB_INCLUDES
) $(BFD_INCLUDES
) $(GDB_INCLUDES
) -I..
/..
128 LIBIBERTY_LIB
= ..
/..
/libiberty
/libiberty.a
129 BFD_LIB
= ..
/..
/bfd
/libbfd.la
134 all: main.o
$(TARGETLIB
) $(GDB_OBJ
)
137 $(ECHO_CC
) $(CC
) -c
$(STD_CFLAGS
) $<
140 # Headers outside sim/ppc.
141 ANSIDECL_H
= $(srcroot
)/include/ansidecl.h
142 BFD_H
= ..
/..
/bfd
/bfd.h
143 GDB_CALLBACK_H
= $(srcroot
)/include/sim
/callback.h
144 GDB_REMOTE_SIM_H
= $(srcroot
)/include/sim
/sim.h
145 GDB_SIM_PPC_H
= $(srcroot
)/include/sim
/sim-ppc.h
146 COMMON_SIM_BASE_H
= $(srcroot
)/sim
/common
/sim-base.h
147 COMMON_SIM_BASICS_H
= $(srcroot
)/sim
/common
/sim-basics.h
148 COMMON_SIM_FPU_H
= $(srcroot
)/sim
/common
/sim-fpu.h
149 COMMON_SIM_INLINE_H
= $(srcroot
)/sim
/common
/sim-inline.h
150 COMMON_SIM_SIGNAL_H
= $(srcroot
)/sim
/common
/sim-signal.h
152 # Headers in sim/ppc.
156 ALTIVEC_EXPRESSION_H
= \
159 ALTIVEC_REGISTERS_H
= \
217 E500_EXPRESSION_H
= \
246 FILTER_FILENAME_H
= \
279 IDECODE_EXPRESSION_H
= \
280 idecode_expression.h \
281 $(ALTIVEC_EXPRESSION_H
) \
330 $(E500_REGISTERS_H
) \
331 $(ALTIVEC_REGISTERS_H
) \
346 $(COMMON_SIM_BASICS_H
) \
347 $(COMMON_SIM_SIGNAL_H
) \
384 $(IDECODE_EXPRESSION_H
) \
385 $(IDECODE_FIELDS_H
) \
411 BUILT_SRC_WO_CONFIG
= \
413 support.h support.c \
414 idecode.h idecode.c \
415 semantics.h semantics.c \
418 support.h support.c \
424 $(BUILT_SRC_WO_CONFIG
) \
459 COMMON_OBJS_NAMES
= \
461 target-newlib-errno.o \
462 target-newlib-open.o \
463 target-newlib-signal.o \
464 target-newlib-syscall.o \
466 COMMON_OBJS
= $(COMMON_OBJS_NAMES
:%=..
/common
/%)
468 # NOTE: semantics, idecode and psim put last so smaller files are compiled
507 GDB_OBJ
= gdb-sim.o sim_calls.o
509 HW_SRC
= @sim_hw_src@
510 HW_OBJ
= @sim_hw_obj@
512 PACKAGE_SRC
= pk_disklabel.c
513 PACKAGE_OBJ
= $(PACKAGE_SRC
:.c
=.o
)
516 $(TARGETLIB
): tmp-igen tmp-hw tmp-defines
$(LIB_OBJ
) $(GDB_OBJ
)
517 $(ECHO_AR
) $(AR
) $(AR_FLAGS
) $(TARGETLIB
) $(LIB_OBJ
) $(GDB_OBJ
)
518 $(ECHO_RANLIB
) $(RANLIB
) $(TARGETLIB
)
520 psim.o
: psim.c
$(CPU_H
) $(IDECODE_H
) $(OPTIONS_H
) $(TREE_H
) $(BFD_H
)
522 bits.o
: bits.c
$(BASICS_H
)
524 debug.o
: debug.c
$(CONFIG_H
) $(BASICS_H
)
525 filter_filename.o
: filter_filename.c
$(CONFIG_H
) $(FILTER_FILENAME_H
)
527 sim-endian.o
: sim-endian.c
$(CONFIG_H
) $(BASICS_H
) $(SIM_ENDIAN_N_H
)
529 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
)
530 emul_generic.o
: emul_generic.c
$(EMUL_GENERIC_H
)
532 emul_bugapi.o
: emul_bugapi.c
$(EMUL_GENERIC_H
) $(EMUL_BUGAPI_H
)
533 emul_chirp.o
: emul_chirp.c
$(EMUL_GENERIC_H
) $(EMUL_CHIRP_H
)
534 emul_netbsd.o
: emul_netbsd.c
$(EMUL_GENERIC_H
) $(EMUL_NETBSD_H
)
535 emul_unix.o
: emul_unix.c
$(EMUL_GENERIC_H
) $(EMUL_UNIX_H
)
537 registers.o
: registers.c
$(BASICS_H
) $(REGISTERS_H
)
539 cpu.o
: cpu.c
$(CPU_H
) $(IDECODE_H
)
541 interrupts.o
: interrupts.c
$(CPU_H
) $(IDECODE_H
) $(OS_EMUL_H
)
543 # Given that inlines are turned on now, rebuild idecode whenever
545 idecode.o
: idecode.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(LIB_INLINE_SRC
) $(BUILT_SRC
)
547 # double.o: double.c dp-bit.c
549 vm.o
: vm.c
$(BASICS_H
) $(REGISTERS_H
) $(DEVICE_H
) $(COREFILE_H
) $(VM_H
) $(INTERRUPTS_H
) $(MON_H
) $(CPU_H
) $(VM_N_H
)
551 corefile.o
: corefile.c
$(BASICS_H
) $(DEVICE_TABLE_H
) $(COREFILE_H
) $(COREFILE_N_H
)
553 model.o
: model.c
$(CPU_H
) $(MON_H
)
555 events.o
: events.c
$(BASICS_H
) $(EVENTS_H
)
557 sim_calls.o
: sim_calls.c
$(PSIM_H
) $(OPTIONS_H
) $(DEFS_H
) $(BFD_H
) $(GDB_CALLBACK_H
) $(GDB_REMOTE_SIM_H
)
559 gdb-sim.o
: gdb-sim.c
$(PSIM_H
) $(OPTIONS_H
) $(REGISTERS_H
) $(GDB_REMOTE_SIM_H
) $(GDB_SIM_PPC_H
) $(SIM_CALLBACK_H
)
561 spreg.o
: spreg.c
$(BASICS_H
) $(SPREG_H
)
563 main.o
: main.c
$(PSIM_H
) $(OPTIONS_H
) $(DEVICE_H
) $(EVENTS_H
) $(BFD_H
) $(GDB_CALLBACK_H
) $(GDB_REMOTE_SIM_H
)
565 device.o
: device.c
$(DEVICE_TABLE_H
) $(CAP_H
) $(EVENTS_H
) $(PSIM_H
)
567 tree.o
: tree.c
$(BASICS_H
) $(DEVICE_H
) $(TREE_H
)
569 device_table.o
: device_table.c
$(DEVICE_TABLE_H
) hw.c
571 cap.o
: cap.c
$(CAP_H
)
573 semantics.o
: semantics.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
575 icache.o
: icache.c
$(CPU_H
) $(IDECODE_H
) $(SEMANTICS_H
) $(ICACHE_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
577 support.o
: support.c
$(CPU_H
) $(IDECODE_H
) $(COMMON_SIM_INLINE_H
) $(COMMON_SIM_FPU_H
) $(SUPPORT_H
)
579 itable.o
: itable.c
$(ITABLE_H
)
581 mon.o
: mon.c
$(BASICS_H
) $(CPU_H
) $(MON_H
)
583 sim-fpu.o
: $(srcdir)/..
/common
/sim-fpu.c
$(CONFIG_H
)
584 $(ECHO_CC
) $(CC
) -c
$(STD_CFLAGS
) -DHAVE_CONFIG_H
$(srcdir)/..
/common
/sim-fpu.c
586 # Rebuild options whenever something changes so the date/time is up to date.
587 options.o
: options.c
$(CPU_H
) $(OPTIONS_H
) $(DEFINES_H
) $(BASICS_H
) $(IDECODE_H
) $(INLINE
) $(LIB_SRC
) $(BUILT_SRC
) config.status Makefile
588 $(ECHO_CC
) $(CC
) -c
$(STD_CFLAGS
) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' $(srcdir)/options.c
590 defines.h
: tmp-defines
; @true
591 tmp-defines
: config.h Makefile
592 $(ECHO_GEN
) sed
-n
-e
'/^#define HAVE_/s/ 1$$/",/' -e
'/^#define HAVE_/s//"HAVE_/p' < config.h
> tmp-defines.h
593 $(SILENCE
) $(SHELL
) $(srcroot
)/move-if-change tmp-defines.h defines.h
597 # Rules to create the built c source code files
600 tmp-igen
: igen
$(srcdir)/powerpc.igen
$(srcdir)/altivec.igen
$(srcdir)/e500.igen
$(IGEN_OPCODE_RULES
) $(srcroot
)/move-if-change
601 $(ECHO_GEN
) $(IGEN
) $(IGEN_FLAGS
) \
602 -o
$(srcdir)/$(IGEN_OPCODE_RULES
) \
603 -I
$(srcdir) -i
$(srcdir)/powerpc.igen \
604 -n icache.h
-hc icache.h \
605 -n icache.c
-c icache.c \
606 -n semantics.h
-hs semantics.h \
607 -n semantics.c
-s semantics.c \
608 -n idecode.h
-hd idecode.h \
609 -n idecode.c
-d idecode.c \
610 -n itable.h
-ht itable.h \
611 -n itable.c
-t itable.c \
612 -n model.h
-hm model.h \
613 -n model.c
-m model.c \
614 -n support.h
-hf support.h \
615 -n support.c
-f support.c
618 # NOTE: Some versions of make don't handle files created as side-effects
619 # uncomment the below if that is the case.
621 $(TARGETLIB
): tmp-igen
622 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
624 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
625 $(ECHO_CCLD
) $(LINK_FOR_BUILD
) 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
627 filter_host.c
: filter_filename.c
628 $(ECHO_GEN
) cat
$(srcdir)/filter_filename.c
> filter_host.c
630 filter_host.o
: filter_host.c
$(CONFIG_H
) $(FILTER_FILENAME_H
)
631 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c filter_host.c
633 table.o
: table.c
$(CONFIG_H
) $(MISC_H
) $(LF_H
) $(TABLE_H
)
634 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/table.c
636 lf.o
: lf.c
$(CONFIG_H
) $(MISC_H
) $(LF_H
)
637 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/lf.c
639 filter.o
: filter.c
$(CONFIG_H
) $(MISC_H
) $(FILTER_H
)
640 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/filter.c
641 tmp-filter
: filter.c
$(MISC_H
) misc.o
642 $(ECHO_CCLD
) $(LINK_FOR_BUILD
) -DMAIN
$(srcdir)/filter.c misc.o
644 ld-decode.o
: ld-decode.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(LD_DECODE_H
)
645 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/ld-decode.c
646 tmp-ld-decode
: ld-decode.c misc.o lf.o table.o filter_host.o
647 $(ECHO_CCLD
) $(LINK_FOR_BUILD
) -DMAIN
$(srcdir)/ld-decode.c misc.o lf.o table.o filter_host.o
649 ld-cache.o
: ld-cache.c
$(MISC_H
) $(LF_H
) $(TABLE_H
) $(LD_CACHE_H
)
650 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/ld-cache.c
651 tmp-ld-cache
: ld-cache.c misc.o lf.o table.o filter_host.o
652 $(ECHO_CCLD
) $(LINK_FOR_BUILD
) -DMAIN
$(srcdir)/ld-cache.c misc.o lf.o table.o filter_host.o
654 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
)
655 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/ld-insn.c
656 tmp-ld-insn
: ld-insn.c ld-cache.o misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
657 $(ECHO_CCLD
) $(LINK_FOR_BUILD
) -DMAIN
$(srcdir)/ld-insn.c ld-cache.o misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
659 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
)
660 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-model.c
662 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
)
663 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-itable.c
665 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
)
666 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-icache.c
668 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
)
669 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-semantics.c
671 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
)
672 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-idecode.c
674 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
)
675 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/gen-support.c
677 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
)
678 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/igen.c
680 misc.o
: misc.c
$(CONFIG_H
) $(MISC_H
)
681 $(ECHO_CC
) $(COMPILE_FOR_BUILD
) -c
$(srcdir)/misc.c
686 hw.c hw.h
: tmp-hw
; @true
687 tmp-hw
: Makefile
$(HW_SRC
) $(srcroot
)/move-if-change
688 $(ECHO_GEN
)# The first for loop is to remove duplicates.
690 for i in
$(HW_SRC
) ; do \
696 for hw in
$$f ; do echo
$$hw ; done \
697 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
698 -e
's/^/extern const device_descriptor /' \
699 -e
's/$$/_device_descriptor\[\];/' \
702 for i in
$(HW_SRC
) ; do \
708 for hw in
$$f ; do echo
$$hw ; done \
709 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
711 -e
's/$$/_device_descriptor,/' \
713 $(SILENCE
) $(SHELL
) $(srcroot
)/move-if-change tmp-hw.h hw.h
714 $(SILENCE
) $(SHELL
) $(srcroot
)/move-if-change tmp-hw.c hw.c
717 hw_cpu.o
: hw_cpu.c
$(DEVICE_TABLE_H
) $(HW_CPU_H
) $(INTERRUPTS_H
) $(CPU_H
)
718 hw_com.o
: hw_com.c
$(DEVICE_TABLE_H
)
719 hw_core.o
: hw_core.c
$(DEVICE_TABLE_H
) $(COREFILE_H
)
720 hw_disk.o
: hw_disk.c
$(DEVICE_TABLE_H
) $(PK_H
)
721 hw_eeprom.o
: hw_eeprom.c
$(DEVICE_TABLE_H
)
722 hw_glue.o
: hw_glue.c
$(DEVICE_TABLE_H
)
723 hw_htab.o
: hw_htab.c
$(DEVICE_TABLE_H
) $(BFD_H
)
724 hw_ide.o
: hw_ide.c
$(DEVICE_TABLE_H
)
725 hw_init.o
: hw_init.c
$(DEVICE_TABLE_H
) $(BFD_H
) $(PSIM_H
)
726 hw_iobus.o
: hw_iobus.c
$(DEVICE_TABLE_H
)
727 hw_memory.o
: hw_memory.c
$(DEVICE_TABLE_H
)
728 hw_nvram.o
: hw_nvram.c
$(DEVICE_TABLE_H
)
729 hw_opic.o
: hw_opic.c
$(DEVICE_TABLE_H
)
730 hw_pal.o
: hw_pal.c
$(DEVICE_TABLE_H
) $(CPU_H
)
731 hw_phb.o
: hw_phb.c
$(DEVICE_TABLE_H
) $(HW_PHB_H
) $(COREFILE_H
)
732 hw_register.o
: hw_register.c
$(DEVICE_TABLE_H
) $(PSIM_H
)
733 hw_sem.o
: hw_sem.c
$(DEVICE_TABLE_H
) $(PSIM_H
)
734 hw_shm.o
: hw_shm.c
$(DEVICE_TABLE_H
) $(PSIM_H
)
735 hw_trace.o
: hw_trace.c
$(DEVICE_TABLE_H
)
736 hw_vm.o
: hw_vm.c
$(DEVICE_TABLE_H
) $(CPU_H
)
737 # ignore this line, it stops make from getting confused
742 $(srcdir)/pk.h
: $(MAINT
) tmp-pk
744 tmp-pk
: $(srcdir)/Makefile.in
$(PACKAGE_SRC
) $(srcroot
)/move-if-change
745 $(ECHO_GEN
)# The first for loop is to remove duplicates.
746 $(SILENCE
) echo
"/* Generated file by Makefile.in; do not edit. */" > tmp-pk.h
; \
748 for i in
$(PACKAGE_SRC
) ; do \
754 for pk in
$$f ; do echo
$$pk ; done \
755 | sed
-e
's/^.*pk_\(.*\)\.c/\1/' \
756 -e
's/^/extern package_create_instance_callback pk_/' \
757 -e
's/$$/_create_instance;/' \
759 $(SILENCE
) $(SHELL
) $(srcroot
)/move-if-change tmp-pk.h
$(srcdir)/pk.h
762 pk_disklabel.o
: pk_disklabel.c
$(DEVICE_TABLE_H
) $(PK_H
)
763 # ignore this line, it stops make from getting confused
770 etags
$(srcdir)/*.h
$(srcdir)/*.c
$(BUILT_SRC
)
773 rm -f tmp-
* *.
[oasi
] core igen
$(BUILT_SRC_WO_CONFIG
)
775 distclean realclean: clean
776 rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
778 maintainer-clean
: distclean
779 rm -f
*~
*.log core
*.core
781 Makefile
: Makefile.in config.status
782 CONFIG_FILES
=Makefile CONFIG_HEADERS
= $(SHELL
) .
/config.status
784 config.h
: stamp-h
; @true
785 stamp-h
: config.in config.status
786 CONFIG_FILES
= CONFIG_HEADERS
=config.h
:config.in
$(SHELL
) .
/config.status
788 config.status
: configure
789 $(SHELL
) .
/config.status
--recheck