-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (40 loc) · 2.23 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
CC=cc -g -W -Wall -Werror -pedantic -std=c99 -Icom.io7m.ieee754b16.core/src/main/c
all:\
target/obj\
target/obj/ieee754b16.a\
target/obj/test
target/obj:
mkdir -p target/obj
target/obj/convert.o: com.io7m.ieee754b16.core/src/main/c/convert.c
${CC} -c -o target/obj/convert.o com.io7m.ieee754b16.core/src/main/c/convert.c
target/obj/mk-exponents: com.io7m.ieee754b16.core/src/main/c/mk-exponents.c
${CC} -o target/obj/mk-exponents com.io7m.ieee754b16.core/src/main/c/mk-exponents.c
target/obj/mk-offset: com.io7m.ieee754b16.core/src/main/c/mk-offset.c
${CC} -o target/obj/mk-offset com.io7m.ieee754b16.core/src/main/c/mk-offset.c
target/obj/mk-shiftbase: com.io7m.ieee754b16.core/src/main/c/mk-shiftbase.c
${CC} -o target/obj/mk-shiftbase com.io7m.ieee754b16.core/src/main/c/mk-shiftbase.c
target/obj/mk-mantissas: com.io7m.ieee754b16.core/src/main/c/mk-mantissas.c
${CC} -o target/obj/mk-mantissas com.io7m.ieee754b16.core/src/main/c/mk-mantissas.c
target/obj/exponents.c: target/obj/mk-exponents
target/obj/mk-exponents c > target/obj/exponents.c
target/obj/exponents.o: target/obj/exponents.c
${CC} -c -o target/obj/exponents.o target/obj/exponents.c
target/obj/mantissas.c: target/obj/mk-mantissas
target/obj/mk-mantissas c > target/obj/mantissas.c
target/obj/mantissas.o: target/obj/mantissas.c
${CC} -c -o target/obj/mantissas.o target/obj/mantissas.c
target/obj/shiftbase.c: target/obj/mk-shiftbase
target/obj/mk-shiftbase c > target/obj/shiftbase.c
target/obj/shiftbase.o: target/obj/shiftbase.c
${CC} -c -o target/obj/shiftbase.o target/obj/shiftbase.c
target/obj/offset.c: target/obj/mk-offset
target/obj/mk-offset c > target/obj/offset.c
target/obj/offset.o: target/obj/offset.c
${CC} -c -o target/obj/offset.o target/obj/offset.c
target/obj/ieee754b16.a: target/obj/offset.o target/obj/shiftbase.o target/obj/mantissas.o target/obj/exponents.o target/obj/convert.o
ar rc target/obj/ieee754b16.a target/obj/offset.o target/obj/shiftbase.o target/obj/mantissas.o target/obj/exponents.o target/obj/convert.o
ranlib target/obj/ieee754b16.a
target/obj/test: target/obj/ieee754b16.a com.io7m.ieee754b16.core/src/main/c/test.c
${CC} -o target/obj/test com.io7m.ieee754b16.core/src/main/c/test.c target/obj/ieee754b16.a
clean:
rm -rf target/obj