-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
executable file
·59 lines (33 loc) · 925 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
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
55
56
57
CFLAGS= # options for C compiler
FFLAGS =
FCOMPL= f77 # name of Fortran compiler
CCOMPL = gcc -Wall
CPLUSCOMPL = g++
HERE = $(shell pwd)
NAME = pc
OPTM = -g
VPATH = ./
PLATFORM = $(shell uname)
INCLUDE =
CLIBPATH =
LIBS = -lm
ifeq (${PLATFORM},Linux)
PD = -DLINUX
endif
DEFINES = $(PD) -DVERBOSE
SOURCES.c = main.c read_pdb.c read_selection.c utils.c dist_matrix.c clustercounter.c clustering_score.c
AUX = pdbclust.h pdb.h utils.h makefile
SOURCES = $(SOURCES.c) $(SOURCES.F) $(SOURCES.f)
OBJECTS = $(SOURCES.F:.F=.o) $(SOURCES.f:.f=.o) $(SOURCES.c:.c=.o)
$(NAME): $(OBJECTS)
$(CCOMPL) $(FFLAGS) -o $@ $(OBJECTS) $(OPTM) $(LIBS) $(INCLUDE)
.c.o:
$(CCOMPL) $(CFLAGS) -c $(DEFINES) $< $(OPTM) $(INCLUDE)
.F.o:
$(FCOMPL) $(CFLAGS) -c $(DEFINES) $< $(OPTM) $(INCLUDE)
clean:
rm $(OBJECTS)
tar:
tar -cf $(NAME).tar $(SOURCES) $(AUX)
ls:
ls $(SOURCES) $(AUX)