-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (23 loc) · 968 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
CC = gcc
RM = rm -f
CFLAGS = -Wall -Wextra -pedantic -std=c11 -g -fPIC
LDFLAGS = -g
LDLIBS = -lpari
SRCS = real_quadratic_orders.c fp_representations.c compact_representations.c twin_smooths.c utility.c stormer.c
OBJS = $(subst .c,.o,$(SRCS))
testing: testing.o $(OBJS)
$(CC) $(LDFLAGS) -o testing testing.o $(OBJS) $(LDLIBS)
shared: $(OBJS)
$(CC) $(LDFLAGS) -shared -o infrastructure.so $(OBJS) $(LDLIBS)
threaded: threaded.o $(OBJS)
$(CC) $(LDFLAGS) -o threaded threaded.o $(OBJS) $(LDLIBS) -lpthread
testing.o: testing.c testing.h
threaded.o: threaded.c
utility.o: utility.c utility.h
real_quadratic_orders.o: real_quadratic_orders.c real_quadratic_orders.h
fp_representations.o: fp_representations.c fp_representations.h
compact_representations.o: compact_representations.c compact_representations.h
twin_smooths.o: twin_smooths.c twin_smooths.h
stormer.o: stormer.c stormer.h
clean:
$(RM) $(OBJS) testing.o testing infrastructure.so threaded.o threaded