Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96522266
Makefile.g++
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 27, 13:50
Size
850 B
Mime Type
text/x-makefile
Expires
Sun, Dec 29, 13:50 (2 d)
Engine
blob
Format
Raw Data
Handle
23197661
Attached To
rLAMMPS lammps
Makefile.g++
View Options
# library build -*- makefile -*- for qmmm module
# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.empty
# ------ SETTINGS ------
CC = gcc
CFLAGS = -O2 -mpc64 -march=native -funroll-loops -g -Wall
ARCHIVE = ar
ARCHFLAG = -rscv
SHELL = /bin/sh
# ------ DEFINITIONS ------
DIR =
SRC = $(DIR)libqmmm.c
LIB = libqmmm.a
OBJ = $(SRC:%.c=$(DIR)%.o)
# ------ MAKE PROCEDURE ------
default: $(LIB) $(EXE) Makefile.lammps
Makefile.lammps:
@cp $(EXTRAMAKE) Makefile.lammps
$(LIB): $(OBJ)
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
@cp $(EXTRAMAKE) Makefile.lammps
# ------ MAKE FLAGS ------
.SUFFIXES:
.SUFFIXES: .c .o
.PHONY: default clean
# ------ COMPILE RULES ------
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
# ------ DEPENDENCIES ------
#
libqmmm.o: libqmmm.c libqmmm.h
# ------ CLEAN ------
clean:
-rm *.o *~ $(LIB)
Event Timeline
Log In to Comment