-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
26 lines (20 loc) · 1.36 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
CC= g++
OPT= -O3 -g -I include
SRCS= WindowInfo.cpp WindowsList.cpp GERMLINE_0001.cpp GERMLINE.cpp Share.cpp Chromosome.cpp ChromosomePair.cpp HMIndividualsExtractor.cpp MarkerSet.cpp Individual.cpp Individuals.cpp InputManager.cpp MatchFactory.cpp MatchesBuilder.cpp NucleotideMap.cpp PEDIndividualsExtractor.cpp Match.cpp PolymorphicIndividualsExtractor.cpp SNP.cpp SNPPositionMap.cpp SNPs.cpp
OBJS= WindowInfo.o WindowsList.o GERMLINE_0001.o GERMLINE.o Chromosome.o Share.o ChromosomePair.o HMIndividualsExtractor.o MarkerSet.o Individual.o Individuals.o InputManager.o MatchFactory.o MatchesBuilder.o NucleotideMap.o PEDIndividualsExtractor.o Match.o PolymorphicIndividualsExtractor.o SNP.o SNPPositionMap.o SNPs.o
MAIN= germline
BMATCH= parse_bmatch
all: clean germline bmatch all
bmatch:
$(CC) $(BMATCH).cpp -o $(BMATCH)
$(OBJS): $(SRCS)
$(CC) $(OPT) -c $*.cpp
germline: $(OBJS)
$(CC) $(OPT) -o $(MAIN) $(OBJS)
clean:
-rm -f *.o $(MAIN) $(BMATCH) test/generated.match test/generated.log test/generated.err test/generated.out
test: test_plink
test_plink:
-@rm -f test/generated.match test/generated.log test/generated.err test/generated.out
-@./$(MAIN) -silent -bits 50 -min_m 1 -err_hom 2 -err_het 0 < test/test.run > test/generated.out 2> test/generated.err | echo -e "---\nRunning Test Case\n---"
diff -q -s test/expected.match test/generated.match