forked from lijiext/lammps
44 lines
634 B
Makefile
44 lines
634 B
Makefile
|
# Makefile for serial tools
|
||
|
|
||
|
#
|
||
|
# Targets
|
||
|
#
|
||
|
|
||
|
all:
|
||
|
$(MAKE) binary2txt replicate restart2data chain micelle2d data2xmovie
|
||
|
|
||
|
binary2txt: binary2txt.o
|
||
|
g++ -g binary2txt.o -o binary2txt
|
||
|
|
||
|
replicate: replicate.o
|
||
|
g++ -g replicate.o -o replicate
|
||
|
|
||
|
restart2data: restart2data.o
|
||
|
g++ -g restart2data.o -o restart2data
|
||
|
|
||
|
chain: chain.o
|
||
|
ifort chain.o -o chain
|
||
|
|
||
|
micelle2d: micelle2d.o
|
||
|
ifort micelle2d.o -o micelle2d
|
||
|
|
||
|
data2xmovie: data2xmovie.o
|
||
|
g++ -g data2xmovie.o -o data2xmovie
|
||
|
|
||
|
clean:
|
||
|
rm binary2txt replicate restart2data chain micelle2d data2xmovie
|
||
|
rm *.o
|
||
|
|
||
|
#
|
||
|
# Rules
|
||
|
#
|
||
|
|
||
|
.cpp.o:
|
||
|
g++ -g -c $<
|
||
|
|
||
|
.c.o:
|
||
|
gcc -g -c $<
|
||
|
|
||
|
.f.o:
|
||
|
ifort -O -w -c $<
|