2002-07-17 21:40:05 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2002-05-25 15:17:57 +00:00
|
|
|
DEPTH = .
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-07-18 21:29:50 +00:00
|
|
|
INSTALL_DIR = /usr/local/boinc
|
|
|
|
|
2002-07-19 20:22:54 +00:00
|
|
|
ENV_MSG_1 = "The environment variable "
|
|
|
|
ENV_MSG_2 = " does not seem to be set. "
|
|
|
|
ENV_MSG_3 = "Please be sure to set all environment variables before compiling. "
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_PROJECTS_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_PROJECTS_DIR_MSG = $(ENV_MSG_1)"BOINC_PROJECTS_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_HOSTS_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_HOSTS_DIR_MSG = $(ENV_MSG_1)"BOINC_HOSTS_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_USER_NAME
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_USER_NAME_MSG = $(ENV_MSG_1)"BOINC_USER_NAME"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_SRC_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_SRC_DIR_MSG = $(ENV_MSG_1)"BOINC_SRC_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_CGI_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_CGI_DIR_MSG = $(ENV_MSG_1)"BOINC_CGI_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_CGI_URL
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_CGI_URL_MSG = $(ENV_MSG_1)"BOINC_CGI_URL"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_HTML_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_HTML_DIR_MSG = $(ENV_MSG_1)"BOINC_HTML_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_HTML_URL
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_HTML_URL_MSG = $(ENV_MSG_1)"BOINC_HTML_URL"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_KEY_DIR
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_KEY_DIR_MSG = $(ENV_MSG_1)"BOINC_KEY_DIR"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
2002-10-04 20:26:23 +00:00
|
|
|
ifndef BOINC_PLATFORM
|
2002-07-19 20:22:54 +00:00
|
|
|
BOINC_WARN_ENV = 1
|
2002-10-04 20:26:23 +00:00
|
|
|
BOINC_PLATFORM_KEY_MSG = $(ENV_MSG_1)"BOINC_PLATFORM_KEY"$(ENV_MSG_2)
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
|
|
|
ifdef BOINC_WARN_ENV
|
2002-07-24 18:49:23 +00:00
|
|
|
ENV_MESSAGES = "****************************************" \
|
2002-10-04 20:26:23 +00:00
|
|
|
$(BOINC_HOSTS_DIR_MSG) \
|
|
|
|
$(BOINC_PROJECTS_DIR_MSG) \
|
|
|
|
$(BOINC_USER_NAME_MSG) \
|
|
|
|
$(BOINC_SRC_DIR_MSG) \
|
|
|
|
$(BOINC_CGI_DIR_MSG) \
|
|
|
|
$(BOINC_CGI_URL_MSG) \
|
|
|
|
$(BOINC_HTML_DIR_MSG) \
|
|
|
|
$(BOINC_HTML_URL_MSG) \
|
2002-07-19 20:22:54 +00:00
|
|
|
$(BOINC_KEY_DIR_MSG) \
|
2002-10-04 20:26:23 +00:00
|
|
|
$(BOINC_PLATFORM_MSG) \
|
2002-07-24 18:49:23 +00:00
|
|
|
$(ENV_MSG_3) \
|
|
|
|
"****************************************"
|
|
|
|
EXIT_IF_NEEDED = @exit 1;
|
2002-07-19 20:22:54 +00:00
|
|
|
endif
|
|
|
|
|
2002-05-25 15:30:00 +00:00
|
|
|
#
|
|
|
|
# The ../$(srcdir)/client/configure
|
|
|
|
# only works when the original configure is relative path
|
|
|
|
# it doesn't work when it is an absolute path
|
|
|
|
# This needs to be fixed
|
|
|
|
#
|
2002-07-19 20:22:54 +00:00
|
|
|
all: messages
|
2002-07-17 21:40:05 +00:00
|
|
|
cd RSAEuro/source; ${MAKE}; cd ../..; \
|
|
|
|
cd db; ${MAKE}; cd ..; \
|
|
|
|
cd lib; ${MAKE}; cd ..; \
|
|
|
|
cd api; ${MAKE}; cd ..; \
|
|
|
|
cd apps; ${MAKE}; cd ..; \
|
|
|
|
cd client; ../$(srcdir)/client/configure; ${MAKE}; cd ..; \
|
|
|
|
cd sched; ${MAKE}; cd ..; \
|
|
|
|
cd tools; ${MAKE}; cd ..;
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-19 20:22:54 +00:00
|
|
|
messages:
|
2002-07-24 18:49:23 +00:00
|
|
|
@echo $(ENV_MESSAGES)
|
|
|
|
$(EXIT_IF_NEEDED)
|
2002-07-19 20:22:54 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
clean:
|
|
|
|
rm -f boinc.tar.gz config.cache; \
|
2002-07-17 21:40:05 +00:00
|
|
|
cd RSAEuro/source/; ${MAKE} clean; cd ../../; \
|
|
|
|
cd db; ${MAKE} clean; cd ..; \
|
|
|
|
cd lib; ${MAKE} clean; cd ..; \
|
|
|
|
cd api; ${MAKE} clean; cd ..; \
|
|
|
|
cd apps; ${MAKE} clean; cd ..; \
|
|
|
|
cd client; ${MAKE} clean; cd ..; \
|
|
|
|
cd sched; ${MAKE} clean; cd ..; \
|
|
|
|
cd tools; ${MAKE} clean; cd ..;
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install: all
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR);
|
2002-07-17 21:40:05 +00:00
|
|
|
cd sched; ${MAKE} install;
|
|
|
|
cd lib; ${MAKE} install;
|
|
|
|
cd api; ${MAKE} install;
|
|
|
|
cd apps; ${MAKE} install;
|
|
|
|
cd client; ${MAKE} install;
|
|
|
|
cd tools; ${MAKE} install;
|
2002-07-18 21:29:50 +00:00
|
|
|
$(CP) -r test /usr/local/boinc;
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
cd sched; ${MAKE} uninstall;
|
|
|
|
cd lib; ${MAKE} uninstall;
|
|
|
|
cd api; ${MAKE} uninstall;
|
|
|
|
cd apps; ${MAKE} uninstall;
|
|
|
|
cd client; ${MAKE} uninstall;
|
|
|
|
cd tools; ${MAKE} uninstall;
|
|
|
|
$(RM) -r $(INSTALL_DIR)/tools;
|
2002-06-21 18:31:32 +00:00
|
|
|
|
2002-08-30 00:10:40 +00:00
|
|
|
ARCHIVE_TARGETS = \
|
2002-07-24 18:49:23 +00:00
|
|
|
client/*.C client/*.cpp client/*.h client/configure \
|
|
|
|
client/install-sh client/*.in client/*.sub client/*.guess \
|
2002-08-30 00:10:40 +00:00
|
|
|
client/mac/*.h client/mac/*.cpp \
|
2002-08-30 00:26:04 +00:00
|
|
|
client/win/*.h client/win/*.cpp \
|
2002-07-24 18:49:23 +00:00
|
|
|
apps/*.C apps/*.h apps/*.in \
|
|
|
|
db/*.sql db/*.h db/*.C db/*.in db/init_db \
|
|
|
|
doc/*.* \
|
|
|
|
html_ops/*.* \
|
|
|
|
html_user/*.* \
|
|
|
|
lib/*.C lib/*.c lib/*.h lib/*.in \
|
|
|
|
sched/*.C sched/*.h sched/*.in \
|
|
|
|
sched_fcgi/*.C sched_fcgi/*.h sched_fcgi/*.in \
|
|
|
|
test/*.xml test/*.php test/*wu test/*result test/*output \
|
|
|
|
test/*.html test/*input \
|
|
|
|
tools/*.C tools/*.h tools/*.in \
|
|
|
|
api/*.C api/*.h api/*.in \
|
|
|
|
RSAEuro/*/*.c RSAEuro/*/*.h RSAEuro/*/*.in RSAEuro/*/*.mak \
|
2002-10-04 20:28:58 +00:00
|
|
|
mac_build/*.*/*.* mac_build/*.*/*.*/*.* \
|
|
|
|
win_build.zip INSTALL LICENSE configure install-sh \
|
2002-07-24 18:49:23 +00:00
|
|
|
*.in *.sub *.guess *.m4
|
|
|
|
|
|
|
|
tar:
|
2002-08-30 00:10:40 +00:00
|
|
|
tar cf boinc.tar $(ARCHIVE_TARGETS) ; gzip boinc.tar
|
|
|
|
|
|
|
|
zip:
|
|
|
|
zip boinc.zip $(ARCHIVE_TARGETS)
|
2002-07-17 22:52:45 +00:00
|
|
|
|
|
|
|
client_tar: clean
|
2002-07-19 20:35:25 +00:00
|
|
|
cd client; ./configure; ${MAKE} tar;
|