/[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 44 by dpavlin, Mon Oct 8 16:22:56 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.103 2007/06/28 13:36:45 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=emul.o emul_parse.o float_emul.o interrupt.o main.o memory.o misc.o \
10          machine.o main.o misc.o memory.o device.o net.o symbol.o useremul.o \          net.o settings.o timer.o useremul.o
         x11.o cpu_mips.o cpu_mips_coproc.o memory_fast_v2h.o bintrans.o \  
         $(CPU_ARCHS) arcbios.o dec_prom.o ps2_bios.o of.o pc_bios.o yamon.o  
11    
12    all: do_include
13            $(MAKE) do_src do_console do_cpus do_debugger do_devices do_disk \
14                do_file do_machines do_net do_promemul do_symbol do_useremul
15    
16  all: do_src do_devices  do_include:
17            cd include; $(MAKE); cd ..
 do_devices:  
         cd devices; $(MAKE); cd ..  
   
 do_src: $(OBJS)  
   
 $(OBJS): Makefile  
   
   
 #  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  
18    
19    do_console:
20            cd console; $(MAKE); cd ..
21    
22  ###############################################################################  do_cpus:
23            cd cpus; $(MAKE); cd ..
24    
25  cpu_ia64.o: cpu_ia64.c cpu_ia64_instr.c cpu_dyntrans.c memory_rw.c \  do_debugger:
26          tmp_ia64_head.c tmp_ia64_tail.c          cd debugger; $(MAKE); cd ..
27    
28  tmp_ia64_head.c:  do_devices:
29          cd tools; make generate_head; cd ..          cd devices; $(MAKE); 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  
30    
31  tmp_sparc_tail.c:  do_disk:
32          cd tools; make generate_tail; cd ..          cd disk; $(MAKE); cd ..
         tools/generate_tail sparc SPARC > tmp_sparc_tail.c  
33    
34    do_file:
35            cd file; $(MAKE); cd ..
36    
37  ###############################################################################  do_machines:
38            cd machines; $(MAKE); cd ..
39    
40  cpu_x86.o: cpu_x86.c cpu_x86_instr.c cpu_dyntrans.c memory_rw.c \  do_net:
41          tmp_x86_head.c tmp_x86_tail.c          cd net; $(MAKE); cd ..
42    
43  memory_x86.c: memory_rw.c  do_promemul:
44            cd promemul; $(MAKE); cd ..
45    
46  tmp_x86_head.c:  do_symbol:
47          cd tools; make generate_head; cd ..          cd symbol; $(MAKE); cd ..
         tools/generate_head x86 x86 > tmp_x86_head.c  
48    
49  tmp_x86_tail.c:  do_useremul:
50          cd tools; make generate_tail; cd ..          cd useremul; $(MAKE); cd ..
         tools/generate_tail x86 x86 > tmp_x86_tail.c  
51    
52    do_src: $(OBJS)
53    
54  ###############################################################################  $(OBJS): Makefile
55    
56  clean:  clean:
57          rm -f $(OBJS) *core tmp_*.c          rm -f $(OBJS) *core tmp_*.c
58          cd tools; $(MAKE) clean; cd ..          cd include; $(MAKE) clean; cd ..
59            cd console; $(MAKE) clean; cd ..
60            cd cpus; $(MAKE) clean; cd ..
61            cd debugger; $(MAKE) clean; cd ..
62          cd devices; $(MAKE) clean; cd ..          cd devices; $(MAKE) clean; cd ..
63            cd disk; $(MAKE) clean; cd ..
64            cd file; $(MAKE) clean; cd ..
65            cd machines; $(MAKE) clean; cd ..
66            cd net; $(MAKE) clean; cd ..
67            cd promemul; $(MAKE) clean; cd ..
68            cd symbol; $(MAKE) clean; cd ..
69            cd useremul; $(MAKE) clean; cd ..
70    
71  clean_all: clean  clean_all: clean
72            cd include; $(MAKE) clean_all; cd ..
73            cd console; $(MAKE) clean_all; cd ..
74            cd cpus; $(MAKE) clean_all; cd ..
75            cd debugger; $(MAKE) clean_all; cd ..
76          cd devices; $(MAKE) clean_all; cd ..          cd devices; $(MAKE) clean_all; cd ..
77            cd disk; $(MAKE) clean_all; cd ..
78            cd file; $(MAKE) clean_all; cd ..
79            cd machines; $(MAKE) clean_all; cd ..
80            cd net; $(MAKE) clean_all; cd ..
81            cd promemul; $(MAKE) clean_all; cd ..
82            cd symbol; $(MAKE) clean_all; cd ..
83            cd useremul; $(MAKE) clean_all; cd ..
84          rm -f Makefile          rm -f Makefile
85    

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

  ViewVC Help
Powered by ViewVC 1.1.26