/[gxemul]/trunk/src/Makefile.skel
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/Makefile.skel

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 14 by dpavlin, Mon Oct 8 16:18:51 2007 UTC
# Line 1  Line 1 
1  #  #
2  #  $Id: Makefile.skel,v 1.77 2005/08/16 05:37:09 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  #  #
# Line 8  CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE Line 8  CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE
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 misc.o memory.o device.o net.o symbol.o useremul.o \          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 \          x11.o
         $(CPU_ARCHS) arcbios.o dec_prom.o ps2_bios.o of.o pc_bios.o yamon.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    
   
 #  Old bintrans:  
   
 bintrans.o: bintrans.c bintrans_alpha.c bintrans_i386.c  
   
   
 ###############################################################################  
   
 cpu_alpha.o: cpu_alpha.c cpu_alpha_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_alpha_head.c tmp_alpha_tail.c  
   
 cpu_alpha_instr.c: cpu_alpha_instr_alu.c tmp_alpha_misc.c  
   
 tmp_alpha_misc.c: cpu_alpha_instr_loadstore.c  
         cd tools; make generate_alpha_misc; cd ..  
         tools/generate_alpha_misc > tmp_alpha_misc.c  
   
 tmp_alpha_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head alpha Alpha > tmp_alpha_head.c  
   
 tmp_alpha_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail alpha Alpha > tmp_alpha_tail.c  
   
   
 ###############################################################################  
   
 cpu_arm.o: cpu_arm.c cpu_arm_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_arm_head.c tmp_arm_tail.c  
   
 cpu_arm_instr.c: tmp_arm_include.c tmp_arm_include_self.c \  
         cpu_arm_instr_cmps.c  
   
 tmp_arm_include.c: cpu_arm_instr_loadstore.c  
         cd tools; make generate_arm_loadstore; cd ..  
         tools/generate_arm_loadstore > tmp_arm_include.c  
   
 tmp_arm_include_self.c:  
         cd tools; make generate_arm_self; cd ..  
         tools/generate_arm_self > tmp_arm_include_self.c  
   
 tmp_arm_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head arm ARM > tmp_arm_head.c  
   
 tmp_arm_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail arm ARM > tmp_arm_tail.c  
   
   
 ###############################################################################  
   
 cpu_ia64.o: cpu_ia64.c cpu_ia64_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_ia64_head.c tmp_ia64_tail.c  
   
 tmp_ia64_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head ia64 IA64 > tmp_ia64_head.c  
   
 tmp_ia64_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail ia64 IA64 > tmp_ia64_tail.c  
   
   
 ###############################################################################  
   
 cpu_m68k.o: cpu_m68k.c cpu_m68k_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_m68k_head.c tmp_m68k_tail.c  
   
 tmp_m68k_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head m68k M68K > tmp_m68k_head.c  
   
 tmp_m68k_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail m68k M68K > tmp_m68k_tail.c  
   
   
 ###############################################################################  
   
 cpu_mips.o: cpu_mips.c cpu_mips16.c cpu_dyntrans.c memory_mips.c  
   
 memory_mips.c: memory_rw.c memory_mips_v2p.c  
   
   
 ###############################################################################  
   
 cpu_ppc.o: cpu_ppc.c cpu_ppc_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_ppc_head.c tmp_ppc_tail.c  
   
 cpu_ppc_instr.c: tmp_ppc_loadstore.c  
   
 tmp_ppc_loadstore.c: cpu_ppc_instr_loadstore.c  
         cd tools; make generate_ppc_loadstore; cd ..  
         tools/generate_ppc_loadstore > tmp_ppc_loadstore.c  
   
 tmp_ppc_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head ppc PPC > tmp_ppc_head.c  
   
 tmp_ppc_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail ppc PPC > tmp_ppc_tail.c  
   
   
 ###############################################################################  
   
 cpu_sparc.o: cpu_sparc.c cpu_sparc_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_sparc_head.c tmp_sparc_tail.c  
   
 tmp_sparc_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head sparc SPARC > tmp_sparc_head.c  
   
 tmp_sparc_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail sparc SPARC > tmp_sparc_tail.c  
   
   
 ###############################################################################  
   
 cpu_x86.o: cpu_x86.c cpu_x86_instr.c cpu_dyntrans.c memory_rw.c \  
         tmp_x86_head.c tmp_x86_tail.c  
   
 memory_x86.c: memory_rw.c  
   
 tmp_x86_head.c:  
         cd tools; make generate_head; cd ..  
         tools/generate_head x86 x86 > tmp_x86_head.c  
   
 tmp_x86_tail.c:  
         cd tools; make generate_tail; cd ..  
         tools/generate_tail x86 x86 > tmp_x86_tail.c  
   
   
 ###############################################################################  
   
28  clean:  clean:
29          rm -f $(OBJS) *core tmp_*.c          rm -f $(OBJS) *core tmp_*.c
30          cd tools; $(MAKE) clean; cd ..          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    

Legend:
Removed from v.12  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26