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: 6b7fb917d473769a6fc8694d792b949590f8f9df (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
34
35
36
#
# Critical variables are passed recursively (via the environment)
# by the top level Makefile when calling $(MAKE)
#
# If we don't know where to look for boost - it's a no go.
#
ifeq ($(BOOST_LIBRARY),)
  $(error Please run 'make' at the top level only)
endif

VWLIBS = -L ../vowpalwabbit -l vw -l allreduce
STDLIBS = $(BOOST_LIBRARY) $(LIBS)

all: ezexample_predict ezexample_train library_example recommend gd_mf_weights # ezexample_predict_threaded

ezexample_predict: ezexample_predict.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< $(VWLIBS) $(STDLIBS)

ezexample_predict_threaded: ezexample_predict_threaded.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS)  -o $@ $< $(VWLIBS) $(BOOST_PROGRAM_OPTIONS) -l z -l boost_thread

ezexample_train: ezexample_train.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< $(VWLIBS) $(STDLIBS)

library_example: library_example.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< $(VWLIBS) $(STDLIBS)

recommend: recommend.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< $(VWLIBS) $(STDLIBS)

gd_mf_weights: gd_mf_weights.cc ../vowpalwabbit/libvw.a
	$(CXX) -g $(FLAGS) -o $@ $< $(VWLIBS) $(STDLIBS)

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