-
Notifications
You must be signed in to change notification settings - Fork 9
/
makefile
40 lines (28 loc) · 938 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
32
33
34
35
36
37
38
39
40
CC = gcc
CPP = g++
AR = ar
CFLAGS = -std=c99 -O2
CPPFLAGS = -std=c++98 -O2
CLINK = -static -lm
CPPLINK = -static
yins_bin: main.o yinsapp.o libyins.a
$(CC) main.o yinsapp.o -o yins_bin -L. -lyins $(CLINK)
main.o: main.c yins_core/ins.h
$(CC) $(CFLAGS) -c main.c -o main.o
yinsapp.o: yinsapp.c yinsapp.h
$(CC) $(CFLAGS) -c yinsapp.c -o yinsapp.o
static: libyins.a
libyins.a: ins.o inscmn.o insio.o inskf.o
$(AR) -r libyins.a ins.o inscmn.o insio.o inskf.o
ins.o: yins_core/ins.c yins_core/ins.h
$(CC) $(CFLAGS) -c yins_core/ins.c -o ins.o
inscmn.o: yins_core/inscmn.c yins_core/ins.h
$(CC) $(CFLAGS) -c yins_core/inscmn.c -o inscmn.o
insio.o: yins_core/insio.c yins_core/ins.h
$(CC) $(CFLAGS) -c yins_core/insio.c -o insio.o
inskf.o: yins_core/inskf.c yins_core/ins.h
$(CC) $(CFLAGS) -c yins_core/inskf.c -o inskf.o
dist-clean: clean
rm libyins.a yins_bin
clean:
rm ins.o inscmn.o insio.o inskf.o main.o yinsapp.o