2006-05-29 20:24:05 +00:00
|
|
|
# This should work on Linux. Modify as needed for other platforms.
|
|
|
|
|
|
|
|
# Do this first:
|
|
|
|
# ln -s `g++ -print-file-name=libstdc++.a`
|
|
|
|
# This creates a symbolic link to the C++ library,
|
|
|
|
# which is linked statically
|
|
|
|
|
2007-04-26 20:10:54 +00:00
|
|
|
# Change the following to match your installation
|
2006-09-11 18:33:37 +00:00
|
|
|
BOINC_DIR = ../../boinc
|
|
|
|
BOINC_API_DIR = $(BOINC_DIR)/api
|
|
|
|
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
2007-04-26 20:10:54 +00:00
|
|
|
|
2006-05-29 20:24:05 +00:00
|
|
|
CXXFLAGS = -g \
|
2006-09-11 18:33:37 +00:00
|
|
|
-I$(BOINC_DIR) \
|
|
|
|
-I$(BOINC_LIB_DIR) \
|
|
|
|
-I$(BOINC_API_DIR) \
|
|
|
|
-L$(BOINC_API_DIR) \
|
|
|
|
-L$(BOINC_LIB_DIR) \
|
2006-05-29 20:24:05 +00:00
|
|
|
-L.
|
|
|
|
|
|
|
|
PROGS = wrapper
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
clean:
|
2007-04-26 20:10:54 +00:00
|
|
|
rm $(PROGS) *.o
|
2006-05-29 20:24:05 +00:00
|
|
|
|
2006-09-11 18:33:37 +00:00
|
|
|
wrapper: wrapper.o $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a
|
2006-05-29 20:24:05 +00:00
|
|
|
g++ $(CXXFLAGS) -o wrapper wrapper.o libstdc++.a -pthread -lboinc_api -lboinc
|