/[TIS-4000 Rel T60]/Tornado/Inf7/Makefile
ViewVC logotype

Diff of /Tornado/Inf7/Makefile

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

revision 1.1 by tis4000, Mon Aug 23 18:43:18 1999 UTC revision 1.2 by tis4000, Fri Dec 10 15:04:44 1999 UTC
# Line 1  Line 1 
1  #$Id$  # Define the local target base directory
2    CUR = Inf7
3    
4  #  # Define the release root directory
5  # this Makefile is basically a stub to ensure the auto-regeneration  TOP = ..\..\..
6  # of the target-specific makefiles and their subsequent execution; it  
7  # checks the dependencies of the component Makefile.* files just in  # Define the Tornado install directory and host type
8  # case something changes ...  WIND_BASE = c:/Tornado
9  #  WIND_HOST_TYPE = x86-win32
10    
11  include Makefile.config  # define the base location of the standard makefile
12    MAKE_TOP = $(TOP)\Tornado\stdMakefiles
13  #  
14  # tl is a small 'C' program to get the tail of the current  # TORNADO Makefile strategy-
15  # directory and stuff it into CUR  #   perform make with the -C <dir> for each valid target
16  #  #       Each target subdir will select correct Make include environment
17    #       target names hardcoded for now
 CUR:sh = ../makeutils/tl `eval pwd`  
   
 #  
 # this is a 'null' target to force the execution of our Makefiles  
 #  
18    
19  default:: M30 X486  default:: M30 X486
20    
# Line 27  M30 : Line 23  M30 :
23  X486 :  X486 :
24          mkdir X486          mkdir X486
25    
26  default::  default::
27          @ for sd in * ; do \          make -C ./M30 -f $(MAKE_TOP)/Makefile user_target DST=M30 CUR=$(CUR) CPU=MC68060
28            if test -d $$sd ; then \          make -C ./X486 -f $(MAKE_TOP)/Makefile user_target DST=X486 CUR=$(CUR) CPU=I80486
29              ( cd $$sd ; \  
               echo "" ; \  
               echo "checking $(CUR)/$$sd Makefile ..." ; \  
               if   test $$sd = M00 ; then set 68000 soft-float msol 68k 68K MC68000; \  
               elif test $$sd = M30 ; then set 68030 68881 mv147 68k 68K MC68030; \  
               elif test $$sd = X486 ; then set 486 "" pc386 386 386 I80486; \  
               else \  
                 if test $$sd != CVS ; then echo "$$sd is not a target directory" ; fi ; \  
                 continue ; \  
               fi ; \  
               make -f ../../Makefile.defaults CPU=$$1 FLT=$$2 BSP=$$3 DST=$$sd CUR=$(CUR) TARG=$$4 GCC_BASE=$$5 CPU_FAM=$$6 Makefile.$$sd ; \  
               echo "building $(CUR)/$$sd targets ..." ; \  
               make -f Makefile.$$sd \  
             ) ; \  
           fi ; \  
         done  
   
 #  
 # utility targets  
 #  
   
 clean:  
         @ for sd in * ; do \  
           if test -d $$sd ; then \  
             if test $$sd = M00 -o $$sd = M30 -o $$sd = X486; then \  
               echo "removing "`eval pwd`"/$$sd targets ..." ; $(RM) $$sd/* ; \  
             else \  
               if test $$sd != CVS ; then echo "$$sd is not a target directory" ; fi ; \  
               continue ; \  
             fi ; \  
           fi ; \  
         done  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.30