Jump to content
Fórum Script Brasil
  • 0

Makefile


Messias Rocha

Question

F77C = /usr/bin/f77 -O -fno-automatic

VERSION =9.7

VPATH = ../poten

# executables that can be built from this makefile

DUMSEXE = ../exe/polyrate$(VERSION).dum.serial.exe

CH5SEXE = ../exe/polyrate$(VERSION).ch5.serial.exe

CLHBRSEXE = ../exe/polyrate$(VERSION).clhbr.serial.exe

CH4OSEXE = ../exe/polyrate$(VERSION).ch4o.serial.exe

CMCSEXE = ../exe/polyrate$(VERSION).cmc.serial.exe

CWMCSEXE = ../exe/polyrate$(VERSION).cwmc.serial.exe

NH3SEXE = ../exe/polyrate$(VERSION).nh3.serial.exe

H2NISEXE = ../exe/polyrate$(VERSION).h2ni.serial.exe

H3SEXE = ../exe/polyrate$(VERSION).h3.serial.exe

HNISEXE = ../exe/polyrate$(VERSION).hni.serial.exe

OH3SEXE = ../exe/polyrate$(VERSION).oh3.serial.exe

OHCLSEXE = ../exe/polyrate$(VERSION).ohcl.serial.exe

HO2SEXE = ../exe/polyrate$(VERSION).ho2.serial.exe

#User may add new executables here

.f.o:

$(F77C) -c $<

.c.o:

cc -c $<

OBJ = dattim.o dateclock.o givtst.o intbsv3.o poly40.o \

polyrr.o headr.o interface.o polysz.o ef.o \

hooks.o ivtstm.o polyag.o rtpjac.o \

energetics.o intbsv1.o main.o acespoly.o \

polyhl.o fromblas.o intbsv2.o poly31.o polymq.o

ch4o.o: ../poten/ch4o.f

$(F77C) -c ../poten/ch4o.f

ch5.o: ../poten/ch5.f

$(F77C) -c ../poten/ch5.f

chain3.o: ../poten/chain3.f

$(F77C) -c ../poten/chain3.f

chain4.o: ../poten/chain4.f

$(F77C) -c ../poten/chain4.f

clhbr.o: ../poten/clhbr.f

$(F77C) -c ../poten/clhbr.f

cmc.o: ../poten/cmc.f

$(F77C) -c ../poten/cmc.f

coord3.o: ../poten/coord3.f

$(F77C) -c ../poten/coord3.f

coord4.o: ../poten/coord4.f

$(F77C) -c ../poten/coord4.f

cwmc.o: ../poten/cwmc.f

$(F77C) -c ../poten/cwmc.f

dumpot.o: ../poten/dumpot.f

$(F77C) -c ../poten/dumpot.f

h2ni.o: ../poten/h2ni.f

$(F77C) -c ../poten/h2ni.f

h3.o: ../poten/h3.f

$(F77C) -c ../poten/h3.f

hni.o: ../poten/hni.f

$(F77C) -c ../poten/hni.f

ho2.o: ../poten/ho2.f

$(F77C) -c ../poten/ho2.f

nh3.o: ../poten/nh3.f

$(F77C) -c ../poten/nh3.f

oh3.o: ../poten/oh3.f

$(F77C) -c ../poten/oh3.f

ohcl.o: ../poten/ohcl.f

$(F77C) -c ../poten/ohcl.f

setup3.o: ../poten/setup3.f

$(F77C) -c ../poten/setup3.f

setup4.o: ../poten/setup4.f

$(F77C) -c ../poten/setup4.f

surf3.o: ../poten/surf3.f

$(F77C) -c ../poten/surf3.f

surf4.o: ../poten/surf4.f

$(F77C) -c ../poten/surf4.f

#User may add line here to compile potential file. Start second line with a tab

#User may add lines here to make the executable. Example:

#SURFACE:

# gmake $(SURFACEEXE)

#$(SURFACEEXE):$(OBJ) dummy_mpi.o surface.o

# $(F77C) -o $(SURFACEEXE) $(OBJ) dummy_mpi.o surface.o

DUMS:

