#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) FEATURES = $(shell grep configfeatures ../BuildOpts/`hostname`.config | cut -d "=" -f 2) FILEO = $(shell ls -q *.o) FILEAPP = $(shell ls -q *.app) PWD :=$(shell pwd) #Default Target ============================================================= default: install #Classes section =============================================================== %.o : %.C $(COMPILER) $(CXXFLAGS) -DTPC_PADMAPPING_PATH="\"$(PWD)\"" -c $< @echo " ==================================================" # Mapping ---------------------------------------------------------------------- Mapping.app : ../Logger/Logger.o Mapping.o MappingMain.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" DumpHwAdd4Padrow.app : ../Logger/Logger.o Mapping.o DumpHwAdd4Padrow.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" #Global section ================================================================ clean : rm -rf $(FILEO) $(FILEAPP) *~ DefaultLogfile.log @echo " ==================================================" all : DumpHwAdd4Padrow.app Mapping.app install: DumpHwAdd4Padrow.app mv DumpHwAdd4Padrow.app ../bin/