mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc_samples/; revision=11138
This commit is contained in:
parent
6d1a07d716
commit
c7d6d370ed
|
@ -164,3 +164,13 @@ David 9 Sept 2006
|
|||
|
||||
wrapper/
|
||||
wrapper.C
|
||||
|
||||
David 11 Sept 2006
|
||||
- added library dependencies to makefiles
|
||||
|
||||
uppercase/Makefile
|
||||
sleeper/Makefile
|
||||
worker/
|
||||
Makefile
|
||||
worker.C
|
||||
wrapper/Makefile
|
||||
|
|
|
@ -5,12 +5,16 @@
|
|||
# This creates a symbolic link to the C++ library,
|
||||
# which is linked statically
|
||||
|
||||
BOINC_DIR = ../../boinc
|
||||
BOINC_API_DIR = $(BOINC_DIR)/api
|
||||
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
||||
|
||||
CXXFLAGS = -g \
|
||||
-I ../../boinc \
|
||||
-I ../../boinc/lib \
|
||||
-I ../../boinc/api \
|
||||
-L ../../boinc/api \
|
||||
-L ../../boinc/lib \
|
||||
-I$(BOINC_DIR) \
|
||||
-I$(BOINC_LIB_DIR) \
|
||||
-I$(BOINC_API_DIR) \
|
||||
-L$(BOINC_API_DIR) \
|
||||
-L$(BOINC_LIB_DIR) \
|
||||
-L.
|
||||
|
||||
PROGS = sleeper
|
||||
|
@ -20,5 +24,5 @@ all: $(PROGS)
|
|||
clean:
|
||||
rm $(PROGS)
|
||||
|
||||
sleeper: sleeper.o
|
||||
sleeper: sleeper.o $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a
|
||||
g++ $(CXXFLAGS) -o sleeper sleeper.o libstdc++.a -pthread -lboinc_api -lboinc
|
||||
|
|
|
@ -5,12 +5,16 @@
|
|||
# This creates a symbolic link to the C++ library,
|
||||
# which is linked statically
|
||||
|
||||
BOINC_DIR = ../../boinc
|
||||
BOINC_API_DIR = $(BOINC_DIR)/api
|
||||
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
||||
|
||||
CXXFLAGS = -g \
|
||||
-I ../../boinc \
|
||||
-I ../../boinc/lib \
|
||||
-I ../../boinc/api \
|
||||
-L ../../boinc/api \
|
||||
-L ../../boinc/lib \
|
||||
-I$(BOINC_DIR) \
|
||||
-I$(BOINC_LIB_DIR) \
|
||||
-I$(BOINC_API_DIR) \
|
||||
-L$(BOINC_API_DIR) \
|
||||
-L$(BOINC_LIB_DIR) \
|
||||
-L /usr/X11R6/lib \
|
||||
-L.
|
||||
|
||||
|
@ -29,10 +33,10 @@ clean:
|
|||
# the -Wl,--export-dynamic causes the main program's symbols
|
||||
# to be exported to the graphics library
|
||||
|
||||
upper_case: upper_case.o
|
||||
upper_case: upper_case.o $(BOINC_API_DIR)/libboinc_api.a $(BOINC_API_DIR)/libboinc_graphics_lib.a $(BOINC_LIB_DIR)/libboinc.a
|
||||
g++ $(CXXFLAGS) -Wl,--export-dynamic -o upper_case upper_case.o libstdc++.a -pthread -lboinc_api -lboinc -lboinc_graphics_lib -ldl
|
||||
|
||||
upper_case.so: uc_graphics.o
|
||||
upper_case.so: uc_graphics.o $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_graphics_impl.a
|
||||
g++ $(CXXFLAGS) -o upper_case.so \
|
||||
-shared -fPIC -pthread \
|
||||
uc_graphics.o \
|
||||
|
|
|
@ -19,9 +19,12 @@
|
|||
|
||||
// worker - application without BOINC runtime system;
|
||||
// used for testing wrapper
|
||||
//
|
||||
// THIS PROGRAM SHOULDN'T USE ANY BOINC CODE. That's the whole point.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
int main(int, char**) {
|
||||
|
|
|
@ -5,12 +5,15 @@
|
|||
# This creates a symbolic link to the C++ library,
|
||||
# which is linked statically
|
||||
|
||||
BOINC_DIR = ../../boinc
|
||||
BOINC_API_DIR = $(BOINC_DIR)/api
|
||||
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
||||
CXXFLAGS = -g \
|
||||
-I../../boinc \
|
||||
-I../../boinc/lib \
|
||||
-I../../boinc/api \
|
||||
-L../../boinc/api \
|
||||
-L../../boinc/lib \
|
||||
-I$(BOINC_DIR) \
|
||||
-I$(BOINC_LIB_DIR) \
|
||||
-I$(BOINC_API_DIR) \
|
||||
-L$(BOINC_API_DIR) \
|
||||
-L$(BOINC_LIB_DIR) \
|
||||
-L.
|
||||
|
||||
PROGS = wrapper
|
||||
|
@ -20,5 +23,5 @@ all: $(PROGS)
|
|||
clean:
|
||||
rm $(PROGS)
|
||||
|
||||
wrapper: wrapper.o
|
||||
wrapper: wrapper.o $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a
|
||||
g++ $(CXXFLAGS) -o wrapper wrapper.o libstdc++.a -pthread -lboinc_api -lboinc
|
||||
|
|
Loading…
Reference in New Issue