#
#
#

VERSION="2.0.3"

TARGETS=



all: $(TARGETS)

install: $(TARGETS)



uninstall:

neighborlist.o: neighborlist.cc
	g++ -Wall -O3 -ffast-math -funroll-all-loops -finline-functions -std=gnu++98 -I.. -c neighborlist.cc -o neighborlist.o

neighborlist: neighborlist.o
	g++ -dynamiclib -o neighborlist neighborlist.o ../liblpmd.so -ldl -lm

linkedcell.o: linkedcell.cc
	g++ -Wall -O3 -ffast-math -funroll-all-loops -finline-functions -std=gnu++98 -I.. -c linkedcell.cc -o linkedcell.o

linkedcell: linkedcell.o
	g++ -dynamiclib -o linkedcell linkedcell.o ../liblpmd.so -ldl -lm

nopluginmd.o: nopluginmd.cc
	g++ -Wall -O3 -ffast-math -funroll-all-loops -finline-functions -std=gnu++98 -I.. -c nopluginmd.cc -o nopluginmd.o

nopluginmd: nopluginmd.o
	g++ -dynamiclib -o nopluginmd nopluginmd.o ../liblpmd.so -ldl -lm

simplemd.o: simplemd.cc
	g++ -Wall -O3 -ffast-math -funroll-all-loops -finline-functions -std=gnu++98 -I.. -c simplemd.cc -o simplemd.o

simplemd: simplemd.o
	g++ -dynamiclib -o simplemd simplemd.o ../liblpmd.so -ldl -lm


.PHONY: check clean

check: neighborlist linkedcell nopluginmd simplemd
	- ./neighborlist
	- ./linkedcell
	- ./nopluginmd
	- ./simplemd

clean: 
	rm -f $(TARGETS) neighborlist.o linkedcell.o nopluginmd.o simplemd.o neighborlist linkedcell nopluginmd simplemd

