1 |
# |
2 |
# $Id: Makefile.skel,v 1.57 2005/06/27 10:43:16 debug Exp $ |
3 |
# |
4 |
# Makefile for GXemul src |
5 |
# |
6 |
|
7 |
CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) $(INCLUDE) |
8 |
|
9 |
OBJS=console.o cpu.o debugger.o diskimage.o emul.o emul_parse.o file.o \ |
10 |
machine.o main.o misc.o memory.o device.o net.o symbol.o useremul.o \ |
11 |
x11.o cpu_mips.o cpu_mips_coproc.o memory_fast_v2h.o bintrans.o \ |
12 |
cpu_arm.o cpu_ppc.o cpu_urisc.o \ |
13 |
cpu_x86.o arcbios.o dec_prom.o ps2_bios.o of.o pc_bios.o yamon.o |
14 |
|
15 |
|
16 |
all: do_src do_devices |
17 |
|
18 |
do_devices: |
19 |
cd devices; $(MAKE); cd .. |
20 |
|
21 |
do_src: $(OBJS) |
22 |
|
23 |
$(OBJS): Makefile |
24 |
|
25 |
bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c |
26 |
|
27 |
cpu_arm.o: cpu_arm.c cpu_arm_instr.c memory_rw.c |
28 |
|
29 |
cpu_mips.o: cpu_mips.c cpu_mips16.c memory_mips.c |
30 |
|
31 |
memory_mips.c: memory_rw.c memory_mips_v2p.c |
32 |
|
33 |
cpu_ppc.o: cpu_ppc.c memory_rw.c |
34 |
|
35 |
cpu_x86.o: cpu_x86.c memory_x86.c |
36 |
|
37 |
memory_x86.c: memory_rw.c |
38 |
|
39 |
clean: |
40 |
rm -f $(OBJS) *core |
41 |
cd devices; $(MAKE) clean; cd .. |
42 |
|
43 |
clean_all: clean |
44 |
cd devices; $(MAKE) clean_all; cd .. |
45 |
rm -f Makefile |
46 |
|