-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (22 loc) · 950 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
27
28
29
30
31
CC = gcc
# Win 32
CFLAGS = -m32 -g -w -Wall -Wextra -Wconversion -pedantic -ansi
# Raspi
# CFLAGS = -g -w -Wall -Wextra -Wconversion -pedantic -ansi -fsanitize=address -static-libasan
all: test_karatsuba test_bisect test_merge test_uf
test_karatsuba: test_karatsuba.o
$(CC) $(CFLAGS) -o test_karatsuba test_karatsuba.o
test_karatsuba.o: tests/test_karatsuba.c sh_karatsuba.h
$(CC) -c $(CFLAGS) -o test_karatsuba.o -I. tests/test_karatsuba.c
test_bisect: test_bisect.o
$(CC) $(CFLAGS) -o test_bisect test_bisect.o
test_bisect.o: tests/test_bisect.c sh_bisect.h
$(CC) -c $(CFLAGS) -o test_bisect.o -I. tests/test_bisect.c
test_merge: test_merge.o
$(CC) $(CFLAGS) -o test_merge test_merge.o
test_merge.o: tests/test_merge.c sh_merge.h
$(CC) -c $(CFLAGS) -o test_merge.o -I. tests/test_merge.c
test_uf: test_uf.o
$(CC) $(CFLAGS) -o test_uf test_uf.o
test_uf.o: tests/test_uf.c sh_uf.h
$(CC) -c $(CFLAGS) -o test_uf.o -I. tests/test_uf.c