gmake -s $(DUMSEXE)

$(DUMSEXE):$(OBJ) dummy_mpi.o dumpot.o

$(F77C) -o $(DUMSEXE) $(OBJ) dummy_mpi.o dumpot.o

CH4OS:

gmake -s $(CH4OSEXE)

$(CH4OSEXE):$(OBJ) dummy_mpi.o ch4o.o

$(F77C) -o $(CH4OSEXE) $(OBJ) dummy_mpi.o ch4o.o

CH5S:

gmake -s $(CH5SEXE)

$(CH5SEXE):$(OBJ) dummy_mpi.o ch5.o

$(F77C) -o $(CH5SEXE) $(OBJ) dummy_mpi.o ch5.o

CLHBRS:

gmake -s $(CLHBRSEXE)

$(CLHBRSEXE):$(OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o

$(F77C) -o $(CLHBRSEXE) $(OBJ) dummy_mpi.o clhbr.o setup3.o surf3.o coord3.o chain3.o

CMCS:

gmake -s $(CMCSEXE)

$(CMCSEXE):$(OBJ) dummy_mpi.o cmc.o

$(F77C) -o $(CMCSEXE) $(OBJ) dummy_mpi.o cmc.o

CWMCS:

gmake -s $(CWMCSEXE)

$(CWMCSEXE):$(OBJ) dummy_mpi.o cwmc.o

$(F77C) -o $(CWMCSEXE) $(OBJ) dummy_mpi.o cwmc.o

H2NIS:

gmake -s $(H2NISEXE)

$(H2NISEXE):$(OBJ) dummy_mpi.o h2ni.o

$(F77C) -o $(H2NISEXE) $(OBJ) dummy_mpi.o h2ni.o

H3S:

gmake -s $(H3SEXE)

$(H3SEXE):$(OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o

$(F77C) -o $(H3SEXE) $(OBJ) dummy_mpi.o h3.o setup3.o surf3.o coord3.o chain3.o

HNIS:

gmake -s $(HNISEXE)

$(HNISEXE):$(OBJ) dummy_mpi.o hni.o

$(F77C) -o $(HNISEXE) $(OBJ) dummy_mpi.o hni.o

HO2S:

gmake -s $(HO2SEXE)

$(HO2SEXE):$(OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o

$(F77C) -o $(HO2SEXE) $(OBJ) dummy_mpi.o ho2.o setup3.o surf3.o coord3.o chain3.o

NH3S:

gmake -s $(NH3SEXE)

$(NH3SEXE):$(OBJ) dummy_mpi.o nh3.o

$(F77C) -o $(NH3SEXE) $(OBJ) dummy_mpi.o nh3.o

OH3S:

gmake -s $(OH3SEXE)

$(OH3SEXE):$(OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o

$(F77C) -o $(OH3SEXE) $(OBJ) dummy_mpi.o oh3.o setup4.o surf4.o coord4.o chain4.o

OHCLS:

gmake -s $(OHCLSEXE)

$(OHCLSEXE):$(OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o

$(F77C) -o $(OHCLSEXE) $(OBJ) dummy_mpi.o ohcl.o setup3.o surf3.o coord3.o chain3.o

Esse é o Makefile parece erro de comando alguém poderia me ajudar?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
não é mostrado o erro na tela ? se sim, coloque o erro como aparece

abraço

Bom dia .

Refiz tudo passo a passo estou mandando o que fiz e o que acontece .

[messias@dav001 src]$ chmod 777 Makefile

[messias@dav001 src]$ ./Makefile

./Makefile: line 1: F77C: command not found

./Makefile: line 2: VERSION: command not found

./Makefile: line 3: VPATH: command not found

./Makefile: line 6: VERSION: command not found

./Makefile: line 6: DUMSEXE: command not found

./Makefile: line 8: VERSION: command not found

./Makefile: line 8: CH5SEXE: command not found

./Makefile: line 9: VERSION: command not found

./Makefile: line 9: CLHBRSEXE: command not found

./Makefile: line 10: VERSION: command not found

./Makefile: line 10: CH4OSEXE: command not found

./Makefile: line 11: VERSION: command not found

./Makefile: line 11: CMCSEXE: command not found

./Makefile: line 12: VERSION: command not found

./Makefile: line 12: CWMCSEXE: command not found

./Makefile: line 13: VERSION: command not found

./Makefile: line 13: NH3SEXE: command not found

./Makefile: line 14: VERSION: command not found

./Makefile: line 14: H2NISEXE: command not found

./Makefile: line 15: VERSION: command not found

./Makefile: line 15: H3SEXE: command not found

./Makefile: line 16: VERSION: command not found

./Makefile: line 16: HNISEXE: command not found

./Makefile: line 17: VERSION: command not found

./Makefile: line 17: OH3SEXE: command not found

./Makefile: line 18: VERSION: command not found

./Makefile: line 18: OHCLSEXE: command not found

./Makefile: line 19: VERSION: command not found

./Makefile: line 19: HO2SEXE: command not found

./Makefile: line 22: .f.o:: command not found

./Makefile: line 23: syntax error near unexpected token `newline'

./Makefile: line 23: ` $(F77C) -c $<'

obrigado pela atenção caso queira posso conseguir o progama para você tentar obrigado e bom dia!

não é mostrado o erro na tela ? se sim, coloque o erro como aparece

abraço

Bom dia .

Refiz tudo passo a passo estou mandando o que fiz e o que acontece .

[messias@dav001 src]$ chmod 777 Makefile

[messias@dav001 src]$ ./Makefile

./Makefile: line 1: F77C: command not found

./Makefile: line 2: VERSION: command not found

./Makefile: line 3: VPATH: command not found

./Makefile: line 6: VERSION: command not found

./Makefile: line 6: DUMSEXE: command not found

./Makefile: line 8: VERSION: command not found

./Makefile: line 8: CH5SEXE: command not found

./Makefile: line 9: VERSION: command not found

./Makefile: line 9: CLHBRSEXE: command not found

./Makefile: line 10: VERSION: command not found

./Makefile: line 10: CH4OSEXE: command not found

./Makefile: line 11: VERSION: command not found

./Makefile: line 11: CMCSEXE: command not found

./Makefile: line 12: VERSION: command not found

./Makefile: line 12: CWMCSEXE: command not found

./Makefile: line 13: VERSION: command not found

./Makefile: line 13: NH3SEXE: command not found

./Makefile: line 14: VERSION: command not found

./Makefile: line 14: H2NISEXE: command not found

./Makefile: line 15: VERSION: command not found

./Makefile: line 15: H3SEXE: command not found

./Makefile: line 16: VERSION: command not found

./Makefile: line 16: HNISEXE: command not found

./Makefile: line 17: VERSION: command not found

./Makefile: line 17: OH3SEXE: command not found

./Makefile: line 18: VERSION: command not found

./Makefile: line 18: OHCLSEXE: command not found

./Makefile: line 19: VERSION: command not found

./Makefile: line 19: HO2SEXE: command not found

./Makefile: line 22: .f.o:: command not found

./Makefile: line 23: syntax error near unexpected token `newline'

./Makefile: line 23: ` $(F77C) -c $<'

obrigado pela atenção caso queira posso conseguir o progama para você tentar obrigado e bom dia!

Devo acresentar que a primeira linha do Makefile esta assim F77C = /usr/bin/g77 -O -fno-automatic na postagen anterior eu tinha mudado ate mais .

Link to comment
Share on other sites

  • 0

command not found

comando não encontrado

syntax error near unexpected token `newline'

erro de sintaxe inesperado símbolo `newline ' ` $(F77C) -c $<'

OBS: Comando não encontrado, refere-se a versão do Makefile ou o proprio F77

reveja a sintaxe dos comandos ou veja a versão compativel

abraço

Link to comment
Share on other sites

  • 0
command not found

comando não encontrado

syntax error near unexpected token `newline'

erro de sintaxe inesperado símbolo `newline ' ` $(F77C) -c $<'

OBS: Comando não encontrado, refere-se a versão do Makefile ou o proprio F77

reveja a sintaxe dos comandos ou veja a versão compativel

abraço

A maquina é 64bits poderia ser isso ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...