-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
26 lines (21 loc) · 869 Bytes
/
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
###############################################################################
# Definitions
###############################################################################
FOLDER_ROOT=..
FOLDER_BUILD=../build
###############################################################################
# Modules
###############################################################################
MODULES=benchmark_edit \
benchmark_gap_affine \
benchmark_gap_lineal \
benchmark_utils
SRCS=$(addsuffix .c, $(MODULES))
OBJS=$(addprefix $(FOLDER_BUILD)/, $(SRCS:.c=.o))
###############################################################################
# Rules
###############################################################################
all: $(OBJS)
# General building rule
$(FOLDER_BUILD)/%.o : %.c
$(CC) $(CC_FLAGS) -I$(FOLDER_ROOT) -c $< -o $@