Skip to content
Snippets Groups Projects
Commit c8142299 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

make

parent c1eb3cab
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ CXXFLAGS=-Wall -Wno-sign-compare -g3
define stdcpp
@$(call inform,C++,Compiling by stdcpp $<)
$(Q)g++ $(CXXFLAGS) -c -o $@ $< $(LDLIBS)
$(Q)g++ $(CXXFLAGS) -c -o $@ $< $(CXXLIBS)
endef
define stdln
......@@ -29,6 +29,13 @@ visualize.o: $(ROOT)/visualize.cpp $(ROOT)/lib.h
visualize: visualize.o lib.o
$(call stdln)
SDPA_INCLUDE_DIR=../sdpa-c/
include ${SDPA_INCLUDE_DIR}/make.inc
semidef_prog: LDLIBS += ${sdpac_dir}/${sdpac_lib} ${sdpac_all_lib}
semidef_prog: CXXLIBS += -I${sdpac_dir} ${sdpac_all_include}
define standard_algo
......@@ -50,5 +57,8 @@ endef
$(eval $(call standard_algo,greedy))
$(eval $(call standard_algo,maxcut))
$(eval $(call standard_algo,semidef_prog))
$(eval $(call standard_pipe,fix_naive))
$(eval $(call standard_pipe,fix_better))
algorithms=greedy maxcut fix_naive
algorithms=greedy maxcut fix_naive fix_better semidef_prog
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment