Commit f3850da9 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

clean up makefiles provide "serial" and "mpi" targets for atc and awpmd

parent e7d9aabc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
# library build -*- makefile -*-
SHELL = /bin/sh

# which file will be copied to Makefile.lammps
@@ -5,6 +6,7 @@ SHELL = /bin/sh
EXTRAMAKE = Makefile.lammps.installed

# ------ FILES ------

SRC = $(wildcard *.cpp)
INC = $(wildcard *.h)

@@ -47,5 +49,9 @@ DEPENDS = $(OBJ:.o=.d)

# ------ CLEAN ------

.PHONY: clean lib

clean:
	-rm *.o *.d *~ $(LIB)

sinclude $(DEPENDS)

lib/atc/Makefile.lammps

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
# Settings that the LAMMPS build will import when this package library is used

user-atc_SYSINC =
user-atc_SYSLIB = -lblas -llapack
user-atc_SYSPATH =

lib/atc/Makefile.mingw32-cross

deleted100644 → 0
+0 −67
Original line number Diff line number Diff line
# library build -*- makefile -*-
SHELL = /bin/sh

# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.linalg

# ------ FILES ------

SRC = $(wildcard *.cpp)
INC = $(wildcard *.h)

# ------ DEFINITIONS ------

DIR = Obj_mingw32/
LIB = $(DIR)libatc.a
OBJ = $(SRC:%.cpp=$(DIR)%.o)

# ------ SETTINGS ------

# include any MPI settings needed for the ATC library to build with
# the same MPI library that LAMMPS is built with

CC =		i686-w64-mingw32-g++
CCFLAGS =	-I../../src -I../../src/STUBS -DMPICH_IGNORE_CXX_SEEK	\
		-O3 -march=i686 -mtune=generic -mfpmath=387 -mpc64	\
                -ffast-math -funroll-loops -fstrict-aliasing 	\
		-DLAMMPS_SMALLSMALL -Wno-uninitialized
ARCHIVE =	i686-w64-mingw32-ar
ARCHFLAG =	-rcs
DEPFLAGS =      -M
LINK =         	$(CC)
LINKFLAGS =	-O
USRLIB =
SYSLIB =

# ------ MAKE PROCEDURE ------

default: $(DIR) $(LIB) Makefile.lammps

$(DIR):
	mkdir $(DIR)

Makefile.lammps:
	@cp $(EXTRAMAKE) Makefile.lammps

$(LIB): $(OBJ)
	$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
	@cp $(EXTRAMAKE) Makefile.lammps

# ------ COMPILE RULES ------

$(DIR)%.o:%.cpp
	$(CC) $(CCFLAGS) -c $< -o $@
$(DIR)%.d:%.cpp
	$(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@		

# ------ DEPENDENCIES ------

DEPENDS = $(OBJ:.o=.d)

# ------ CLEAN ------

clean:
	-rm $(DIR)*.o $(DIR)*.d *~ $(LIB)

$(DEPENDS) : $(DIR)
sinclude $(DEPENDS)
+0 −68
Original line number Diff line number Diff line
# library build -*- makefile -*-
SHELL = /bin/sh

# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.linalg

# ------ FILES ------

SRC = $(wildcard *.cpp)
INC = $(wildcard *.h)

# ------ DEFINITIONS ------

DIR = Obj_mingw32-mpi/
LIB = $(DIR)libatc.a
OBJ = $(SRC:%.cpp=$(DIR)%.o)

# ------ SETTINGS ------

# include any MPI settings needed for the ATC library to build with
# the same MPI library that LAMMPS is built with

CC =		i686-w64-mingw32-g++
CCFLAGS =	-I../../tools/mingw-cross/mpich2-win32/include/		\
		-I../../src -DMPICH_IGNORE_CXX_SEEK	\
		-O3 -march=i686 -mtune=generic -mfpmath=387 -mpc64	\
                -ffast-math -funroll-loops -fstrict-aliasing 	\
		-DLAMMPS_SMALLSMALL -Wno-uninitialized
ARCHIVE =	i686-w64-mingw32-ar
ARCHFLAG =	-rcs
DEPFLAGS =      -M
LINK =         	$(CC)
LINKFLAGS =	-O
USRLIB =
SYSLIB =

# ------ MAKE PROCEDURE ------

default: $(DIR) $(LIB) Makefile.lammps

$(DIR):
	mkdir $(DIR)

Makefile.lammps:
	@cp $(EXTRAMAKE) Makefile.lammps

$(LIB): $(OBJ)
	$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
	@cp $(EXTRAMAKE) Makefile.lammps

# ------ COMPILE RULES ------

$(DIR)%.o:%.cpp
	$(CC) $(CCFLAGS) -c $< -o $@
$(DIR)%.d:%.cpp
	$(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@		

# ------ DEPENDENCIES ------

DEPENDS = $(OBJ:.o=.d)

# ------ CLEAN ------

clean:
	-rm $(DIR)*.o $(DIR)*.d *~ $(LIB)

$(DEPENDS) : $(DIR)
sinclude $(DEPENDS)

lib/atc/Makefile.mingw64-cross

deleted100644 → 0
+0 −67
Original line number Diff line number Diff line
# library build -*- makefile -*-
SHELL = /bin/sh

# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.linalg

# ------ FILES ------

SRC = $(wildcard *.cpp)
INC = $(wildcard *.h)

# ------ DEFINITIONS ------

DIR = Obj_mingw64/
LIB = $(DIR)libatc.a
OBJ = $(SRC:%.cpp=$(DIR)%.o)

# ------ SETTINGS ------

# include any MPI settings needed for the ATC library to build with
# the same MPI library that LAMMPS is built with

CC =		  x86_64-w64-mingw32-g++
CCFLAGS =	-I../../src -I../../src/STUBS -DMPICH_IGNORE_CXX_SEEK	\
		-O3 -march=core2 -mtune=core2 -mpc64 -msse2    \
                -ffast-math -funroll-loops -fstrict-aliasing		\
		-DLAMMPS_SMALLBIG -Wno-uninitialized
ARCHIVE =	x86_64-w64-mingw32-ar
ARCHFLAG =	-rcs
DEPFLAGS =      -M
LINK =         	$(CC)
LINKFLAGS =	-O
USRLIB =
SYSLIB =

# ------ MAKE PROCEDURE ------

default: $(DIR) $(LIB) Makefile.lammps

$(DIR):
	mkdir $(DIR)

Makefile.lammps:
	@cp $(EXTRAMAKE) Makefile.lammps

$(LIB): $(OBJ)
	$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
	@cp $(EXTRAMAKE) Makefile.lammps

# ------ COMPILE RULES ------

$(DIR)%.o:%.cpp
	$(CC) $(CCFLAGS) -c $< -o $@
$(DIR)%.d:%.cpp
	$(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@		

# ------ DEPENDENCIES ------

DEPENDS = $(OBJ:.o=.d)

# ------ CLEAN ------

clean:
	-rm $(DIR)*.o $(DIR)*.d *~ $(LIB)

$(DEPENDS) : $(DIR)
sinclude $(DEPENDS)
Loading