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
###############################################################################
# Definitions
###############################################################################
FOLDER_ROOT=..
FOLDER_BUILD=../build
###############################################################################
# Modules
###############################################################################
MODULES=wavefront_align \
wavefront_aligner \
wavefront_attributes \
wavefront_backtrace_buffer \
wavefront_backtrace_offload \
wavefront_backtrace \
wavefront_bialign \
wavefront_bialigner \
wavefront_components \
wavefront_compute_affine \
wavefront_compute_affine2p \
wavefront_compute_edit \
wavefront_compute_linear \
wavefront_compute \
wavefront_debug \
wavefront_display \
wavefront_extend \
wavefront_extend_kernels_avx \
wavefront_extend_kernels \
wavefront_heuristic \
wavefront_pcigar \
wavefront_penalties \
wavefront_sequences \
wavefront_plot \
wavefront_slab \
wavefront_termination \
wavefront_unialign \
wavefront
SRCS=$(addsuffix .c, $(MODULES))
OBJS=$(addprefix $(FOLDER_BUILD)/, $(SRCS:.c=.o))
ifeq ($(BUILD_WFA_PARALLEL),1)
PFLAGS=-DWFA_PARALLEL -fopenmp
endif
#CC_XFLAGS+=-fopt-info-vec-optimized
###############################################################################
# Rules
###############################################################################
all: $(OBJS)
# General building rule
$(FOLDER_BUILD)/%.o : %.c
$(CC) $(CC_FLAGS) $(PFLAGS) -I$(FOLDER_ROOT) -c $< -o $@