-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
43 lines (30 loc) · 1.22 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
VMU931 = vmu931.o
EXAMPLES = vmu931-euler vmu931-read-all vmu931-calibrate vmu931-estimate-bias
CC = gcc
CXX = g++
DEBUG =
CFLAGS = -O2 -Wall -c $(DEBUG)
CXX_FLAGS = -O2 -Wall -c $(DEBUG)
LFLAGS = -O2 -Wall $(DEBUG)
vmu931.o : vmu931.h vmu931.c
$(CC) $(CFLAGS) vmu931.c
all : $(VMU931) $(EXAMPLES)
examples: $(EXAMPLES)
vmu931-euler : vmu931.o vmu931-euler.o
$(CC) $(LFLAGS) vmu931.o vmu931-euler.o -o vmu931-euler
vmu931-euler.o : vmu931.h examples/vmu931-euler.c
$(CC) $(CFLAGS) examples/vmu931-euler.c
vmu931-read-all : vmu931.o vmu931-read-all.o
$(CC) $(LFLAGS) vmu931.o vmu931-read-all.o -o vmu931-read-all
vmu931-read-all.o : vmu931.h examples/vmu931-read-all.c
$(CC) $(CFLAGS) examples/vmu931-read-all.c
vmu931-calibrate : vmu931.o vmu931-calibrate.o
$(CC) $(LFLAGS) vmu931.o vmu931-calibrate.o -o vmu931-calibrate
vmu931-calibrate.o : vmu931.h examples/vmu931-calibrate.c
$(CC) $(CFLAGS) examples/vmu931-calibrate.c
vmu931-estimate-bias : vmu931.o vmu931-estimate-bias.o
$(CC) $(LFLAGS) vmu931.o vmu931-estimate-bias.o -o vmu931-estimate-bias
vmu931-estimate-bias.o : vmu931.h examples/vmu931-estimate-bias.c
$(CC) $(CFLAGS) examples/vmu931-estimate-bias.c
clean:
\rm -f *.o examples/*.o $(VMU931) $(EXAMPLES)