## ## ## Function: - grand-daddy NTMIX make ## # export TARGET:=PVM.RS6K #export TARGET:=MPI.VPP # # Set Default values # ifeq ($(NTHOME),) export NTHOME := $(shell echo `pwd`) endif ifeq ($(NTARCH),) export NTARCH := MPI.SGI64 endif ## ## global configuration ## include Config/config.$(NTARCH) SRCDIR = $(NTHOME)/Shared SUBDIR = $(NTHOME)/Obj-$(NTARCH) #MAKE :=/usr/local/bin/make MAKE := $(MAKE) NTARCH=$(NTARCH) NTHOME=$(NTHOME) easy: all all: $(SUBDIR)/auto.depend depend @(cd $(SUBDIR); $(MAKE) all) @echo "Compilation of NTMIX3D completed" obj: $(SUBDIR)/auto.depend @(cd $(SUBDIR); $(MAKE) all); @echo "Compilation of NTMIX3D completed" depend: $(SUBDIR)/auto.depend @echo "Building dependencies" @(cd $(SUBDIR); $(MAKE) depend) clean: @echo "Cleaning object files" @(cd Thi3D; $(MAKE) clean) @(cd Utils; $(MAKE) clean) @(cd Tools; $(MAKE) clean) @(cd $(SUBDIR); $(MAKE) clean) clean_all: @echo "Cleaning object files" @$(RM) -r Obj-* @(cd Thi3D; $(MAKE) clean) @(cd Utils; $(MAKE) clean) @(cd Tools; $(MAKE) clean) # # Installation commands # install: @echo "Making object and binary directory" @-mkdir -p $(SUBDIR) @echo "Copying Makefile in object directory" @$(CP) $(SRCDIR)/Makefile $(SUBDIR)/Makefile @echo "Creating auto.depend file" @echo "#">$(SUBDIR)/auto.depend @(cd $(SUBDIR); $(MAKE) install) @$(MAKE) all objdir: @echo "Making object and binary directory" @-mkdir -p $(SUBDIR) $(SUBDIR)/Makefile: $(SRCDIR)/Makefile @echo "Copying Makefile in object directory" @$(CP) $(SRCDIR)/Makefile $(SUBDIR)/Makefile $(SUBDIR)/auto.depend: $(SUBDIR)/Makefile @echo "Creating auto.depend file" @echo "#">$(SUBDIR)/auto.depend @$(MAKE) depend # # Commands for distribution # Create un ntmix3d.tar that you can install on an other machine # distrib: @$(RM) ntmix3d.tar ntmix3d.tar.Z @(cd Thi3D; $(MAKE) clean) @(cd Utils; $(MAKE) clean) @(cd Tools; $(MAKE) clean) @tar cvf ntmix3d.tar README TEST_IN.sample Makefile \ run.vp run.vpp run.sp2 \ Shared Config Thi3D Utils Tools \ Contrib @compress ntmix3d.tar