]> git.sesse.net Git - freerainbowtables/blob - BOINC software/BOINC client apps/distrrtgen/Makefile
a9db1c73e70fec8b608a06a12801faf41951e6a2
[freerainbowtables] / BOINC software / BOINC client apps / distrrtgen / Makefile
1 # This should work on Linux.  Modify as needed for other platforms.
2
3 BOINC_DIR = /home/ubuntu/boinc
4 BOINC_API_DIR = $(BOINC_DIR)/api
5 BOINC_LIB_DIR = $(BOINC_DIR)/lib
6 COMMON_LIB_DIR = /usr/lib
7
8 CXXFLAGS = -g \
9     -static
10     -DAPP_GRAPHICS \
11     -I$(BOINC_DIR) \
12     -I$(BOINC_LIB_DIR) \
13     -I$(BOINC_API_DIR) \
14     -L$(BOINC_API_DIR) \
15     -L$(BOINC_LIB_DIR) \
16     -L /usr/X11R6/lib \
17     -L.
18
19
20 PROGS = distrrtgen \
21
22 all: $(PROGS)
23
24 libstdc++.a:
25         ln -s `g++ -print-file-name=libstdc++.a`
26
27 clean:
28         /bin/rm -f $(PROGS) *.o
29
30 distclean:
31         /bin/rm -f $(PROGS) *.o libstdc++.a
32
33 distrrtgen: distrrtgen.o libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a
34         $(CXX) *.c *.cpp $(CXXFLAGS) -o distrrtgen distrrtgen.o libstdc++.a $(COMMON_LIB_DIR)/libssl.a $(COMMON_LIB_DIR)/libpthread.a -lboinc_api -lboinc -lpthread -lssl -O3