--- trunk/src/Makefile.skel 2007/10/08 16:18:11 6 +++ trunk/src/Makefile.skel 2007/10/08 16:21:34 36 @@ -1,46 +1,71 @@ # -# $Id: Makefile.skel,v 1.54 2005/06/02 00:08:41 debug Exp $ +# $Id: Makefile.skel,v 1.96 2007/03/16 14:13:59 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 misc.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_arm.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 +OBJS=console.o cpu.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_disk \ + do_machines do_native do_net do_promemul +do_include: + cd include; $(MAKE); cd .. -all: do_src do_devices +do_cpus: + cd cpus; $(MAKE); cd .. + +do_debugger: + cd debugger; $(MAKE); cd .. do_devices: cd devices; $(MAKE); cd .. -do_src: $(OBJS) - -$(OBJS): Makefile +do_disk: + cd disk; $(MAKE); cd .. -bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c +do_machines: + cd machines; $(MAKE); cd .. -cpu_arm.o: cpu_arm.c memory_rw.c +do_native: + cd native; $(MAKE); cd .. -cpu_mips.o: cpu_mips.c cpu_mips16.c memory_mips.c +do_net: + cd net; $(MAKE); cd .. -memory_mips.c: memory_rw.c memory_mips_v2p.c +do_promemul: + cd promemul; $(MAKE); cd .. -cpu_ppc.o: cpu_ppc.c memory_rw.c - -cpu_x86.o: cpu_x86.c memory_x86.c +do_src: $(OBJS) -memory_x86.c: memory_rw.c +$(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 disk; $(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 disk; $(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