mirror of https://github.com/hpcaitech/ColossalAI
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.
10 lines
276 B
10 lines
276 B
2 years ago
|
CXXFLAGS += -O3 -Wall -shared -std=c++14 -fPIC -fdiagnostics-color
|
||
|
CPPFLAGS += $(shell python3 -m pybind11 --includes)
|
||
|
LIBNAME = mask
|
||
|
LIBEXT = $(shell python3-config --extension-suffix)
|
||
|
|
||
|
default: $(LIBNAME)$(LIBEXT)
|
||
|
|
||
|
%$(LIBEXT): %.cpp
|
||
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $< -o $@
|