📄 makefile.proto
字号:
## $Header: /home/harrison/c/tcgmsg/ipcv4.0/RCS/Makefile.proto,v 1.1 91/12/06 17:25:08 harrison Exp Locker: harrison $# TOPDIR = TOP_LEVEL_DIRECTORY LIBDIR = $(TOPDIR)/ipcv4.0 SHELL = /bin/shIF IPSC DELTA#iPSC-i860 and Touchstone Delta.SUFFIXES: .SUFFIXES: .o .f .c .s.f.o: $(FC) -c $(FFLAGS) $*.f.c.o: $(CC) $(CFLAGS) -c $*.c CC = icc FC = if77 AR = ar860 INCLUDES = IF DELTA DEFINES = -DIPSC -DDELTA -DEVENTLOG INSTALL = rcp "$@" delta1: &ELSE DEFINES = -DIPSC -DEVENTLOG INSTALL = echo "$@" is builtENDIF CFLAGS = -i860 -g -Knoieee $(DEFINES) FFLAGS = -i860 -O2 -Knoieeeall: libtcgmsg.a test.x testf.x hello.x hello.p test.p testf.peverything: all parallel parse toplotclean: /bin/rm -f *.o core libtcgmsg.a test.x testf.x hello.x /bin/rm -f parse toplot TAGS parallel a.outrealclean: clean /bin/rm -f Makefile *~ *.p *.log msgtypesf.h #*#IF DELTA# no front end code ELSE# parallel must be built on the front end machine!parallel: para.ipsc.o cc -g -o parallel para.ipsc.o -host echo Don't forget to copy parallel into bin directorypara.ipsc.o: para.ipsc.c cc -c -g para.ipsc.cENDIF DELTAparse: parse.o cc -O -o $@ parse.oparse.o: parse.c cc -O -c parse.ctoplot: toplot.o cc -g -o $@ toplot.o -lplottoplot.o: toplot.c cc -O -c toplot.c LIBOBJ = ipsc.o globalop.o evon.o evlog.o checkbyte.o \ memalign.o random.o drand48.o mitob.o mdtob.o \ mdtoi.o mitod.o llog.olibtcgmsg.a: $(LIBOBJ) /bin/rm -f $@ $(AR) cr $@ $(LIBOBJ)test.x: test.o libtcgmsg.a $(CC) -o test.x $(CFLAGS) test.o libtcgmsg.a -node $(INSTALL)testf.x: testf.o libtcgmsg.a $(FC) -o testf.x $(FFLAGS) testf.o libtcgmsg.a -node $(INSTALL)hello.x: hello.o libtcgmsg.a $(CC) $(CFLAGS) -o $@ hello.o libtcgmsg.a -node $(INSTALL)testf.o: msgtypesf.hmsgtypesf.h: msgtf.h cp msgtf.h msgtypesf.hhello.p: echo '0 $$ hello.x .' > hello.ptest.p: echo '0 $$ test.x .' > test.ptestf.p: echo '0 $$ testf.x .' > testf.pELSEIF CONVEX FC = fc FFLAGS = -O2 CC = cc DEFINES = -DCONVEX -DTIMINGS -DSHMEM -DGOTXDR -DEVENTLOG -DNOSPIN CFLAGS = -O1 $(DEFINES) LINTFLAGS = $(DEFINES) -bhu LIBS = EXTRA = strdup.o strtok.o sprintf.oENDIF CONVEXIF ARDENT FC = fc FFLAGS = -O2 -43 CC = cc DEFINES = -DARDENT -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPIN CFLAGS = -O2 -43 $(DEFINES) LINTFLAGS = $(DEFINES) -u LIBS = EXTRA = strdup.o strtok.o semsys.o shmsys.oENDIF ARDENTIF ALLIANT ALLIANTMPP#ALLIANT ... 1) On FX2800/FX800 leave as is.## ... 2) On FX/8 don't use memcpy.s and change -uniproc to -ncIF ALLIANTMPP## ... 3) Need the ALPHA version ANL HIPPI daemon installed in## /usr/local/{bin,include,lib} or somewhere in standard paths.## This source is available from either Alliant or by## anonymous ftp from ftp.tcg.anl.govENDIF ALLIANTMPP FC = fortran FFLAGS = -Ogv -AS -OM -uniproc CC = cc EXTRA = memcpy.o strdup.o strtok.oIF ALLIANT DEFINES = -DALLIANT -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG LIBS = -lalliant CFLAGS = -O -g -uniproc $(DEFINES) LINTFLAGS = $(DEFINES) -bhzuELSE DEFINES = -DALLIANT -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DSWTCH LIBS = -lalliant -lsw CFLAGS = -O -g -uniproc $(DEFINES) -I/usr/local/include LINTFLAGS = $(DEFINES) -bhzu -I/usr/local/includeENDIF ALLIANTENDIF ALLIANT ALLIANTMPPIF SEQUENT#SEQUENT SYMMETRY and BALANCE (DYNIX) FC = fortran FFLAGS = -O -Z064000 CC = cc DEFINES = -DSEQUENT -DSYSV -DSHMEM -DTIMINGS -DGOTXDR CFLAGS = -O -Z064000 $(DEFINES) LINTFLAGS = $(DEFINES) -bhzu LIBS = -lpps EXTRA = strdup.o strtok.oENDIF SEQUENTIF ENCORE#ENCORE ... note that testf.f compiles incorrectly with -O FC = f77 FFLAGS = -O -q loops CC = gcc DEFINES = -DENCORE -DSYSV -DSHMEM -DTIMINGS CFLAGS = -g $(DEFINES) LINTFLAGS = $(DEFINES) -bhzu LIBS = -lpp EXTRA = strdup.o strtok.oENDIF ENCOREIF IBM#IBM RISC 6000 ... AIX 3.1 with -qEXTNAME ... recommended choice.## You MUST Compile ALL FORTRAN with -qEXTNAME to use this option.#### This is the first of two possible configurations for AIX.## -qEXTNAME appends an underscore to all FORTRAN global symbols## so that there are NO clashes with any system or C or TCGMSG routines.## However, certain useful libraries (e.g. the BLAS!) do not export## the appropriate symbols.## FC = xlf FFLAGS = -O -qEXTNAME CC = cc DEFINES = -DAIX -DEXTNAME -DSYSV -DSHMEM -DTIMINGS -DEVENTLOG -DGOTXDR -DNOSPIN CFLAGS = -O $(DEFINES) LINTFLAGS = -u -a -wkD $(DEFINES) LIBS = -lc EXTRA = strdup.o strtok.oENDIF IBMIF IBMNOEXT#IBM RISC 6000 ... AIX 3.1## You MUST append an underscore to ALL FORTRAN calls to system routines## if you use this option.## e.g. call getenv('data',env) -> call getenv_('data',env).#### This is the second of two possible configurations for AIX## By default all FORTRAN global symbols are lowercase and CLASH with## corresponding C and system routines. TCGMSG has been set up to avoid## generating any clashes BUT it needs access to the C system interface.## Thus ALL FORTRAN system calls must explicitly be changed by appending## an underscore. For some reason there is an unavoidable clash in## the event logging which must therefore be disabled.## FC = xlf FFLAGS = -O CC = cc DEFINES = -DAIX -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DNOSPIN CFLAGS = -O $(DEFINES) LINTFLAGS = -u -a -wkD $(DEFINES) LIBS = -lc EXTRA = strdup.o strtok.oENDIF IBMNOEXTIF DEC#Decstation ... ULTRIX V4.?# (xdrstuff dumps core under some old versions of ULTRIX# ... if this happens try remaking without -DGOTXDR)# (if __Argc/v are undefined try rebuilding without -DDECFORT) FC = f77 FFLAGS = -O2 CC = cc DEFINES = -DULTRIX -DDECFORT -DSYSV -DSHMEM -DTIMINGS -DEVENTLOG -DGOTXDR -DNOSPIN CFLAGS = -O $(DEFINES) LINTFLAGS = $(DEFINES) -u LIBS = EXTRA = strdup.o strtok.oENDIF DECIF SGI#SGI IRIX ... note that need -lmalloc ... default break in Stress FC = f77 FFLAGS = -O2 CC = cc DEFINES = -DSGI -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPIN CFLAGS = -O -I/usr/include/bsd -I/usr/include/sun $(DEFINES) LINTFLAGS = -I/usr/include/bsd -I/usr/include/sun $(DEFINES) -u LIBS = -lmalloc -lbsd -lrpcsvc -lsun EXTRA = strdup.o strtok.oENDIF SGIIF KSR#KSROS FC = f77 FFLAGS = -para -O2 -r8 CC = cc DEFINES = -DKSR -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG CFLAGS = -para -G $(DEFINES) LINTFLAGS = $(DEFINES) -u LIBS = -lrpc EXTRA = ksr.oENDIF KSRIF NEXT NEXTNOEXT# Absoft provides the same dilemma as on RS/6000.# Can either 1) Have C and FORTRAN names in same space# 2) Define -DEXTNAME for C and use -N9 for FORTRAN# to get C and FORTRAN names different FC = f77 CC = ccIF NEXT DEFINES = -DNEXT -DEXTNAME -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPIN FFLAGS = -g -f -N9ELSE DEFINES = -DNEXT -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPIN FFLAGS = -g -fENDIF NEXT CFLAGS = -g $(DEFINES) -Bstatic LINTFLAGS = $(DEFINES) -bhz LIBS = EXTRA = strdup.oENDIF NEXT NEXTNOEXTIF HPUX HPUXNOEXT#HPUX ... Hewlett Packard Risc Box# ... +ppu appends underscores to FORTRAN globals (recommended) FC = f77 CC = ccIF HPUX FFLAGS = -O +ppu DEFINES = -DHPUX -DEXTNAME -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPINELSE FFLAGS = -O DEFINES = -DHPUX -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPINENDIF HPUX CFLAGS = -O $(DEFINES) LINTFLAGS = $(DEFINES) -bhu LIBS = EXTRA = hpuxargs.oENDIF HPUXIF APOLLO#APOLLO GN10000 ... Apollo PRISM Domain/OS FC = f77 FFLAGS = -O CC = cc DEFINES = -DAPOLLO -DCONVEX -DTIMINGS -DSHMEM -DNOSPIN CFLAGS = -O $(DEFINES) -A nansi -A sys,bsd4.3 -A run,bsd4.3 LINTFLAGS = $(DEFINES) -bh LIBS = EXTRA =ENDIFIF SUN FC = f77 FFLAGS = -O3 -Bstatic CC = ccIF SUNF77_2 DEFINES = -DSUN -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPIN -DSUNF77_2ELSE DEFINES = -DSUN -DSYSV -DSHMEM -DTIMINGS -DGOTXDR -DEVENTLOG -DNOSPINENDIF CFLAGS = -O $(DEFINES) -Bstatic LINTFLAGS = $(DEFINES) -bhzu LIBS = EXTRA = ENDIF SUNIF CRAY FC = cf77 CC = cc DEFINES = -DCRAY -DTIMINGS -DGOTXDR -DEVENTLOG CFLAGS = $(DEFINES) LINTFLAGS = $(DEFINES) -u LIBS = -lbsd -lnet -lrpc EXTRA = ENDIF CRAY######################################### Should not need to modify below here######################################### for RCSCOFLAGS = -lLIBOBJ = brdcst.o nodeid.o setdbg.o \ checkbyte.o llog.o nxtval.o shmem.o synch.o \ cluster.o memalign.o signals.o \ usleep.o srmover.o pbegin.o snd.o waitall.o \ drand48.o mtime.o pbeginf.o sockets.o \ error.o nnodes.o sema.o stats.o \ xdrstuff.o waitcom.o random.o niceftn.o \ mdtob.o mitob.o mitod.o \ mdtoi.o globalop.o evlog.o \ evon.o pfilecopy.o $(EXTRA) INCLUDES = cluster.h sema.h signals.h sndrcvP.h srftoc.h \ farg.h shmem.h sndrcv.h sockets.h xdrstuff.h \ msgtypesc.h evlog.h defglobals.h.SUFFIXES: .SUFFIXES: .o .f .c .s.f.o: $(FC) -c $(FFLAGS) $*.fIF KSR# need optimization for this but everything else breaks with itksr.o: ksr.c ksr.h sndrcv.h sndrcvP.h srftoc.h $(CC) -O -c $(DEFINES) ksr.cENDIF KSRIF ARDENT CRAY SGI NEXT NEXTNOEXT HPUX HPUXNOEXT KSRall: parallel hello.x test.x testf.x parse hello.p test.p testf.pELSEall: parallel hello.x test.x testf.x parse hello.p test.p testf.p toplotENDIFlibtcgmsg.a: $(LIBOBJ) /bin/rm -f libtcgmsg.a ar rc libtcgmsg.a $(LIBOBJ)IF CRAY ARDENT SGI HPUX HPUX HPUXNOEXT KSRELSE ranlib libtcgmsg.aENDIFhello.x: hello.o libtcgmsg.a $(CC) $(CFLAGS) -o $@ hello.o libtcgmsg.a $(LIBS) parallel: parallel.o libtcgmsg.a $(CC) $(CFLAGS) -o $@ parallel.o libtcgmsg.a $(LIBS)test.x: test.o checkbyte.o libtcgmsg.a $(CC) $(CFLAGS) -o $@ test.o libtcgmsg.a $(LIBS)testf.x: testf.o libtcgmsg.a $(FC) $(FFLAGS) -o $@ testf.o libtcgmsg.a $(LIBS)parse: parse.o strdup.o $(CC) -O -o $@ parse.o strdup.oparse.o: parse.c $(CC) -O -c parse.cIF ARDENT CRAY SGI NEXT NEXTNOEXT HPUX HPUXNOEXT KSRELSEtoplot: toplot.o strdup.o $(CC) -g -o $@ toplot.o strdup.o -lplottoplot.o: toplot.c $(CC) -O -c toplot.cENDIFtestpf.x: testpf.o libtcgmsg.a $(FC) $(FFLAGS) -o $@ testpf.o libtcgmsg.a $(LIBS)$(LIBOBJ) parallel.o test.o testf.o: $(INCLUDES)testf.o: msgtypesf.hglobalop.o: msgtypesc.hmsgtypesf.h: msgtf.h cp msgtf.h msgtypesf.hIF APOLLO# Bug in C compiler for dgop with optimizationglobalop.o: globalop.c $(CC) -c -g $(DEFINES) -A nansi -A sys,bsd4.3 -A run,bsd4.3 globalop.cENDIF APOLLOlint: lint $(LINTFLAGS) \ brdcst.c error.c mtime.c pbegin.c signals.c synch.c \ checkbyte.c nnodes.c pbeginf.c snd.c test.c \ cluster.c llog.c nodeid.c sema.c sockets.c waitall.c \ usleep.c memalign.c nxtval.c setdbg.c stats.c \ drand48.c srmover.c parallel.c shmem.c strdup.c strtok.c \ mdtob.c mitob.c mitod.c mdtoi.c random.c \ xdrstuff.c evon.c evlog.c globalop.c niceftn.cclean: /bin/rm -f parallel hello.x test.x testf.x *.o *.a core a.out /bin/rm -f events events.??? log.??? parse toplot TAGS *.logrealclean: clean /bin/rm -f Makefile *~ *.p *.log msgtf.h msgtypesf.h #*#hello.p test.p testf.p:IF CRAY NEXT NEXTNOEXT echo "`whoami` `hostname` 1 `pwd`/hello.x /tmp" > hello.p echo "`whoami` `hostname` 1 `pwd`/hello.x /tmp" >> hello.p echo "`whoami` `hostname` 1 `pwd`/hello.x /tmp" >> hello.p echo "`whoami` `hostname` 1 `pwd`/hello.x /tmp" >> hello.p echo "`whoami` `hostname` 1 `pwd`/test.x /tmp" > test.p echo "`whoami` `hostname` 1 `pwd`/test.x /tmp" >> test.p echo "`whoami` `hostname` 1 `pwd`/test.x /tmp" >> test.p echo "`whoami` `hostname` 1 `pwd`/test.x /tmp" >> test.p echo "`whoami` `hostname` 1 `pwd`/testf.x /tmp" > testf.p echo "`whoami` `hostname` 1 `pwd`/testf.x /tmp" >> testf.p echo "`whoami` `hostname` 1 `pwd`/testf.x /tmp" >> testf.p echo "`whoami` `hostname` 1 `pwd`/testf.x /tmp" >> testf.pELSE echo "`whoami` `hostname` 4 `pwd`/hello.x /tmp" > hello.p echo "`whoami` `hostname` 4 `pwd`/test.x /tmp" > test.p echo "`whoami` `hostname` 4 `pwd`/testf.x /tmp" > testf.pENDIFIF ARDENT# This for ARDENT - bsd everything but need SYSV shmem and semaphoressemsys.o shmsys.o: /lib/libc.a ar x /lib/libc.a semsys.o shmsys.oENDIF ARDENTIF CONVEX# In their infinite wisdom the version of sprintf differs between# the C and FORTRAN environments on the CONVEX and it's not possible# to just link against -lc due to other confilicts. Need to drag out# the one that we need by hand. Ugh.sprintf.o: /usr/lib/libc.a ar x /usr/lib/libc.a sprintf.oENDIF CONVEXENDIF IPSC DELTA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -