]> git.sesse.net Git - freerainbowtables/blob - BOINC software/BOINC server apps/distrrtgen_workgenerator/Makefile
merged paths
[freerainbowtables] / BOINC software / BOINC server apps / distrrtgen_workgenerator / Makefile
1 # This should work on Linux.  Modify as needed for other platforms.
2
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
11 CXXFLAGS = -g \
12     -DAPP_GRAPHICS \
13     -I$(BOINC_DIR) \
14     -I$(BOINC_LIB_DIR) \
15     -I$(BOINC_API_DIR) \
16     -I$(BOINC_SCHED_DIR) \
17     -I$(BOINC_DB_DIR) \
18     -I$(MYSQL_DIR) \
19     -I$(BOINC_TOOLS_DIR) \
20     -L$(BOINC_API_DIR) \
21     -L$(BOINC_LIB_DIR) \
22     -L$(BOINC_SCHED_DIR) \
23     -L/usr/X11R6/lib \
24     -L/usr/local/lib/mysql \
25     -L.
26
27 # the following should be freeglut; use nm to check
28 # you may have to change the paths for your system
29
30 PROGS = distrrtgen \
31 # uc2_graphics
32 # make this optional so compile doesn't break on systems without OpenGL
33
34 all: $(PROGS)
35
36 libstdc++.a:
37         ln -s `g++ -print-file-name=libstdc++.a`
38
39 clean:
40         /bin/rm -f $(PROGS) *.o
41
42 distclean:
43         /bin/rm -f $(PROGS) *.o libstdc++.a
44
45 distrrtgen: distrrtgen_workgenerator.o libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_SCHED_DIR)/libsched.a 
46         $(CXX) distrrtgen_workgenerator.cpp $(CXXFLAGS) -o distrrtgen_workgenerator libstdc++.a -pthread -lboinc_api -lsched -lboinc -lmysqlclient -lssl -O3