-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (53 loc) · 1.41 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
PREFIX=/usr/local/bin
CC=cc
# Flags I want the user to be able to overwrite
CFLAGS=\
-DDELINSSNP
# Flags I do not want the user to overwrite
CFLAGS+=\
-Wall\
--std=c89\
-static\
-O3\
-Wno-unused-function
# -Wno-unused-function is to supress the warnings for
# some static functions I have
# These are here for the user to overwrite
#CFLAGS=-DBLANK
DEBUGFLAGS=\
-Wall\
--std=c89\
-static\
-O0\
-ggdb\
-Wno-unused-function\
-DDELINSSNP\
-DNOSEQCNVT
all:
$(CC) $(CFLAGS) alnSeq.c -o alnSeq
python:
CC=$(CC) make -C pythonPkg/ python;
pythonlocal:
CC=$(CC) make -C pythonPkg/ pythonlocal;
debug:
$(CC) $(DEBUGFLAGS) alnSeq.c -o debugAlnSeq.o
gdb -x debugCMDs.txt debugAlnSeq.o
# edit debugCMDs.txt to change the gdb commands
# These settings are here for quick compiling
clean:
rm alnSeqDebug || printf ""; # Only thing to clean up
rm alnSeqalnSeqHirschByte || printf "";
rm alnSeqHirschTwoBit || printf "";
rm alnSeqOFast || printf "";
rm alnSeqO3 || printf "";
rm alnSeqO2 || printf "";
rm alnSeqO0 || printf "";
rm alnSeq*.core || printf "";
rm alnSeqByte || printf "";
rm alnSeqTwoBit || printf "";
rm alnSeqFast || printf "";
rm alnSeqMid || printf "";
# || printf ""; is so it does not error out
install:
mv alnSeq $(PREFIX) || printf "Unable to install alnSeq at %s\n Change this with make PREFIX=/path/to/install install\n" $(PREFIX) && exit;
chmod a+x $(PREFIX)/alnSeq;