]> git.sesse.net Git - freerainbowtables/blob - BOINC software/BOINC client apps/distrrtgen/Makefile
503fd08cbaf45219cedfb189c1363f5d5a3e4840
[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 -static-libgcc \
10     -I$(BOINC_DIR) \
11     -I$(BOINC_LIB_DIR) \
12     -I$(BOINC_API_DIR) \
13     -L$(BOINC_API_DIR) \
14     -L$(BOINC_LIB_DIR) \
15     -L /usr/X11R6/lib \
16     -L.
17
18
19 PROGS = distrrtgen \
20
21 all: $(PROGS)
22
23 libstdc++.a:
24         ln -s `g++ -print-file-name=libstdc++.a`
25
26 clean:
27         /bin/rm -f $(PROGS) *.o
28
29 distclean:
30         /bin/rm -f $(PROGS) *.o libstdc++.a
31
32 distrrtgen: distrrtgen.o libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a
33         $(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