2006-05-27 04:45:52 +00:00
|
|
|
# This should work on Linux. Modify as needed for other platforms.
|
|
|
|
|
2008-08-01 18:14:00 +00:00
|
|
|
BOINC_DIR = ../..
|
2006-09-11 18:33:37 +00:00
|
|
|
BOINC_API_DIR = $(BOINC_DIR)/api
|
|
|
|
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
|
|
|
|
2006-05-27 04:45:52 +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-27 04:45:52 +00:00
|
|
|
-L.
|
|
|
|
|
|
|
|
PROGS = sleeper
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
2008-10-04 18:51:38 +00:00
|
|
|
libstdc++.a:
|
|
|
|
ln -s `g++ -print-file-name=libstdc++.a`
|
|
|
|
|
2006-05-27 04:45:52 +00:00
|
|
|
clean:
|
|
|
|
rm $(PROGS)
|
2008-10-21 21:13:52 +00:00
|
|
|
|
2008-10-06 20:24:58 +00:00
|
|
|
distclean:
|
|
|
|
/bin/rm -f $(PROGS) *.o libstdc++.a
|
2006-05-27 04:45:52 +00:00
|
|
|
|
2008-10-04 18:51:38 +00:00
|
|
|
sleeper: sleeper.o libstdc++.a $(BOINC_LIB_DIR)/libboinc.a $(BOINC_API_DIR)/libboinc_api.a
|
2006-05-27 04:45:52 +00:00
|
|
|
g++ $(CXXFLAGS) -o sleeper sleeper.o libstdc++.a -pthread -lboinc_api -lboinc
|