Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96613991
Makefile.mingw64-cross
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
Sat, Dec 28, 22:28
Size
1 KB
Mime Type
text/x-makefile
Expires
Mon, Dec 30, 22:28 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
23197852
Attached To
rLAMMPS lammps
Makefile.mingw64-cross
View Options
# library build -*- makefile -*- for qmmm module
# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.empty
# ------ SETTINGS ------
CC = x86_64-w64-mingw32-gcc
CFLAGS = -O2 -march=core2 -mtune=core2 -mpc64 -msse2 \
-ffast-math -funroll-loops -fstrict-aliasing \
-Wall -W -Wno-uninitialized
ARCHIVE = x86_64-w64-mingw32-ar
ARCHFLAG = -rscv
SHELL = /bin/sh
# ------ DEFINITIONS ------
DIR = Obj_mingw64/
SRC = libqmmm.c
LIB = $(DIR)libqmmm.a
OBJ = $(SRC:%.c=$(DIR)%.o)
# ------ MAKE PROCEDURE ------
default: $(DIR) $(LIB) $(EXE) Makefile.lammps
$(DIR):
mkdir $(DIR)
Makefile.lammps:
@cp $(EXTRAMAKE) Makefile.lammps
$(LIB): $(DIR) $(OBJ)
$(ARCHIVE) $(ARFLAGS) $(LIB) $(OBJ)
@cp $(EXTRAMAKE) Makefile.lammps
# ------ MAKE FLAGS ------
.SUFFIXES:
.SUFFIXES: .c .o
.PHONY: default clean
# ------ COMPILE RULES ------
$(DIR)%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
# ------ DEPENDENCIES ------
#
$(DIR)libqmmm.o: libqmmm.c libqmmm.h
# ------ CLEAN ------
clean:
-rm $(DIR)*.o *~ $(LIB)
-rmdir $(DIR)
Event Timeline
Log In to Comment