1 # This should work on Linux. Modify as needed for other platforms.
3 BOINC_DIR = /home/frt/server_stable
4 BOINC_API_DIR = $(BOINC_DIR)/api
5 BOINC_LIB_DIR = $(BOINC_DIR)/lib
6 BOINC_SCHED_DIR = $(BOINC_DIR)/sched
7 BOINC_DB_DIR = $(BOINC_DIR)/db
8 BOINC_TOOLS_DIR = $(BOINC_DIR)/tools
9 MYSQL_DIR = /usr/local/include/mysql
10 MYSQL_LIB_DIR = /usr/local/lib/mysql
16 -I$(BOINC_SCHED_DIR) \
19 -I$(BOINC_TOOLS_DIR) \
23 -L$(BOINC_SCHED_DIR) \
25 -L/usr/local/lib/mysql \
28 # the following should be freeglut; use nm to check
29 # you may have to change the paths for your system
36 ln -s `g++ -print-file-name=libstdc++.a`
39 /bin/rm -f $(PROGS) distrrtgen_validator *.o
42 /bin/rm -f $(PROGS) *.o libstdc++.a
45 distrrtgen: index_calculator_workgenerator.o libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_SCHED_DIR)/libsched.a
46 $(CXX) index_calculator_workgenerator.cpp $(CXXFLAGS) -o index_calculator_workgenerator libstdc++.a -pthread -lboinc_api -lsched -lboinc -lmysqlclient -lssl -O3