2 # This file is part of the program psim.
4 # Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
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@
70 SIM_CFLAGS
= @sim_cflags@
71 INLINE_CFLAGS
= @sim_inline@
72 BSWAP_CFLAGS
= @sim_bswap@
73 ENDIAN_CFLAGS
= @sim_endian@
74 REGPARM_CFLAGS
= @sim_regparm@
75 STDCALL_CFLAGS
= @sim_stdcall@
76 HOSTENDIAN_CFLAGS
= @sim_hostendian@
77 SMP_CFLAGS
= @sim_smp@
78 XOR_ENDIAN_CFLAGS
= @sim_xor_endian@
79 BITSIZE_CFLAGS
= @sim_bitsize@
80 HOSTBITSIZE_CFLAGS
= @sim_hostbitsize@
81 ENV_CFLAGS
= @sim_env@
82 TIMEBASE_CFLAGS
= @sim_timebase@
83 ALIGNMENT_CFLAGS
= @sim_alignment@
84 FLOAT_CFLAGS
= @sim_float@
85 TRACE_CFLAGS
= @sim_trace@
86 ASSERT_CFLAGS
= @sim_assert@
87 RESERVED_CFLAGS
= @sim_reserved@
88 MONITOR_CFLAGS
= @sim_monitor@
89 MODEL_CFLAGS
= @sim_model@ @sim_default_model@ @sim_model_issue@
90 STDIO_CFLAGS
= @sim_stdio@
91 TERMIO_CFLAGS
= @sim_termio@
92 WARNING_CFLAGS
= @sim_warnings@
93 DEVZERO_CFLAGS
= @sim_devzero@
94 CONFIG_CFLAGS
= $(BSWAP_CFLAGS
) \
98 $(HOSTENDIAN_CFLAGS
) \
100 $(XOR_ENDIAN_CFLAGS
) \
102 $(HOSTBITSIZE_CFLAGS
) \
105 $(ALIGNMENT_CFLAGS
) \
116 STD_CFLAGS
= $(CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(WARNING_CFLAGS
) $(SIM_CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(INCLUDES
)
117 NOWARN_CFLAGS
= $(CFLAGS
) $(INLINE_CFLAGS
) $(CONFIG_CFLAGS
) $(SIM_CFLAGS
) $(HDEFINES
) $(TDEFINES
) $(INCLUDES
)
118 BUILD_CFLAGS
= -g
-O
$(INCLUDES
) $(WARNING_CFLAGS
)
122 CONFIG_FILE
= @sim_config@
123 IGEN_OPCODE_RULES
= @sim_opcode@
124 IGEN_DECODE_MECHANISM
= @sim_decode_mechanism@
125 IGEN_DUPLICATE
= @sim_dup@
126 IGEN_JUMP
= @sim_jump@
127 IGEN_FILTER
= @sim_filter@
128 IGEN_ICACHE
= @sim_icache@
129 IGEN_SMP
= @sim_igen_smp@
130 IGEN_LINE_NR
= @sim_line_nr@
131 DGEN_FLAGS
= @sim_switch@
133 HDEFINES
= @HDEFINES@
136 $(IGEN_DECODE_MECHANISM
) \
147 LIB_INCLUDES
= -I
$(srcdir)/..
/..
/include
148 BFD_INCLUDES
= -I..
/..
/bfd
-I
$(srcdir)/..
/..
/bfd
149 GDB_INCLUDES
= -I..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
-I
$(srcdir)/..
/..
/gdb
/config
-I
$(srcdir)/..
/..
/mmalloc
150 INCLUDES
= -I.
-I
$(srcdir) $(LIB_INCLUDES
) $(BFD_INCLUDES
) $(GDB_INCLUDES
)
152 LIBIBERTY_LIB
= ..
/..
/libiberty
/libiberty.a
153 BFD_LIB
= ..
/..
/bfd
/libbfd.a
155 INTLLIBS
= @INTLLIBS@
156 INTLDEPS
= @INTLDEPS@
160 all: run
$(TARGETLIB
) $(GDB_OBJ
)
163 $(CC
) -c
$(STD_CFLAGS
) $<
173 debug.h filter_filename.h \
184 idecode_expression.h \
227 BUILT_SRC_WO_CONFIG
= \
229 support.h support.c \
230 idecode.h idecode.c \
231 semantics.h semantics.c \
235 support.h support.c \
242 $(BUILT_SRC_WO_CONFIG
) \
278 # NOTE: semantics, idecode and psim put last so smaller files are compiled
316 GDB_OBJ
= sim_calls.o @sim_callback@
318 ICACHE_CFLAGS
= @sim_fpu_cflags@
319 SEMANTICS_CFLAGS
= @sim_fpu_cflags@
321 HW_SRC
= @sim_hw_src@
322 HW_OBJ
= @sim_hw_obj@
324 PACKAGE_SRC
= @sim_pk_src@
325 PACKAGE_OBJ
= @sim_pk_obj@
328 psim
: $(TARGETLIB
) main.o
$(LIBIBERTY_LIB
) $(BFD_LIB
) $(LIBS
) $(INTLDEPS
)
329 $(CC
) $(CFLAGS
) $(SIM_CFLAGS
) $(LDFLAGS
) -o psim
$(EXEEXT
) main.o
$(TARGETLIB
) $(BFD_LIB
) $(INTLLIBS
) $(LIBIBERTY_LIB
) $(LIBS
)
333 ln psim
$(EXEEXT
) run
$(EXEEXT
)
335 $(TARGETLIB
): tmp-igen tmp-dgen tmp-hw tmp-pk tmp-defines
$(LIB_OBJ
) $(GDB_OBJ
)
337 $(AR
) $(AR_FLAGS
) $(TARGETLIB
) $(LIB_OBJ
) $(GDB_OBJ
)
338 $(RANLIB
) $(TARGETLIB
)
340 psim.o
: psim.c psim.h tree.h
$(CPU_H
) $(IDECODE_H
)
342 bits.o
: bits.c
$(BASICS_H
)
344 debug.o
: debug.c
$(BASICS_H
)
345 filter_filename.o
: filter_filename.c filter_filename.h config.h ppc-config.h
347 sim-endian.o
: sim-endian.c sim-endian-n.h
$(BASICS_H
)
349 os_emul.o
: os_emul.c emul_netbsd.h emul_unix.h emul_chirp.h emul_bugapi.h
$(EMUL_GENERIC_H
)
350 emul_generic.o
: emul_generic.c
$(EMUL_GENERIC_H
)
352 emul_bugapi.o
: emul_bugapi.c emul_bugapi.h
$(EMUL_GENERIC_H
)
353 emul_chirp.o
: emul_chirp.c emul_chirp.h
$(EMUL_GENERIC_H
)
354 emul_netbsd.o
: emul_netbsd.c emul_netbsd.h
$(EMUL_GENERIC_H
)
355 emul_unix.o
: emul_unix.c emul_unix.h
$(EMUL_GENERIC_H
)
357 registers.o
: registers.c
$(REGISTERS_H
) $(BASICS_H
)
359 cpu.o
: cpu.c
$(CPU_H
) $(IDECODE_H
)
361 interrupts.o
: interrupts.c
$(CPU_H
) $(IDECODE_H
) os_emul.h
363 # Given that inlines are turned on now, rebuild idecode whenever
365 idecode.o
: idecode.c
$(CPU_H
) $(IDECODE_H
) semantics.h
$(LIB_INLINE_SRC
) $(BUILT_SRC
)
366 $(CC
) -c
$(NOWARN_CFLAGS
) $<
368 # double.o: double.c dp-bit.c
370 vm.o
: vm.c vm.h vm_n.h
$(CPU_H
)
372 corefile.o
: corefile.c corefile.h corefile-n.h
$(BASICS_H
) $(DEVICE_TABLE_H
)
374 model.o
: model.c
$(CPU_H
)
376 events.o
: events.c events.h
$(BASICS_H
)
378 sim_calls.o
: sim_calls.c
$(PSIM_H
) itable.h ..
/..
/gdb
/tm.h options.h
380 spreg.o
: spreg.c spreg.h spreg.c
$(BASICS_H
)
382 main.o
: main.c
$(PSIM_H
) itable.h options.h
384 device.o
: device.c
$(DEVICE_TABLE_H
) cap.h
386 tree.o
: tree.c tree.h device.h
$(DEVICE_TABLE_H
)
388 device_table.o
: device_table.c
$(DEVICE_TABLE_H
) events.h hw.c
390 cap.o
: cap.c cap.h
$(BASICS_H
)
392 semantics.o
: semantics.c semantics.h
$(CPU_H
) $(IDECODE_H
)
393 $(CC
) -c
$(SEMANTICS_CFLAGS
) $(NOWARN_CFLAGS
) $<
395 icache.o
: icache.c icache.h
$(IDECODE_H
) $(CPU_H
)
396 $(CC
) -c
$(ICACHE_CFLAGS
) $(NOWARN_CFLAGS
) $<
398 support.o
: support.c support.h
$(IDECODE_H
) $(CPU_H
)
400 itable.o
: itable.c itable.h
402 mon.o
: mon.c
$(CPU_H
)
404 # GDB after 4.16 expects the default_callback structure to be setup.
405 # As a kludge, build the common stuff here for now.
406 gentmap
: ..
/common
/gentmap.c Makefile targ-vals.def
407 $(CC_FOR_BUILD
) $(BUILD_FLAGS
) -I.
-I..
/common
-I
$(srcdir)/..
/common
-o gentmap
$< $(BUILD_LIBS
)
409 targ-vals.def
: $(srcdir)/..
/common
/nltvals.def
410 rm -f targ-vals.def tmp-def
411 cat
$(srcdir)/..
/common
/nltvals.def
> tmp-vals.def
412 $(srcdir)/..
/..
/move-if-change tmp-vals.def targ-vals.def
414 targ-vals.h
: Makefile gentmap
$(srcdir)/..
/..
/move-if-change
416 .
/gentmap
-h
> tmp-vals.h
417 $(srcdir)/..
/..
/move-if-change tmp-vals.h targ-vals.h
419 targ-map.c
: Makefile gentmap
$(srcdir)/..
/..
/move-if-change
421 .
/gentmap
-c
> tmp-map.c
422 $(srcdir)/..
/..
/move-if-change tmp-map.c targ-map.c
424 callback.o
: ..
/common
/callback.c targ-vals.h config.h
425 $(CC
) -c
$(STD_CFLAGS
) -DHAVE_CONFIG_H
$<
427 targ-map.o
: targ-map.c targ-vals.h
429 sim-fpu.o
: $(srcdir)/..
/common
/sim-fpu.c config.h tconfig.h
430 $(CC
) -c
$(STD_CFLAGS
) -DHAVE_CONFIG_H
$(srcdir)/..
/common
/sim-fpu.c
436 # Rebuild options whenever something changes so the date/time is up to date.
437 options.o
: options.c
$(BASICS_H
) $(CPU_H
) $(IDECODE_H
) $(INLINE
) $(LIB_SRC
) $(BUILT_SRC
) config.status Makefile defines.h
438 $(CC
) -c
$(STD_CFLAGS
) '-DOPCODE_RULES="@sim_opcode@"' '-DIGEN_FLAGS="$(IGEN_FLAGS)"' '-DDGEN_FLAGS="$(DGEN_FLAGS)"' $<
440 tmp-defines
: config.h Makefile
441 sed
-n
-e
'/^#define HAVE_/s/ 1$$/",/' -e
'/^#define HAVE_/s//"HAVE_/p' < config.h
> tmp-defines.h
442 $(srcdir)/..
/..
/move-if-change tmp-defines.h defines.h
446 # Rules to create the built c source code files
449 ppc-config.h
: $(CONFIG_FILE
)
450 cp
$(srcdir)/$(CONFIG_FILE
) ppc-config.h
453 tmp-dgen
: dgen ppc-spr-table
$(srcdir)/..
/..
/move-if-change
454 .
/dgen
$(DGEN_FLAGS
) \
455 -r
$(srcdir)/ppc-spr-table \
456 -n spreg.h
-hp tmp-spreg.h \
457 -n spreg.c
-p tmp-spreg.c
458 $(srcdir)/..
/..
/move-if-change tmp-spreg.h spreg.h
459 $(srcdir)/..
/..
/move-if-change tmp-spreg.c spreg.c
463 tmp-igen
: igen ppc-instructions
$(IGEN_OPCODE_RULES
) ppc-cache-rules
$(srcdir)/..
/..
/move-if-change tmp-ld-decode tmp-ld-cache tmp-ld-insn tmp-filter
464 .
/igen
$(IGEN_FLAGS
) \
465 -o
$(srcdir)/$(IGEN_OPCODE_RULES
) \
466 -k
$(srcdir)/ppc-cache-rules \
467 -I
$(srcdir) -i
$(srcdir)/ppc-instructions \
468 -n icache.h
-hc tmp-icache.h \
469 -n icache.c
-c tmp-icache.c \
470 -n semantics.h
-hs tmp-semantics.h \
471 -n semantics.c
-s tmp-semantics.c \
472 -n idecode.h
-hd tmp-idecode.h \
473 -n idecode.c
-d tmp-idecode.c \
474 -n itable.h
-ht tmp-itable.h \
475 -n itable.c
-t tmp-itable.c \
476 -n model.h
-hm tmp-model.h \
477 -n model.c
-m tmp-model.c \
478 -n support.h
-hf tmp-support.h \
479 -n support.c
-f tmp-support.c
480 $(srcdir)/..
/..
/move-if-change tmp-icache.h icache.h
481 $(srcdir)/..
/..
/move-if-change tmp-icache.c icache.c
482 $(srcdir)/..
/..
/move-if-change tmp-idecode.h idecode.h
483 $(srcdir)/..
/..
/move-if-change tmp-idecode.c idecode.c
484 $(srcdir)/..
/..
/move-if-change tmp-semantics.h semantics.h
485 $(srcdir)/..
/..
/move-if-change tmp-semantics.c semantics.c
486 $(srcdir)/..
/..
/move-if-change tmp-itable.h itable.h
487 $(srcdir)/..
/..
/move-if-change tmp-itable.c itable.c
488 $(srcdir)/..
/..
/move-if-change tmp-model.h model.h
489 $(srcdir)/..
/..
/move-if-change tmp-model.c model.c
490 $(srcdir)/..
/..
/move-if-change tmp-support.h support.h
491 $(srcdir)/..
/..
/move-if-change tmp-support.c support.c
494 # NOTE: Some versions of make don't handle files created as side-effects
495 # uncomment the below if that is the case.
497 $(TARGETLIB
): tmp-igen tmp-dgen
498 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
499 spreg.h spreg.c
: tmp-dgen
501 dgen
: dgen.o table.o lf.o misc.o filter_host.o
502 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -o dgen dgen.o table.o lf.o misc.o filter_host.o
$(BUILD_LIBS
)
504 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
505 $(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
)
507 filter_host.c
: filter_filename.c
508 cat
$(srcdir)/filter_filename.c
> filter_host.c
510 filter_host.o
: filter_host.c filter_filename.h config.h ppc-config.h
511 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c filter_host.c
513 table.o
: table.c misc.h filter_filename.h lf.h table.h
514 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/table.c
516 lf.o
: lf.c misc.h filter_filename.h lf.h
517 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/lf.c
519 filter.o
: filter.c misc.h lf.h table.h
filter.h
520 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/filter.c
521 tmp-filter
: filter.c misc.h misc.o
522 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-filter
-DMAIN
$(srcdir)/filter.c misc.o
$(BUILD_LIBS
)
524 ld-decode.o
: ld-decode.c misc.h lf.h table.h ld-decode.h
525 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-decode.c
526 tmp-ld-decode
: ld-decode.o misc.o lf.o table.o filter_host.o
527 $(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
)
529 ld-cache.o
: ld-cache.c misc.h lf.h table.h ld-cache.h
530 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-cache.c
531 tmp-ld-cache
: ld-cache.o misc.o lf.o table.o filter_host.o
532 $(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
)
534 ld-insn.o
: ld-insn.c misc.h lf.h table.h ld-insn.h ld-decode.h igen.h
535 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/ld-insn.c
536 tmp-ld-insn
: ld-insn.o misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
537 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) $(BUILD_LDFLAGS
) -o tmp-ld-insn
-DMAIN
$(srcdir)/ld-insn.c misc.o lf.o table.o ld-decode.o filter_host.o
filter.o
$(BUILD_LIBS
)
539 gen-model.o
: gen-model.c misc.h lf.h table.h gen-model.h ld-decode.h igen.h ld-insn.h
540 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-model.c
542 gen-itable.o
: gen-itable.c misc.h lf.h table.h gen-itable.h ld-decode.h igen.h ld-insn.h igen.h
543 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-itable.c
545 gen-icache.o
: gen-icache.c misc.h lf.h table.h gen-icache.h ld-decode.h igen.h ld-insn.h gen-semantics.h gen-idecode.h
546 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-icache.c
548 gen-semantics.o
: gen-semantics.c misc.h lf.h table.h gen-semantics.h ld-decode.h igen.h ld-insn.h
549 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-semantics.c
551 gen-idecode.o
: gen-idecode.c misc.h lf.h table.h gen-idecode.h gen-icache.h gen-semantics.h ld-decode.h igen.h ld-insn.h
552 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-idecode.c
554 gen-support.o
: gen-support.c misc.h lf.h table.h gen-support.h ld-decode.h igen.h ld-insn.h
555 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/gen-support.c
557 dgen.o
: dgen.c misc.h filter_filename.h lf.h table.h
558 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/dgen.c
560 igen.o
: igen.c misc.h filter_filename.h lf.h table.h ld-decode.h ld-cache.h ld-insn.h
filter.h gen-model.h gen-itable.h gen-icache.h gen-idecode.h gen-semantics.h gen-support.h igen.h
561 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/igen.c
563 misc.o
: misc.c misc.h filter_filename.h
564 $(CC_FOR_BUILD
) $(BUILD_CFLAGS
) -c
$(srcdir)/misc.c
569 tmp-hw
: Makefile
$(HW_SRC
) $(srcdir)/..
/..
/move-if-change
570 # The first for loop is to remove duplicates.
572 for i in
$(HW_SRC
) ; do \
578 for hw in
$$f ; do echo
$$hw ; done \
579 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
580 -e
's/^/extern const device_descriptor /' \
581 -e
's/$$/_device_descriptor\[\];/' \
584 for i in
$(HW_SRC
) ; do \
590 for hw in
$$f ; do echo
$$hw ; done \
591 | sed
-e
's/^.*\(hw_.*\)\.c/\1/' \
593 -e
's/$$/_device_descriptor,/' \
595 $(srcdir)/..
/..
/move-if-change tmp-hw.h hw.h
596 $(srcdir)/..
/..
/move-if-change tmp-hw.c hw.c
599 hw_cpu.o
: hw_cpu.c
$(DEVICE_TABLE_H
) $(CPU_H
)
600 hw_core.o
: hw_core.c
$(DEVICE_TABLE_H
)
601 hw_disk.o
: hw_disk.c
$(DEVICE_TABLE_H
) pk.h
602 hw_glue.o
: hw_glue.c
$(DEVICE_TABLE_H
)
603 hw_htab.o
: hw_htab.c
$(DEVICE_TABLE_H
)
604 hw_ide.o
: hw_ide.c
$(DEVICE_TABLE_H
)
605 hw_init.o
: hw_init.c
$(DEVICE_TABLE_H
)
606 hw_iobus.o
: hw_iobus.c
$(DEVICE_TABLE_H
)
607 hw_memory.o
: hw_memory.c
$(DEVICE_TABLE_H
)
608 hw_nvram.o
: hw_nvram.c
$(DEVICE_TABLE_H
)
609 hw_opic.o
: hw_opic.c
$(DEVICE_TABLE_H
)
610 hw_pal.o
: hw_pal.c
$(DEVICE_TABLE_H
) $(CPU_H
)
611 hw_phb.o
: hw_phb.c
$(DEVICE_TABLE_H
) hw_phb.h
612 hw_register.o
: hw_register.c
$(DEVICE_TABLE_H
)
613 hw_trace.o
: hw_trace.c
$(DEVICE_TABLE_H
)
614 hw_vm.o
: hw_vm.c
$(DEVICE_TABLE_H
) $(CPU_H
)
615 # ignore this line, it stops make from getting confused
620 tmp-pk
: Makefile
$(PACKAGE_SRC
) $(srcdir)/..
/..
/move-if-change
621 # The first for loop is to remove duplicates.
623 for i in
$(PACKAGE_SRC
) ; do \
629 for pk in
$$f ; do echo
$$pk ; done \
630 | sed
-e
's/^.*pk_\(.*\)\.c/\1/' \
631 -e
's/^/extern package_create_instance_callback pk_/' \
632 -e
's/$$/_create_instance;/' \
634 $(srcdir)/..
/..
/move-if-change tmp-pk.h pk.h
637 pk_disklabel.o
: pk.h
$(DEVICE_TABLE_H
)
638 # ignore this line, it stops make from getting confused
645 etags
$(srcdir)/*.h
$(srcdir)/*.c
$(BUILT_SRC
)
648 rm -f tmp-
* *.
[oasi
] core psim
$(EXEEXT
) run
$(EXEEXT
) igen dgen
$(BUILT_SRC_WO_CONFIG
) gentmap
650 distclean realclean: clean
651 rm -f TAGS Makefile config.cache config.status config.h defines.h stamp-h config.log
653 maintainer-clean
: distclean
654 rm -f
*~
*.log ppc-config.h core
*.core
656 Makefile
: Makefile.in config.status
657 CONFIG_FILES
=Makefile CONFIG_HEADERS
= $(SHELL
) .
/config.status
659 config.h
: stamp-h
; @true
660 stamp-h
: config.in config.status
661 CONFIG_FILES
= CONFIG_HEADERS
=config.h
:config.in
$(SHELL
) .
/config.status
663 config.status
: configure
664 $(SHELL
) .
/config.status
--recheck
667 n
=`echo run | sed '$(program_transform_name)'`; \
668 $(INSTALL_PROGRAM
) run
$(EXEEXT
) $(bindir)/$$n$(EXEEXT
)
671 $(SHELL
) $(srcdir)/..
/..
/mkinstalldirs
$(bindir)