You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
348 B
Makefile
16 lines
348 B
Makefile
src = $(wildcard *.cpp)
|
|
obj = $(src:.c=.o)
|
|
|
|
LDFLAGS = -lgsl -lgslcblas
|
|
CFLAGS = -O3 -shared -std=c++11 -fPIC -Wall $(PYBIND_INCLUDES)
|
|
|
|
all: $(obj)
|
|
g++ $(CFLAGS) -o localization.so $^ $(LDFLAGS)
|
|
|
|
debug: $(filter-out lib_main.cpp,$(obj))
|
|
g++ -O0 -std=c++14 -Wall -g -o debug.bin debug_main.cc $^ $(LDFLAGS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(obj) all
|