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