--- trunk/src/Makefile.skel 2007/10/08 16:17:48 2 +++ trunk/src/Makefile.skel 2007/10/08 16:21:17 34 @@ -1,29 +1,66 @@ # -# $Id: Makefile.skel,v 1.47 2005/03/13 09:36:08 debug Exp $ +# $Id: Makefile.skel,v 1.95 2007/02/03 10:02:30 debug Exp $ # # Makefile for GXemul src # CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) $(INCLUDE) -OBJS=console.o cpu.o debugger.o diskimage.o emul.o emul_parse.o file.o \ - machine.o main.o memory.o device.o net.o symbol.o useremul.o x11.o \ - cpu_mips.o cpu_mips_coproc.o memory_fast_v2h.o bintrans.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 +OBJS=console.o cpu.o diskimage.o emul.o emul_parse.o file.o float_emul.o \ + interrupt.o machine.o main.o misc.o memory.o device.o net.o \ + settings.o symbol.o symbol_demangle.o timer.o useremul.o x11.o +all: do_include + $(MAKE) do_src do_cpus do_debugger do_devices do_machines \ + do_native do_net do_promemul -all: $(OBJS) +do_include: + cd include; $(MAKE); cd .. -$(OBJS): Makefile +do_cpus: + cd cpus; $(MAKE); cd .. + +do_debugger: + cd debugger; $(MAKE); cd .. + +do_devices: + cd devices; $(MAKE); cd .. + +do_machines: + cd machines; $(MAKE); cd .. -bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c +do_native: + cd native; $(MAKE); cd .. -cpu_mips.o: cpu_mips.c memory_mips_v2p.c cpu_mips16.c memory_mips.c +do_net: + cd net; $(MAKE); cd .. + +do_promemul: + cd promemul; $(MAKE); cd .. + +do_src: $(OBJS) + +$(OBJS): Makefile clean: - rm -f $(OBJS) *core + rm -f $(OBJS) *core tmp_*.c + cd include; $(MAKE) clean; cd .. + cd cpus; $(MAKE) clean; cd .. + cd debugger; $(MAKE) clean; cd .. + cd devices; $(MAKE) clean; cd .. + cd machines; $(MAKE) clean; cd .. + cd native; $(MAKE) clean; cd .. + cd net; $(MAKE) clean; cd .. + cd promemul; $(MAKE) clean; cd .. clean_all: clean + cd include; $(MAKE) clean_all; cd .. + cd cpus; $(MAKE) clean_all; cd .. + cd debugger; $(MAKE) clean_all; cd .. + cd devices; $(MAKE) clean_all; cd .. + cd machines; $(MAKE) clean_all; cd .. + cd native; $(MAKE) clean_all; cd .. + cd net; $(MAKE) clean_all; cd .. + cd promemul; $(MAKE) clean_all; cd .. rm -f Makefile