-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (34 loc) · 1.21 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
CFLAGS += -Wall -Wextra -I/usr/include/ -Icore/ `pkg-config --cflags gsl`
LDFLAGS += `pkg-config --static --libs gsl`
coreB:
gcc -c $(CFLAGS) core/*.c
coreSharedObject:
rm main.o
gcc -fPIC -c $(CFLAGS) core/*.c
gcc -shared *.o -o libustatistics.so
# cp libmfsl.so /opt/lib -v
mean: clean coreB
gcc -c $(CFLAGS) standardExamplesUstatistics/mean.c -o mean.o
gcc *.o $(LDFLAGS) -o mean
variance: clean coreB
gcc -c $(CFLAGS) standardExamplesUstatistics/variance.c -o variance.o
gcc *.o $(LDFLAGS) -o variance
randomGaussianB:
gcc -c $(CFLAGS) randomGaussianExample/main.c -o randomGaussian.o
concreteDatasetExampleB:
gcc -c $(CFLAGS) concreteDatasetExample/main.c -o concreteDatasetExample.o
randomGaussian: coreB randomGaussianB
gcc *.o $(LDFLAGS) -o randomGaussianE
concreteDatasetExample: coreB concreteDatasetExampleB
gcc *.o $(LDFLAGS) -o concreteDatasetExampleE
cp concreteDatasetExample/*.dat . -iv
concreteDatasetWithSharedObject:
gcc -c $(CFLAGS) concreteDatasetExample/*.c
gcc main.o -Wl,-rpath,. -L. -lmfsl $(LDFLAGS) -o sampleAppWithSharedObject
cp sample_app/resources/bglWires.sqlite . -v
clean:
rm -f *.o
rm -f randomGaussianE
rm -f concreteDatasetExampleE
rm -f mean
rm -f variance