Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100113050
Makefile.mingw32-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
Tue, Jan 28, 06:47
Size
1 KB
Mime Type
text/x-makefile
Expires
Thu, Jan 30, 06:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23902667
Attached To
rLAMMPS lammps
Makefile.mingw32-cross
View Options
# library build -*- makefile -*- for qmmm module
# which file will be copied to Makefile.lammps
EXTRAMAKE = Makefile.lammps.empty
# ------ SETTINGS ------
CC = i686-w64-mingw32-gcc
CFLAGS = -O2 -march=i686 -mtune=generic -mfpmath=387 -mpc64 \
-ffast-math -funroll-loops -fstrict-aliasing \
-Wall -W -Wno-uninitialized
ARCHIVE = i686-w64-mingw32-ar
ARCHFLAG = -rscv
SHELL = /bin/sh
# ------ DEFINITIONS ------
DIR = Obj_mingw32/
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