-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 1.19 KB
/
Makefile
File metadata and controls
47 lines (36 loc) · 1.19 KB
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
#Compiler
CC=g++ -std=c++11 -O3 -Wall
all : directories sharedobjects executables
.PHONY : all
directories: bin build
.PHONY: directories
bin:
mkdir -p bin
build:
mkdir -p build
sharedobjects : build/sequence.o build/walk.o build/resample.o
.PHONY : sharedobjects
executables : bin/seres-resample bin/seres-translate
.PHONY : executables
#Link the executables
translate_objects = build/seres-translate.o build/sequence.o build/walk.o build/resample.o
bin/seres-translate : $(translate_objects)
$(CC) $(translate_objects) -o $@
resample_objects = build/seres-resample.o build/sequence.o build/walk.o build/resample.o
bin/seres-resample : $(resample_objects)
$(CC) $(resample_objects) -o $@
#Object files for executables
build/seres-resample.o : src/seres-resample.cpp
$(CC) -c src/seres-resample.cpp -o $@
build/seres-translate.o : src/seres-translate.cpp
$(CC) -c src/seres-translate.cpp -o $@
#Shared object files
build/sequence.o : src/sequence.cpp src/sequence.hpp
$(CC) -c src/sequence.cpp -o $@
build/walk.o : src/walk.cpp src/walk.hpp
$(CC) -c src/walk.cpp -o $@
build/resample.o : src/resample.cpp src/resample.hpp
$(CC) -c src/resample.cpp -o $@
.PHONY : clean
clean :
rm bin/* build/*