mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 05:22:07 +08:00
e47a2e6e30
old-commit-hash: dd34ccfe28
29 lines
446 B
Makefile
29 lines
446 B
Makefile
CC = clang
|
|
CXX = clang++
|
|
|
|
CPPFLAGS = -Wall -g -fPIC -std=c++11 -O2
|
|
|
|
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) $(CPPFLAGS) -MMD -c $*.cpp
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(DEPS) libfastcluster.so test
|
|
|
|
|
|
-include $(DEPS)
|