forked from manaspaldhe12/hubo-read-trajectory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 775 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
default: all
CFLAGS := -I./include -g --std=gnu99
CXXFLAGS := -I./include -g
CC := gcc
CXX := g++
BINARIES := hubo-read-trajectory hubo-read-func
all : $(BINARIES)
LIBS := -lrt -lm -lc -lach
hubo-read-trajectory: src/hubo-read-trajectory.c
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
hubo-read-func: src/hubo-read-trajectory-as-func.c
$(CC) $(CFLAGS) -c -o [email protected] $< $(LIBS)
ar rcs libhubo-func.a [email protected]
gcc -c -fPIC src/hubo-read-trajectory-as-func.c -o hubo-read-func.o
INSTALL = /usr/local/bin
clean:
rm -f $(BINARIES) src/*.o
.PHONY: install
install: all
cp ./include/hubo-read-trajectory-as-func.h /usr/local/lib/hubo-read-trajectory-as-func.h
cp ./include/hubo-ref-filter.h /usr/local/include/hubo-ref-filter.h
cp ./hubo-read-func /usr/local/bin/hubo-read-func