-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (26 loc) · 700 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
CC = g++
CFLAGS = -O2 -I.
.SUFFIXES: .C .cpp
OBJECTS = lib/PQP.o \
lib/BV.o \
lib/Build.o \
lib/TriDist.o
CLEAN = $(OBJECTS) lib/libPQP.a include/*.h
library: $(OBJECTS)
/bin/rm -f lib/libPQP.a
ar ruv lib/libPQP.a $(OBJECTS)
cp src/PQP.h include/
cp src/PQP_Compile.h include/
cp src/PQP_Internal.h include/
cp src/BV.h include/
cp src/Tri.h include/
lib/BV.o: src/BV.cpp
$(CC) $(CFLAGS) -c src/BV.cpp -o lib/BV.o
lib/PQP.o: src/PQP.cpp
$(CC) $(CFLAGS) -c src/PQP.cpp -o lib/PQP.o
lib/Build.o: src/Build.cpp
$(CC) $(CFLAGS) -c src/Build.cpp -o lib/Build.o
lib/TriDist.o: src/TriDist.cpp
$(CC) $(CFLAGS) -c src/TriDist.cpp -o lib/TriDist.o
clean:
/bin/rm -f $(CLEAN)