-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
29 lines (25 loc) · 814 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Makefile for XTC analysis
#
# possible DEFINES are: -DDEBUG (for extra checks and extra output)
# -DXTC (if xdrf/xtc routines are available)
# -DNOT32 (if OS is not 32 bit)
SHELL = /bin/sh
CC = g++
RM = rm
INCLUDES = -I/usr/include/xdrfile -I/use/include -I/usr/lib64
# INCLUDES = -I/usr/local/include/xdrfile -I/usr/local/lib64
LIBS = -lm -lfftw3
XTCLIB = -lxdrfile
OPTFLAGS =
DEFINES = -DCPLUSPLUS
CFLAGS = $(INCLUDES) $(LIBS) $(XTCLIB) $(OPTFLAGS) $(DEFINES)
mainfile = main.cpp
distobj = sim_io.cpp grid.cpp random.cpp sim_libs.cpp sim_run.cpp \
sim_field.cpp \
sim_surface93.cpp \
sim_harmonicpin.cpp \
sim_samsurface.cpp
interface: $(distobj)
$(CC) $(CFLAGS) $(mainfile) $(distobj) -o makewaves
clean:
$(RM) makewaves