projects
/
physik
/
posic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
introduced process_neighbours function
[physik/posic.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
28fd2b1
..
4de3dcc
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,34
+1,62
@@
-CC = gcc
+CC = gcc
-4.3
-CFLAGS = -Wall
+CFLAGS = -Wall
-Winline
#CFLAGS += -Wextra -pedantic
#CFLAGS += -Wextra -pedantic
-CFLAGS += -O3
+CFLAGS += -O3
-march=native -msse2 -mfpmath=sse
CFLAGS += -g
#CFLAGS += -ffloat-store
CFLAGS += -g
#CFLAGS += -ffloat-store
+#CFLAGS+= -DPARALLEL -fopenmp
+
CFLAGS += -DALBE
CFLAGS += -DALBE
+CFLAGS += -DALBE_FAST
+#CFLAGS += -DTERSOFF_ORIG
+
#CFLAGS += -DSTATIC_LISTS
#CFLAGS += -DSTATIC_LISTS
+CFLAGS += -DLOWMEM_LISTS
+
#CFLAGS += -DDEBUG
#CFLAGS += -DDEBUG
-
CFLAGS += -DDSTART=400 -DDEND=60
0
+
#CFLAGS += -DDSTART=-1 -DDEND=40 -DDATOM=
0
#CFLAGS += -DVDEBUG
#CFLAGS += -DVDEBUG
-#CFLAGS += -DTERSOFF_ORIG
-LDFLAGS=-lm
+LDFLAGS = -lm
+#LDFLAGS += -lefence
DEPS = moldyn.o random/random.o list/list.o
DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
DEPS += potentials/tersoff.o potentials/albe.o
DEPS = moldyn.o random/random.o list/list.o
DEPS += potentials/lennard_jones.o potentials/harmonic_oscillator.o
DEPS += potentials/tersoff.o potentials/albe.o
+DEPS += potentials/albe_fast.o
+
+SRC = moldyn.c random/random.c list/list.c
+SRC += potentials/lennard_jones.c potentials/harmonic_oscillator.c
+SRC += potentials/tersoff.c potentials/albe.c
+SRC += potentials/albe_fast.c
-all: posic sic fluctuation_calc postproc pair_correlation_calc
+ALL = mdrun sic fluctuation_calc postproc pair_correlation_calc diffusion_calc
+ALL += bond_analyze search_bonds visual_atoms display_atom_data
-
posic: $(DEPS
)
+
all: $(ALL
)
-sic: $(DEPS)
+# main code. using SRC, much more efficient code is produced!
+mdrun: $(SRC)
+#mdrun: $(DEPS)
+
+sic: $(DEPS) config.h
postproc: $(DEPS)
pair_correlation_calc: $(DEPS)
postproc: $(DEPS)
pair_correlation_calc: $(DEPS)
+diffusion_calc: $(DEPS)
+
+bond_analyze: $(DEPS)
+
+search_bonds: $(DEPS)
+
+visual_atoms: $(DEPS)
+
+display_atom_data: $(DEPS)
+
.PHONY:clean
clean:
.PHONY:clean
clean:
- rm -vf
sic postproc fluctuation_calc pair_correlation_calc
*.o */*.o
+ rm -vf
$(ALL)
*.o */*.o