1 |
# |
# |
2 |
# $Id: Makefile.skel,v 1.47 2005/03/13 09:36:08 debug Exp $ |
# $Id: Makefile.skel,v 1.92 2006/09/02 05:55:19 debug Exp $ |
3 |
# |
# |
4 |
# Makefile for GXemul src |
# Makefile for GXemul src |
5 |
# |
# |
6 |
|
|
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 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 \ |
float_emul.o machine.o main.o misc.o memory.o device.o net.o \ |
11 |
cpu_mips.o cpu_mips_coproc.o memory_fast_v2h.o bintrans.o \ |
settings.o symbol.o symbol_demangle.o timer.o useremul.o x11.o |
|
cpu_alpha.o cpu_hppa.o cpu_ppc.o cpu_sparc.o cpu_urisc.o \ |
|
|
arcbios.o dec_prom.o ps2_bios.o of.o |
|
12 |
|
|
13 |
|
all: do_include |
14 |
|
$(MAKE) do_src do_cpus do_debugger do_devices do_machines \ |
15 |
|
do_net do_promemul |
16 |
|
|
17 |
all: $(OBJS) |
do_include: |
18 |
|
cd include; $(MAKE); cd .. |
19 |
|
|
20 |
$(OBJS): Makefile |
do_cpus: |
21 |
|
cd cpus; $(MAKE); cd .. |
22 |
|
|
23 |
|
do_debugger: |
24 |
|
cd debugger; $(MAKE); cd .. |
25 |
|
|
26 |
|
do_devices: |
27 |
|
cd devices; $(MAKE); cd .. |
28 |
|
|
29 |
|
do_machines: |
30 |
|
cd machines; $(MAKE); cd .. |
31 |
|
|
32 |
bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c |
do_net: |
33 |
|
cd net; $(MAKE); cd .. |
34 |
|
|
35 |
cpu_mips.o: cpu_mips.c memory_mips_v2p.c cpu_mips16.c memory_mips.c |
do_promemul: |
36 |
|
cd promemul; $(MAKE); cd .. |
37 |
|
|
38 |
|
do_src: $(OBJS) |
39 |
|
|
40 |
|
$(OBJS): Makefile |
41 |
|
|
42 |
clean: |
clean: |
43 |
rm -f $(OBJS) *core |
rm -f $(OBJS) *core tmp_*.c |
44 |
|
cd include; $(MAKE) clean; cd .. |
45 |
|
cd cpus; $(MAKE) clean; cd .. |
46 |
|
cd debugger; $(MAKE) clean; cd .. |
47 |
|
cd devices; $(MAKE) clean; cd .. |
48 |
|
cd machines; $(MAKE) clean; cd .. |
49 |
|
cd net; $(MAKE) clean; cd .. |
50 |
|
cd promemul; $(MAKE) clean; cd .. |
51 |
|
|
52 |
clean_all: clean |
clean_all: clean |
53 |
|
cd include; $(MAKE) clean_all; cd .. |
54 |
|
cd cpus; $(MAKE) clean_all; cd .. |
55 |
|
cd debugger; $(MAKE) clean_all; cd .. |
56 |
|
cd devices; $(MAKE) clean_all; cd .. |
57 |
|
cd machines; $(MAKE) clean_all; cd .. |
58 |
|
cd net; $(MAKE) clean_all; cd .. |
59 |
|
cd promemul; $(MAKE) clean_all; cd .. |
60 |
rm -f Makefile |
rm -f Makefile |
61 |
|
|