-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (47 loc) · 1.76 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#Set these variables if needed
C = gcc
CC = g++
FLAGS = -O3 -std=c++11 -D_NOSQLITE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DGCC
#Paths to supporting software
MSTOOLKITPATH = ../MSToolkit
HARDKLORPATH = ../Hardklor
PEPXMLPATH = ../NeoPepXMLParser
#Do not touch these variables
#LIBPATH = -L$(MSTOOLKITPATH) -L$(HARDKLORPATH) -L$(PEPXMLPATH)
LIBS = -lpthread -ldl
LIBSTATIC = $(MSTOOLKITPATH)/libmstoolkitlite.a $(HARDKLORPATH)/libhardklor.a $(PEPXMLPATH)/libneopepxmlparser.a
INCLUDE = -I$(MSTOOLKITPATH)/include -I$(HARDKLORPATH) -I$(PEPXMLPATH)
#Do not touch these variables
MAGNUM = MagnumManager.o MParams.o MAnalysis.o MData.o MDB.o MLog.o MPrecursor.o MSpectrum.o MIons.o MIonSet.o MTopPeps.o Threading.o CometDecoys.o
#Make statements
magnum : Magnum.cpp $(MAGNUM)
$(CC) $(FLAGS) $(INCLUDE) $(MAGNUM) $(LIBSTATIC) Magnum.cpp $(LIBS) -o magnum
clean:
rm *.o magnum
#Magnum objects
MParams.o : MParams.cpp
$(CC) $(FLAGS) $(INCLUDE) MParams.cpp -c
MAnalysis.o : MAnalysis.cpp
$(CC) $(FLAGS) $(INCLUDE) MAnalysis.cpp -c
MData.o : MData.cpp
$(CC) $(FLAGS) $(INCLUDE) MData.cpp -c
MDB.o : MDB.cpp
$(CC) $(FLAGS) $(INCLUDE) MDB.cpp -c
MLog.o : MLog.cpp
$(CC) $(FLAGS) $(INCLUDE) MLog.cpp -c
MagnumManager.o : MagnumManager.cpp
$(CC) $(FLAGS) $(INCLUDE) MagnumManager.cpp -c
MPrecursor.o : MPrecursor.cpp
$(CC) $(FLAGS) $(INCLUDE) MPrecursor.cpp -c
MSpectrum.o : MSpectrum.cpp
$(CC) $(FLAGS) $(INCLUDE) MSpectrum.cpp -c
MIons.o : MIons.cpp
$(CC) $(FLAGS) $(INCLUDE) MIons.cpp -c
MIonSet.o : MIonSet.cpp
$(CC) $(FLAGS) $(INCLUDE) MIonSet.cpp -c
MTopPeps.o : MTopPeps.cpp
$(CC) $(FLAGS) $(INCLUDE) MTopPeps.cpp -c
Threading.o : Threading.cpp
$(CC) $(FLAGS) $(INCLUDE) Threading.cpp -c
CometDecoys.o : CometDecoys.cpp
$(CC) $(FLAGS) $(INCLUDE) CometDecoys.cpp -c