********> bugfix.33 Author: Bill Ross (UCSF) and Christi Garvin (SGI) Date: 2/11/99 Programs: Leap Severity: Total Description: Can't compile Leap under new IRIX 6.5 Fix: Replace $(AMBER5)/leap/src/leap/Imakefile with the appended version. ---------------------------------------------------------------------- #ifndef XCOMM #define XCOMM # #endif XCOMM XCOMM XCOMM xaLeap and tLeap Imakefile XCOMM XCOMM xaLeap requires at least X11R4 XCOMM XCOMM "make world" makes EVERYTHING, Makefiles, XCOMM Wcl libraries, tLeap, xaLeap, and util progs. XCOMM This is the option to use when the source XCOMM is first moved to a new system. XCOMM "make all" makes Wcl libraries, tLeap, XCOMM xaLeap, util progs. But assumes that the Makefiles XCOMM have already been made. XCOMM "make t" makes tLeap only. XCOMM "make x" makes x windows stuff only. XCOMM "make util" makes utility programs. XCOMM XCOMM #define INSTALL_BINARY_PATH /usr/local/bin/X11 #define INSTALL_X_APPDEFAULT_PATH /usr/local/lib/X11/app-defaults #define INSTALL_LEAP_LIBRARIES /usr/local/lib/Leap #define noMask 0x0000 #define debugMask 0x0001 #define profileMask 0x0002 #define memoryDebugMask 0x0004 #define trackMemoryMask 0x0008 #define NeXTMemoryMask 0x0010 #define distribution (noMask) #define debug (debugMask) #define debugMemory (debugMask|memoryDebugMask) #define profile (profileMask) #define profileDebug (profileMask|debugMask) #define trackMemory (trackMemoryMask) #define debugNeXTMemory (debugMask|NeXTMemoryMask) XCOMM XCOMM CONFIG determines how XLEaP/LEaP is configured XCOMM #ifndef LEAP_CONFIG #define LEAP_CONFIG debug #endif XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM XCOMM Do not modify below here XCOMM XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM ############################################################### XCOMM XCOMM By default, don't do memory debugging XCOMM XCOMM * MEMORY_DEBUG: Can have one of the following five values. XCOMM * If MEMORY_DEBUG is anything other than 0 XCOMM * then DEBUG must be defined. XCOMM * 0 - Dont do any MEMORY debugging. XCOMM * 1 - Use my memory usage tracking. XCOMM * This adds 4 bytes to every MALLOC and stores XCOMM * the size of the allocation in an int XCOMM * at the front of the memory block. XCOMM * This is usefull for finding memory leaks. XCOMM * 2 - Use my memory debugging. XCOMM * Every MALLOC,FREE,REALLOC first tests XCOMM * memory for overwrites etc. XCOMM * 3 - Use SUN memory debugging, requires linking with XCOMM * /usr/lib/debug/malloc.o XCOMM * 4 - Use my memory debugging, but test memory EVERYTIME XCOMM * a routine is entered or exited. XCOMM * 5 - Use my memory debugging, don't test memory, XCOMM * just make sure that memory is only freed once #if (LEAP_CONFIG&memoryDebugMask) && !defined(MEMORY_DEBUG_LEVEL) #define MEMORY_DEBUG_LEVEL 2 #endif #if (LEAP_CONFIG&trackMemoryMask) && !defined(MEMORY_DEBUG_LEVEL) #define MEMORY_DEBUG_LEVEL 5 #endif #if !defined(MEMORY_DEBUG_LEVEL) #define MEMORY_DEBUG_LEVEL 0 #endif #if MEMORY_DEBUG_LEVEL==3 #define MALLOC /usr/lib/debug/malloc.o #else #define MALLOC #endif #if (LEAP_CONFIG&debugMask ) && (LEAP_CONFIG&profileMask) LEAP_DEBUG_FLAGS = -p -g -DDEBUG -DMEMORY_DEBUG=MEMORY_DEBUG_LEVEL #endif #if (LEAP_CONFIG&debugMask ) && !(LEAP_CONFIG&profileMask) #if (LEAP_CONFIG&NeXTMemoryMask) LEAP_DEBUG_FLAGS = -g -DDEBUG -lMallocDebug -lsys_s #else LEAP_DEBUG_FLAGS = -g -DDEBUG -DMEMORY_DEBUG=MEMORY_DEBUG_LEVEL #endif #endif #if !(LEAP_CONFIG&debugMask) && (LEAP_CONFIG&profileMask) LEAP_DEBUG_FLAGS = -p -g -DMEMORY_DEBUG=MEMORY_DEBUG_LEVEL #endif #if !(LEAP_CONFIG&debugMask ) && !(LEAP_CONFIG&profileMask) LEAP_DEBUG_FLAGS = -g -DMEMORY_DEBUG=MEMORY_DEBUG_LEVEL #endif XCOMM ################################################################### XCOMM # XCOMM Machine dependancies # XCOMM # XCOMM ################################################################### XCOMM ################################################################### XCOMM #################################################################### XCOMM XCOMM Default platform XCOMM XCOMM M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -l | $(LsFilter) CDEBUGFLAGS = $(LEAP_FLAGS) -w SYSLIB = -lm LEAP_DEBUG_LIB = INCLUDE_LEAP = -I.. LEAP_FLAGS = $(LEAP_DEBUG_FLAGS) $(INCLUDE_LEAP) LsFilter = awk -c ' { printf ("%s %8s %3s %2s %7s %s\n", $$1, $$4, $$5, $$6, $$7, $$8);}' XCOMM #################################################################### XCOMM XCOMM HP-UX platform XCOMM #if defined(HPArchitecture) M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -l | $(LsFilter) # if HasGcc CDEBUGFLAGS = $(LEAP_FLAGS) -traditional # else CDEBUGFLAGS = $(LEAP_FLAGS) # endif #endif XCOMM #################################################################### XCOMM XCOMM RS/6000 XCOMM #if defined(AIXArchitecture) XCOMM EXTRA_LIBRARIES added for AIX4.2 EXTRA_LIBRARIES = -liconv -lIM -bI:/usr/lpp/X11/bin/smt.exp M4Cmd = m4 -B50000 NmCmd = /usr/ucb/nm LsCmd = ls -l | $(LsFilter) /* Flags when you don't want to use shared libraries */ # if (CONFIG==distribution) CDEBUGFLAGS = $(LEAP_FLAGS) -bnso -bI:/lib/syscalls.exp # else CDEBUGFLAGS = $(LEAP_FLAGS) # endif #endif XCOMM #################################################################### XCOMM XCOMM SGI with OS 3.x or 4.x (X11R4 standard) XCOMM #if defined(SGIArchitecture) SYSLIB = -lm # if OSMajorVersion == 3 M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -o | $(LsFilter) CDEBUGFLAGS = $(LEAP_FLAGS) -w -Wf,-XNl16386 # endif # if OSMajorVersion == 4 /* Version 4 */ M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -o | $(LsFilter) CDEBUGFLAGS = $(LEAP_FLAGS) -cckr -noprototypes -w -Wf,-XNl16386 # endif # if OSMajorVersion == 5 M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -o | $(LsFilter) CCOPTIONS = -cckr -noprototypes -32 -Wf,-XNh2000 CDEBUGFLAGS = $(LEAP_FLAGS) -cckr -noprototypes -w -Wf,-XNl16386 # endif # if OSMajorVersion == 6 M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -o | $(LsFilter) CCOPTIONS = -cckr -n32 -Wf,-XNh2000 X__LIB = -L$(PROJECTROOT)/lib32 # define X__LIB CDEBUGFLAGS = $(LEAP_FLAGS) -cckr -w -Wf,-XNl16386 # endif #endif XCOMM #################################################################### XCOMM XCOMM SUN platform XCOMM XCOMM #if defined(SunArchitecture) #ifdef SVR4 /* SOLARIS */ M4Cmd = /usr/ccs/bin/m4 -B50000 NmCmd = nm LsCmd = ls -l | $(LsFilter) CCOPTIONS = -DSYSV -DSRV4 SYSLIB = -lm -lc /usr/ucblib/libucb.a -Bdynamic -R/etc/lib -Wl,-I/etc/lib/ld.so.1 -ldl -Bstatic EXTRA_LIBRARIES = -lsocket -lnsl -lintl -lw XLIB = -lX11 -lXext # if HasGcc CDEBUGFLAGS = $(LEAP_FLAGS) -w -traditional -static # else # if DoSharedLib && !DoNormalLib CDEBUGFLAGS = $(LEAP_FLAGS) -w -Bdynamic # else CDEBUGFLAGS = $(LEAP_FLAGS) -w -B static # endif # endif #else /* SunOS 4.1 */ M4Cmd = /usr/5bin/m4 -B50000 NmCmd = nm LsCmd = ls -l | $(LsFilter) # if HasGcc CDEBUGFLAGS = $(LEAP_FLAGS) -w -traditional -static # else # if DoSharedLib && !DoNormalLib CDEBUGFLAGS = $(LEAP_FLAGS) -w -Bdynamic # else CDEBUGFLAGS = $(LEAP_FLAGS) -w -PIC -Bstatic # endif # endif #endif /* SOLARIS */ #endif /* defined(SunArchitecture) */ XCOMM #################################################################### XCOMM XCOMM Ultrix platform XCOMM XCOMM #if defined(UltrixArchitecture) M4Cmd = m4 -B50000 NmCmd = nm LsCmd = ls -l | $(LsFilter) CDEBUGFLAGS = $(LEAP_FLAGS) -w -Wf,-XNl16386 XCOMM LEAP_DEBUG_LIB = /usr/lib/dbmalloc/libdbmalloc.a #endif XCOMM #################################################################### XCOMM XCOMM Alpha XCOMM #if defined(AlphaArchitecture) # -taso: force address space to 32 bits to avoid # side effects of bad casts for 64-bit CDEBUGFLAGS = $(LEAP_FLAGS) -w -taso -non_shared # Something in the X stuff causes unsatisfied refs for # dnet_conn, dnet_htoa and getnodebyaddr. To satisfy # these, -ldnet_stub is needed. NOTE: for some reason # adding it explicitly at one point in AlphaArchitecture # history caused _other_ unsatisfied refs, while using # $(DNETLIB) instead worked for no obvious reason. EXTRA_LIBRARIES = -ldnet_stub #endif XCOMM #################################################################### XCOMM XCOMM NeXT platform XCOMM XCOMM #if defined(NeXTPlatform) M4Cmd = m4 -B50000 XCOMM M4Cmd = m4 xaMonochrome.rm4 NmCmd = /usr/ucb/nm LsCmd = ls -l | $(LsFilter) CDEBUGFLAGS = $(LEAP_FLAGS) #endif XCOMM ######################################################################### XCOMM ######################################################################### XCOMM XCOMM XCOMM leap and xaLeap objects. XCOMM XCOMM XCOMM XCOMM XCOMM Absolutely necessary routines XCOMM OA1= basics.o sysdepend.o stringExtra.o varArray.o MALLOC getline.o avl.o OA = $(OA1) XCOMM XCOMM General tools XCOMM OG1= pdb_format.o pdb_read.o pdb_sprntf.o OG2= pdb_sscanf.o pdb_write.o OG3= vector.o zMatrix.o sort.o bag.o hash.o OG4= dictionary.o database.o nVector.o ring.o matrix.o OG5= fortran.o displayer.o OG = $(OG1) $(OG2) $(OG3) $(OG4) $(OG5) XCOMM XCOMM Object hierarchy objekts XCOMM OO1= assoc.o atom.o byteArray.o OO2= collection.o container.o internal.o OO3= list.o loop.o molecule.o OO4= oDouble.o oInteger.o oString.o OO5= objekt.o parmSet.o residue.o unit.o unitio.o OO6= graphUtil.o select.o OO = $(OO1) $(OO2) $(OO3) $(OO4) $(OO5) $(OO6) XCOMM XCOMM xaLeap and leap specific objects and tools XCOMM OL1= amber.o build.o elements.o library.o chirality.o OL2= minimizer.o model.o parmLib.o pdbFile.o tools.o OL3= variables.o parser.o help.o helptext.o octree.o OL4= commands.o mathop.o block.o restraint.o hybrid.o OL = $(OL1) $(OL2) $(OL3) $(OL4) XCOMM XCOMM Terminal interface specifics XCOMM OC1= tLeap.o OC = $(OC1) XCOMM XCOMM X-Windows LEaP interface specifics XCOMM XCOMM Special header files: threed.h xTank.h xTankP.h xAction.h OXT1= xTank.o xAction.o x3d.o xBasics.o OXT = $(OXT1) XCOMM XCOMM X-Windows ATHENA widget set specifics XCOMM OXAW1 = xaLeap.o xaUnitEditor.o xaTable.o xaAtomTable.o XrawRegistr.o OXAW2 = xaCommand.o xaTools.o OXAW3 = xaAtomParmTable.o xaBondParmTable.o OXAW4 = xaAngleParmTable.o xaParmEditor.o OXAW5 = xaTorsionParmTable.o xaImproperParmTable.o OXAW6 = xaHBondParmTable.o OXAW = $(OXAW1) $(OXAW2) $(OXAW3) $(OXAW4) $(OXAW5) $(OXAW6) XCOMM XCOMM utilities specifics XCOMM XCOMM OXUMF: xaUtilMessageFilter XCOMM OUCWB: utilConvertWaterBox XCOMM OUC2O: utilCrd2Off XCOMM OUDT: utilDescribeTopology XCOMM OUMH: utilMakeHelp XCOMM OUT: utilTripos XCOMM OXUMF= mess.o function.o OUCWB= utilConvertWaterBox.o OUDT= utilDescribeTopology.o OUT= utilTripos.o tripos.o OUC2O= utilCrd2Off.o OUMH= utilMakeHelp.o OUED= utilExtractDocs.o OUL2P= utilLib2Pdb.o XCOMM XCOMM Other dependancy files XCOMM XRES1 = xaLeap.rm4 xaDialog.rm4 xaUnitEditor.rm4 XRES2 = xaCommand.rm4 xaAtomTable.rm4 xaUtilMessageFilter.rm4 XRES3 = xaAtomParmTable.rm4 xaBondParmTable.rm4 XRES4 = xaAngleParmTable.rm4 xaTorsionParmTable.rm4 XRES5 = xaImproperParmTable.rm4 xaHBondParmTable.rm4 xaParmEditor.rm4 XRESOURCES_M4 = $(XRES1) $(XRES2) $(XRES3) $(XRES4) $(XRES5) XBIT1= drawSource.xbm drawMask.xbm XBIT2= selectSource.xbm selectMask.xbm XBIT3= eraseSource.xbm eraseMask.xbm XBITMAPS= $(XBIT1) $(XBIT2) $(XBIT3) XCOMM ############################################################## XCOMM ############################################################## XCOMM ############################################################## XCOMM XCOMM Define dependancy files for each target. XCOMM XCOMM PROJECTX=4 /*ProjectX*/ XRAWDIR = ../Xraw WCLLIB = -L../Wc -lWcLeap XPMLIB = -L../Xpm -lXpmLeap XRAWLIB = -L$(XRAWDIR) -lXrawLeap #if DoSharedLib WCLDEP_s = ../Wc/libWc.so XPMDEP_s = ../Xpm/libXpm.so XRAWDEP_s = $(XRAWDIR)/libXraw.so #else WCLDEP_s = XPMDEP_s = XRAWDEP_s = #endif #if DoNormalLib WCLDEP_n = ../Wc/libWcLeap.a XPMDEP_n = ../Xpm/libXpmLeap.a XRAWDEP_n = $(XRAWDIR)/libXrawLeap.a #else WCLDEP_n = XPMDEP_n = XRAWDEP_n = #endif #if DoDebugLib WCLDEP_d = ../Wc/libWc_d.a XPMDEP_d = ../Xpm/libXpm_d.a XRAWDEP_d = $(XRAWDIR)/libXraw_d.a WCLLIB = -L../Wc -lWc_d XPMLIB = -L../Xpm -lXpm_d XRAWLIB = -L$(XRAWDIR) -lXraw_d #else WCLDEP_d = XPMDEP_d = XRAWDEP_d = #endif #if DoProfileLib WCLDEP_p = ../Wc/libWc_p.a XPMDEP_p = ../Xpm/libXpm_p.a XRAWDEP_p = $(XRAWDIR)/libXraw_p.a #else WCLDEP_p = XPMDEP_p = XRAWDEP_p = #endif WCLDEP = $(WCLDEP_s) $(WCLDEP_n) $(WCLDEP_d) $(WCLDEP_p) XPMDEP = $(XPMDEP_s) $(XPMDEP_n) $(XPMDEP_d) $(XPMDEP_p) XRAWDEP = $(XRAWDEP_s) $(XRAWDEP_n) $(XRAWDEP_d) $(XRAWDEP_p) ADDDEPS = $(WCLDEP) $(XPMDEP) $(XRAWDEP) OBJ = $(OA) $(OG) $(OO) $(OL) TLEAP_OBJ = $(OA) $(OG) $(OO) $(OL) $(OC) XALEAP_OBJ = $(OA) $(OG) $(OO) $(OL) $(OXT) $(OXAW) XALEAP_DEP = $(XBITMAPS) $(ADDDEPS) UMF_OBJ = $(OA) $(OXUMF) UMH_OBJ = $(OA) $(OG) $(OUMH) UED_OBJ = $(OA) $(OG) $(OUED) UCWB_OBJ = $(OA) $(OG) $(OO) $(OL) $(OUCWB) UDT_OBJ = $(OA) $(OG) $(OO) $(OL) $(OUDT) UT_OBJ = $(OA) $(OG) $(OO) $(OL) $(OUT) UL2P_OBJ = $(OA) $(OG) $(OO) $(OL) $(OUL2P) UC2O_OBJ = $(OA) $(OG) $(OO) $(OL) $(OUC2O) UWR_OBJ = $(OA) $(OUWR) T_OBJ = $(OA) $(OG) $(OO) $(OL) test_parmSet.o XALEAPRES_DEP = $(XRESOURCES_M4) XCOMM ############################################################## XCOMM ############################################################## XCOMM ############################################################## XCOMM XCOMM Libraries XCOMM XCOMM #if ProjectX < 5 X__LIB = -L$(USRLIBDIR) #else # ifndef X__LIB X__LIB = -L$(PROJECTROOT)/lib # endif LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) #endif XALEAP_LIB= $(LEAP_DEBUG_LIB) $(WCLLIB) $(XPMLIB) $(XRAWLIB) $(X__LIB) $(XMULIB) $(XTOOLLIB) $(XLIB) #if ProjectX < 5 ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES) $(VENDOR_INCLUDES) ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS) CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES) LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) #endif XCOMM ############################################################## XCOMM ############################################################## XCOMM ############################################################## XCOMM XCOMM TESTPROGS = test XCOMM deleted from UTILPROGS: XCOMM utilConvertWaterBox utilDescribeTopology XCOMM utilCrd2Off utilFixOff utilTripos utilLib2Pdb XCOMM xaUtilMessageFilter UTILPROGS = utilMakeHelp LEAPPROGS = xaLeap tLeap PROGS = $(LEAPPROGS) $(UTILPROGS) DISTFILES= $(LEAPPROGS) XaLeap SRCS= \ StrToPmap.c \ amber.c \ assoc.c \ atom.c \ bag.c \ basics.c \ block.c \ build.c \ byteArray.c \ chirality.c \ collection.c \ commands.c \ container.c \ database.c \ dictionary.c \ displayer.c \ elements.c \ fortran.c \ function.c \ getline.c \ avl.c \ graphUtil.c \ hash.c \ help.c \ hybrid.c \ internal.c \ library.c \ list.c \ loop.c \ mathop.c \ matrix.c \ mess.c \ minimizer.c \ model.c \ molecule.c \ nVector.c \ oDouble.c \ oInteger.c \ oString.c \ objekt.c \ octree.c \ parmLib.c \ parmSet.c \ pdbFile.c \ pdb_format.c \ pdb_read.c \ pdb_sprntf.c \ pdb_sscanf.c \ pdb_write.c \ residue.c \ restraint.c \ ring.c \ select.c \ sort.c \ stringExtra.c \ sysdepend.c \ tLeap.c \ test_dataBase.c \ test_parmSet.c \ tools.c \ tripos.c \ unit.c \ unitio.c \ utilConvertWaterBox.c \ utilCrd2Off.c \ utilDescribeTopology.c \ utilExtractDocs.c \ utilFixOff.c \ utilLib2Pdb.c \ utilMakeHelp.c \ utilTripos.c \ utilWrapRes.c \ varArray.c \ variables.c \ vector.c \ x3d.c \ xAction.c \ xBasics.c \ xTank.c \ xaAngleParmTable.c \ xaAtomParmTable.c \ xaAtomTable.c \ xaBondParmTable.c \ xaCommand.c \ xaHBondParmTable.c \ xaImproperParmTable.c \ xaLeap.c \ xaParmEditor.c \ xaTable.c \ xaTools.c \ xaTorsionParmTable.c \ xaUnitEditor.c \ xaUtilMessageFilter.c \ XrawRegistr.c \ zMatrix.c HEADERS = \ amber.h \ assoc.h \ atom.h \ bag.h \ basics.h \ block.h \ build.h \ byteArray.h \ chirality.h \ classes.h \ collection.h \ commands.h \ config.h \ container.h \ database.h \ dictionary.h \ displayer.h \ elements.h \ fortran.h \ function.h \ getline.h \ avl.h \ avl2.h \ graphUtil.h \ hash.h \ help.h \ hybrid.h \ internal.h \ leap.h \ library.h \ list.h \ loop.h \ machine.h \ mathop.h \ matrix.h \ mess.h \ minimizer.h \ model.h \ molecule.h \ nVector.h \ oDouble.h \ oInteger.h \ oString.h \ objekt.h \ octree.h \ parmLib.h \ parmSet.h \ parser.h \ pdb.h \ pdbFile.h \ pdb_int.h \ residue.h \ restraint.h \ ring.h \ select.h \ sort.h \ stringExtra.h \ sysdepend.h \ threed.h \ tools.h \ tripos.h \ unit.h \ unitio.h \ varArray.h \ vector.h \ x3d.h \ xAction.h \ xDisplayList.h \ xTank.h \ xTankP.h \ xaAngleParmTable.h \ xaAtomParmTable.h \ xaAtomTable.h \ xaBondParmTable.h \ xaCommand.h \ xaHBondParmTable.h \ xaLeap.h \ xaResources.h \ xaTable.h \ xaTools.h \ xaTorsionParmTable.h \ xaUnitEditor.h \ XrawRegistr.h \ zMatrix.h XCOMM ############################################################## XCOMM XCOMM "make all" makes EVERYTHING, Wcl libraries, tLeap, xaLeap, util progs. XCOMM "make t" makes tLeap only XCOMM "make x" makes x windows stuff only XCOMM "make util" makes utility programs XCOMM XCOMM "make all" must be used when the system is first ported to a XCOMM machine to make Wcl stuff. XCOMM #if !defined(SunArchitecture) depend:: $(DEPEND) -s "# DO NOT DELETE" -- $(INCLUDE_LEAP) $(ALLDEFINES) -- $(SRCS) #else depend:: @echo "\n\n\tSun makedepend has __STDC__, but cc has not this\n\n" #endif AllTarget( X t util) X:: xaLeap XaLeap t:: tLeap utilDescribeTopology util:: $(UTILPROGS) tests:: $(TESTPROGS) obj:: $(OBJ) install:: @(INSDIR=`/bin/csh -f ../../INSTALLDIR`/Leap ; \ if [ $$INSDIR ] ; then \ echo Copying programs to $$INSDIR/ ; \ cp $(DISTFILES) $$INSDIR ; \ cp utilDescribeTopology $$INSDIR/descTop ; \ else \ echo Install directory not defined: ; \ echo " see Leap/0README" ; \ exit 1; \ fi ; \ ) EMPTY= NormalProgramTarget(xaLeap,$(XALEAP_OBJ),$(XALEAP_DEP),$(XALEAP_LIB),$(SYSLIB)) #if 0 NormalProgramTarget(xaUtilMessageFilter,$(UMF_OBJ),XaUtilMessageFilter,$(XALEAP_LIB),$(SYSLIB)) #endif NormalProgramTarget(tLeap,$(TLEAP_OBJ),$(EMPTY),$(EMPTY), $(SYSLIB)) NormalProgramTarget(utilMakeHelp,$(UMH_OBJ),$(EMPTY),$(LEAP_DEBUG_LIB),$(SYSLIB)) NormalProgramTarget(utilExtractDocs,$(UED_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(utilConvertWaterBox,$(UCWB_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(utilDescribeTopology,$(UDT_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(utilCrd2Off,$(UC2O_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(utilTripos,$(UT_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(utilLib2Pdb,$(UL2P_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) NormalProgramTarget(test,$(T_OBJ),$(EMPTY),$(EMPTY),$(SYSLIB)) clean:: $(RM) mon.out $(RM) *.o $(PROGS) *\~ $(RM) XaLeap $(RM) *.gprof $(RM) parser.c $(RM) helptext.c lines:: GetLines *.c *.y parser.c: parser.y parser.h yacc parser.y @echo "(The warning 'conflicts: 6 shift/reduce' is normal)" $(RM) parser.c mv y.tab.c parser.c helptext.c: helptext.text utilMakeHelp ./utilMakeHelp helptext.text helptext.c commands.tex: commands.c utilExtractDocs utilExtractDocs commands.c commands.tex xTank.o: xTank.c $(XBITMAPS) XaLeap: $(XALEAPRES_DEP) $(M4Cmd) xaLeap.rm4 >XaLeap XaUtilMessageFilter: xaUtilMessageFilter.rm4 $(M4Cmd) xaUtilMessageFilter.rm4 >XaUtilMessageFilter fileList: $(LsCmd) >=houseKeeping/FILE_LIST update:: $(MAKE) $(MFLAGS) clean $(RM) ../leapUpdate.tar ../leapUpdate.tar.Z $(LsCmd) >=houseKeeping/FILE_LIST tar cvf ../leapUpdate.tar `find . -type f -newer =houseKeeping/TIME_STAMP -print` compress ../leapUpdate.tar updated:: $(MAKE) $(MFLAGS) clean uncompress ../leapUpdate.tar tar xvf ../leapUpdate.tar touch =houseKeeping/TIME_STAMP $(LsCmd ) >=houseKeeping/LOCAL_FILE_LIST diff =houseKeeping/LOCAL_FILE_LIST =houseKeeping/FILE_LIST package:: $(MAKE) $(MFLAGS) clean $(RM) ../leap.tar ../leap.tar.Z tar cvf ../leap.tar * compress ../leap.tar $(MAKE) $(MFLAGS) all oldPackage:: $(MAKE) $(MFLAGS) clean $(RM) ../oldLeap.tar ../oldLeap.tar.Z tar cvf ../oldLeap.tar * compress ../oldLeap.tar chunks:: $(MAKE) $(MFLAGS) clean $(RM) ../leap.tar* tar cvf ../leap.tar * compress ../leap.tar /NextApps/Installer.app/chunk -1200000 ../leap.tar.Z leapLibs:: tLeap utilConvertWaterBox (cd =data;$(RM) *.lib) -(cd =data;../tLeap -s -f makelibs.x) utilConvertWaterBox =data/=amber3x/wat216.dat =data/water18.lib #----------------------------------------------------------------------