openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
505 B

CC = clang
CXX = clang++
CXXFLAGS = -Wall -g -fPIC -std=c++11 -O2
ifeq ($(ARCH),aarch64)
CXXFLAGS += -mcpu=cortex-a57
endif
OBJS = fastcluster.o test.o
DEPS := $(OBJS:.o=.d)
all: libfastcluster.so
test: libfastcluster.so test.o
$(CXX) -g -L. -lfastcluster -o $@ $+
valgrind: test
valgrind --leak-check=full ./test
libfastcluster.so: fastcluster.o
$(CXX) -g -shared -o $@ $+
%.o: %.cpp
$(CXX) $(CXXFLAGS) -MMD -c $*.cpp
clean:
rm -f $(OBJS) $(DEPS) libfastcluster.so test
-include $(DEPS)