Makefile [SRC] [CPP] [JOB] [SCAN]
TOOLS / INITBCTOOLS/BALANCE_FLUX [=]
TOOLS/DOM2ASCII [=]
TOOLS/INCONVERT [=]
TOOLS/OUTCONVERT [=]
TOOLS/PREDATAS [=]
TOOLS/QUAD_TRACING [=]
TOOLS/RAY [=]
TOOLS/SOLINIT [=]
TOOLS/SOLINIT_AVBP [=]
TOOLS/SOLINIT_INTERP1D [=]
SOURCES [=]
TOOLS/TABFSK [=]
TOOLS/TRACK_CELLS [=]
TOOLS/VISU [=]



   1 | include $(DOMHOME)/HOSTS/$(DOM_HOSTTYPE)/makefile.h
   2 | 
   3 | #
   4 | #  Version and outpath
   5 | #  -------------------
   6 | #
   7 | 
   8 | HOST = $(DOMHOME)/HOSTS/$(DOM_HOSTTYPE)
   9 | OUT = $(HOST)
  10 | 
  11 | #
  12 | #  Sources directories
  13 | #  -------------------
  14 | #
  15 | 
  16 | CONST  = $(DOMHOME)/SOURCES/MAIN
  17 | TOOLD  = $(DOMHOME)/TOOLS/INITBC
  18 | INCFILE = $(HOST)/dom.inc
  19 | PERSO   = $(DOMHOME)/TOOLS/INCLUDE/clperso.inc
  20 | 
  21 | #
  22 | # Quiet mode
  23 | #
  24 | .SILENT :
  25 | 
  26 | #
  27 | #  Suffixes
  28 | #  --------
  29 | 
  30 | .SUFFIXES:.o .F .HH .h
  31 | 
  32 | #
  33 | #  Intermediate files to keep
  34 | #  --------------------------
  35 | 
  36 | .PRECIOUS : %.o %_m4.f %.mod %.h
  37 | 
  38 | #
  39 | #  Executable files
  40 | #  ----------------
  41 | #
  42 | 
  43 | INITBCEXEC = $(OUT)/initbc_$(DOM_VERSION).e_$(DOM_HOSTTYPE)
  44 | 
  45 | #
  46 | #  List of object files for INITBC
  47 | #  --------------------------------
  48 | #
  49 | 
  50 | INITBC_OBJ = \
  51 |  $(TOOLD)/SRC/initbc.o
  52 |  
  53 | INITBC_CNST_OBJ = \
  54 |  $(CONST)/dom_constants.h
  55 | 
  56 | #
  57 | #  INITBC compilation
  58 | #  -------------------
  59 | 
  60 | all :  $(INITBCEXEC)
  61 | 	@echo
  62 | 	@echo "****************************************"
  63 | 	@echo
  64 | 	@echo " Executable created :"
  65 | 	@echo $(INITBCEXEC)
  66 | 	@echo
  67 | 	@echo "****************************************"
  68 | 	$(RM) *.o *_m4.f *.mod dom.inc *.h
  69 | 
  70 | 
  71 | 
  72 | $(INITBCEXEC) : $(INITBC_CNST_OBJ) $(INITBC_OBJ)
  73 | 	@echo
  74 | 	@echo "****************************************"
  75 | 	@echo
  76 | 	@echo "Linking Object Files ...."
  77 | 	@echo
  78 | 	$(FFS) $(LDFLAGS) -o $(INITBCEXEC) $(INITBC_OBJ)
  79 | 	@echo "****************************************"
  80 | 	@echo
  81 | 
  82 | #
  83 | # dependecies by include
  84 | #
  85 | 
  86 | $(INITBC_OBJ) : $(INITBC_CNST_OBJ)
  87 | 
  88 | #
  89 | #  Cleaning INITBC
  90 | #
  91 | 
  92 | clean:
  93 | 	@echo
  94 | 	@echo "****************************************"
  95 | 	@echo
  96 | 	@echo "Removing INITBC object files"
  97 | 	@echo
  98 | 	$(RM)  $(TOOLD)/SRC/*_m4.f
  99 | 	$(RM)  $(TOOLD)/SRC/*.o
 100 | 	$(RM)  $(CONST)/dom_constants.h
 101 | 	$(RM) dom.inc *.h *_m4.f *.c *.o
 102 | 	@echo "****************************************"
 103 | 
 104 | #
 105 | #  Suffix Rules:
 106 | #
 107 | 
 108 | dom.inc : $(INCFILE)
 109 | 	@echo
 110 | 	@echo "****************************************"
 111 | 	@echo "Linking dom.inc"
 112 | 	$(RM)  dom.inc
 113 | 	$(LN)  $(INCFILE) .
 114 | 	@echo "****************************************"
 115 | 	@echo
 116 | 
 117 | clperso.inc : $(PERSO)
 118 | 	@echo	
 119 | 	@echo "****************************************"
 120 | 	@echo "Linking clperso.inc"
 121 | 	@$(RM)  clperso.inc
 122 | 	@$(LN)  $(PERSO) .
 123 | 	@echo "****************************************"
 124 | 	@echo
 125 | 
 126 | %_m4.f : %.F  dom.inc clperso.inc
 127 | 	@echo
 128 | 	@echo "****************************************"
 129 | 	@echo
 130 | 	@echo " Preprocessing " $*.F
 131 | 	$(M4DIR) $*.F > $*_m4.f
 132 | 	sed '1d' $*_m4.f > tmp_m4.f
 133 | 	$(MV) tmp_m4.f $*_m4.f
 134 | 
 135 | %.o  : %_m4.f 
 136 | 	@echo " Compiling     " $*_m4.f
 137 | 	$(FFS) -c -I$(CONST) $(FFSLAGS) -o $@ $*_m4.f
 138 | 	@echo
 139 | 	@echo "****************************************"
 140 | 
 141 | 
 142 | %.h : %.HH dom.inc
 143 | 	@echo
 144 | 	@echo "****************************************"
 145 | 	@echo
 146 | 	@echo " Preprocessing " $*.HH
 147 | 	$(M4DIR) $*.HH > $*.h
 148 | 	@echo
 149 | 	@echo "****************************************"
 150 | 
 151 | # Canceling  implicit rule %.F => %.o
 152 | %.o : %.F
 153 |