#Options section =============================================================== SYSTEM = $(shell grep configsystem ../BuildOpts/`hostname`.config | cut -d "=" -f 2) COMPILER = $(shell grep configcompiler ../BuildOpts/`hostname`.config | cut -d "=" -f 2) CXXFLAGS = $(shell grep configcxxflags ../BuildOpts/`hostname`.config | cut -d "=" -f 2) ORACLEH = $(shell grep configoracleh ../BuildOpts/`hostname`.config | cut -d "=" -f 2) ORACLEL = $(shell grep configoraclel ../BuildOpts/`hostname`.config | cut -d "=" -f 2) FEATURES = $(shell grep configfeatures ../BuildOpts/`hostname`.config | cut -d "=" -f 2) FILEO = $(shell ls -q *.o) FILEAPP = $(shell ls -q *.app) #First Target =============================================================== default: objects #Classes section =============================================================== %.o : %.C $(COMPILER) $(CXXFLAGS) -c $< @echo " ==================================================" #Container Classes ---------------------------------------------- AltroContainer.app : AltroContainerMain.o AltroContainer.o ../CommandCoder/RCUControlEngine.o ../CommandCoder/RCUCommandCoder.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" FecContainer.app : FecContainerMain.o FecContainer.o AltroContainer.o ../CommandCoder/RCUControlEngine.o ../CommandCoder/RCUCommandCoder.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" RcuContainer.app : RcuContainerMain.o RcuContainer.o AltroContainer.o FecContainer.o ../CommandCoder/RCUControlEngine.o ../CommandCoder/RCUCommandCoder.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" #Global section ================================================================ clean: rm -rf $(FILEO) $(FILEAPP) *.so *~ @echo " ==================================================" all: AltroContainer.app FecContainer.app RcuContainer.app objects: AltroContainer.o FecContainer.o RcuContainer.o