Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « library - github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a8a24b7ca6a67c849e10188b5c65dfbe9d42663f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
BOOST_PROGRAM_OPTIONS = boost_program_options
ifeq ($(UNAME), FreeBSD)
  BOOST_PROGRAM_OPTIONS = boost_program_options
endif
ifeq "CYGWIN" "$(findstring CYGWIN,$(UNAME))"
  BOOST_PROGRAM_OPTIONS = boost_program_options-mt
endif
ifeq ($(UNAME), Darwin)
  BOOST_PROGRAM_OPTIONS = boost_program_options-mt
endif

all: ezexample_predict ezexample_train library_example recommend gd_mf_weights

ezexample_predict: ezexample_predict.cc ../vowpalwabbit/libvw.a ezexample.h
	$(CXX) -g $(FLAGS) -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -L$(BOOST_LIBRARY) -l $(BOOST_PROGRAM_OPTIONS) -l z -l pthread

ezexample_predict_threaded: ezexample_predict_threaded.cc ../vowpalwabbit/libvw.a ezexample.h
	$(CXX) -g $(FLAGS)  -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -l $(BOOST_PROGRAM_OPTIONS) -l z -l boost_thread

ezexample_train: ezexample_train.cc ../vowpalwabbit/libvw.a ezexample.h
	$(CXX) -g $(FLAGS) -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -L$(BOOST_LIBRARY) -l $(BOOST_PROGRAM_OPTIONS) -l z -l pthread

library_example: library_example.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -L$(BOOST_LIBRARY) -l $(BOOST_PROGRAM_OPTIONS) -l z -l pthread

recommend: recommend.cc ../vowpalwabbit/libvw.a ezexample.h
	$(CXX) -g $(FLAGS) -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -L$(BOOST_LIBRARY) -l $(BOOST_PROGRAM_OPTIONS) -l z -l pthread

gd_mf_weights: gd_mf_weights.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< -L ../vowpalwabbit -l vw -l allreduce -L$(BOOST_LIBRARY) -l $(BOOST_PROGRAM_OPTIONS) -l z -l pthread

clean:
	rm -f *.o ezexample_predict ezexample_train library_example recommend ezexample_predict_threaded