📄 makefile.in
字号:
########################################################################
#
# Makefile for tMCimg Monte Carlo modeling program
#
########################################################################
# This file is part of tMCimg.
#
# tMCimg is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# MPICC may not take the same flags as $(CC)
PMIFLAGS= -I.. -Wall -O2 -g @GSLCFLAGS@
CFLAGS = -I.. @CFLAGS@ @GSLCFLAGS@
LDFLAGS = -L../libmccore -L../libmcparse @LDFLAGS@ @GSLLDFLAGS@
MCLIBS = -lmccore -lmcparse
GSLLIBS = @GSLLIBS@
LIBS = @LIBS@
ifeq ("@MPICC@","")
TARGET = tMCimg
else
TARGET = tMCimg pMCimg
endif
###########################################################################
all: $(TARGET)
commonMC.o: commonMC.c commonMC.h ../config.h ../tMCimg.h ../mccore.h
@CC@ $(CFLAGS) -c $*.c
###########################################################################
tMCimg : tMCimg.lo
@CC@ $(CFLAGS) -o tMCimg tMCimg.lo $(LDFLAGS) $(LIBS)
tMCimg.o: tMCimg.c ../config.h ../tMCimg.h ../mccore.h
@CC@ $(CFLAGS) -c $*.c
# Do partial linking; GSL needs to be linked static since the
# GSL shared libraries can't be seen by the cluster.
tMCimg.lo: ../libmccore/libmccore.a ../libmcparse/libmcparse.a
tMCimg.lo: tMCimg.o commonMC.o
$(LD) $(LDFLAGS) -r -static -o tMCimg.lo \
tMCimg.o commonMC.o $(MCLIBS) $(GSLLIBS)
###########################################################################
pMCimg : pMCimg.lo
@MPICC@ $(PMIFLAGS) -o pMCimg pMCimg.lo $(LDFLAGS) $(LIBS)
pMCimg.o: pMCimg.c ../config.h ../tMCimg.h ../mccore.h parallel.h
@MPICC@ $(PMIFLAGS) -c $*.c
parallel.o: parallel.c parallel.h ../config.h ../tMCimg.h ../mccore.h
@MPICC@ $(PMIFLAGS) -c $*.c
# Do partial linking; GSL needs to be linked static since the
# GSL shared libraries can't be seen by the cluster.
pMCimg.lo: ../libmccore/libmccore.a ../libmcparse/libmcparse.a
pMCimg.lo: pMCimg.o commonMC.o parallel.o
$(LD) $(LDFLAGS) -r -static -o pMCimg.lo \
pMCimg.o commonMC.o parallel.o $(MCLIBS) $(GSLLIBS)
###########################################################################
clean:
-/bin/rm core tMCimg pMCimg *.o *.lo *~
distclean:
-make clean
-/bin/rm config.cache config.h config.log config.status Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -