-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 673 Bytes
/
Makefile
File metadata and controls
34 lines (23 loc) · 673 Bytes
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
# C-compiler settings
CC = gcc -std=c99 -g -ggdb3
# Flags and other libraries
CFLAGS += -Wall -Wextra -pedantic -pthread -O3
# Header files
DEPS =
# common .o object files
OBJ =
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
select_pos: $(OBJ) select_pos.o
$(CC) -o $@.out $^ $(CFLAGS)
select_bit: $(OBJ) select_bit.o
$(CC) -o $@.out $^ $(CFLAGS)
select_pos_2way: $(OBJ) select_pos_2way.o
$(CC) -o $@.out $^ $(CFLAGS)
select_pos_3way: $(OBJ) select_pos_3way.o
$(CC) -o $@.out $^ $(CFLAGS)
select_pos_kway: $(OBJ) select_pos_kway.o
$(CC) -o $@.out $^ $(CFLAGS)
all: select_pos select_pos_2way select_pos_3way select_pos_kway select_bit
clean:
rm *.out *.o