-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 1.08 KB
/
Makefile
File metadata and controls
41 lines (29 loc) · 1.08 KB
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
## ************************************************************************
## Makefile for the ARC: Automatic Reliability for Compression library.
## COMPILER
CC = gcc
CFLAGS = -O2
## TARGETS
all: arc_lib.o
arc.h: include/arc.h
rm -f src/arc.h ; cp include/arc.h src/. ; chmod 0444 src/arc.h
galois.h: include/galois.h
rm -f src/galois.h ; cp include/galois.h src/. ; chmod 0444 src/galois.h
jerasure.h: include/jerasure.h
rm -f src/jerasure.h ; cp include/jerasure.h src/. ; chmod 0444 src/jerasure.h
reed_sol.h: include/reed_sol.h
rm -f src/reed_sol.h ; cp include/reed_sol.h src/. ; chmod 0444 src/reed_sol.h
galois.o: galois.h
$(CC) -c src/galois.c
jerasure.o: jerasure.h galois.h
$(CC) -c src/jerasure.c
reed_sol.o: reed_sol.h jerasure.h galois.h
$(CC) -c src/reed_sol.c
arc.o: arc.h jerasure.h reed_sol.h galois.h
$(CC) -c src/arc.c -fopenmp
arc_lib.o: arc.o galois.o jerasure.o reed_sol.o
ar -rc lib64/libarc.a arc.o galois.o jerasure.o reed_sol.o
rm arc.o galois.o jerasure.o reed_sol.o
clean:
rm -f src/arc.h src/galois.h src/jerasure.h src/reed_sol.h
rm lib64/libarc.a