-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (41 loc) · 1.28 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# C Compiler
CC = gcc
# Various machine and compiler specific flags
# Select one set.
# LINUX Optimizing:
CFLAGS = -W -Wall -O3 -msse -msse2 -malign-double -fPIC
# LINUX Debugging:
#CFLAGS = -Wall -W -ansi -pedantic -ggdb -pg -I. -O2 -mpentiumpro -malign-double
# Use the following if we are using DMALLOC
#DMALLOCLINK = -ldmalloc
#CFLAGS += -DUSEDMALLOC
# Note: If you want to use a machine-optimized BLAS, the following
# lines muct be uncommented and corrected.
# You should really test the timings! This may actually
# be slower than the non BLAS version.
# Path to the BLAS libraries
#BLASLIBDIR = /usr/local/lib
# How to link with the PGPLOT libs
#BLASLINK = -L$(BLASLIBDIR) -lblas
# Adjustments to CFLAGS to use BLAS
#CFLAGS += -DUSE_BLAS
# Objects
OBJS = eventdft.o eventdft_cmd.o period.o utils.o stats.o \
dcdflib.o ipmpar.o
# Set the Date
DATE = $(shell date +%d%b%y)
all: eventdft
eventdft: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(BLASLINK) $(DMALLOCLINK) -lm
clig:
clig -d eventdft_cmd.cli
psman:
nroff -man eventdft.1 | a2x -man > eventdft_man.ps
clean:
rm -f *.o *~ *#
tar: squeaky package
squeaky:
rm -f eventdft *.out *.o *~ *.tgz *#
package:
cd ..; tar --exclude CVS -czf eventdft$(DATE).tgz event_DFT
mv ../eventdft$(DATE).tgz .