2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-07-18 21:29:50 +00:00
|
|
|
INSTALL_DIR = /usr/local/boinc
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
|
|
|
MYSQL_INC = /usr/local/mysql/include
|
|
|
|
|
|
|
|
CFLAGS = -g -Wall @DEFS@ \
|
|
|
|
-DHOSTTYPE=\"@host@\" \
|
|
|
|
-DVERSION=$(VERSION) \
|
2002-07-05 05:33:40 +00:00
|
|
|
-I @top_srcdir@/lib \
|
|
|
|
-I @top_srcdir@/RSAEuro/source \
|
|
|
|
-I @top_srcdir@/db \
|
2002-08-28 21:50:51 +00:00
|
|
|
-I $(MYSQL_INC) \
|
|
|
|
-L../lib
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
CC = @CC@ $(CFLAGS)
|
|
|
|
|
2002-07-09 00:10:58 +00:00
|
|
|
CRYPTO_LIBS = \
|
2002-07-05 05:33:40 +00:00
|
|
|
../lib/crypt.o \
|
|
|
|
../RSAEuro/source/rsaeuro.a
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
backend_lib.o \
|
|
|
|
process_result_template.o
|
|
|
|
|
2002-09-26 18:11:06 +00:00
|
|
|
PROGS = create_work add country_select
|
2002-04-30 22:22:54 +00:00
|
|
|
all: $(PROGS) $(OBJS)
|
|
|
|
|
|
|
|
MYSQL_DIR = /usr/local/mysql/lib
|
|
|
|
MYSQL_LIBS = \
|
2002-05-25 15:30:00 +00:00
|
|
|
-L$(MYSQL_DIR) -L/usr/local/lib/mysql \
|
|
|
|
-L/sw/lib/mysql -lmysqlclient -L/usr/local/lib -lz \
|
2002-07-29 00:39:45 +00:00
|
|
|
-lm
|
2002-07-15 20:00:07 +00:00
|
|
|
|
2002-07-30 00:17:13 +00:00
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
LIBS = \
|
|
|
|
backend_lib.o \
|
|
|
|
process_result_template.o \
|
|
|
|
../lib/md5_file.o \
|
|
|
|
../lib/md5.o \
|
2002-07-05 05:33:40 +00:00
|
|
|
../lib/parse.o \
|
2003-03-06 17:59:47 +00:00
|
|
|
../lib/util.o \
|
2002-04-30 22:22:54 +00:00
|
|
|
../db/db_mysql.o \
|
|
|
|
../db/mysql_util.o
|
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
2002-09-26 23:12:13 +00:00
|
|
|
create_work: create_work.o $(LIBS) $(CRYPTO_LIBS)
|
2002-07-30 00:17:13 +00:00
|
|
|
$(CC) create_work.o $(CRYPTO_LIBS) $(CLIBS) $(LIBS) $(MYSQL_LIBS) -o create_work
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-09-26 23:12:13 +00:00
|
|
|
add: add.o $(LIBS) $(CRYPTO_LIBS)
|
2002-07-30 00:17:13 +00:00
|
|
|
$(CC) add.o $(CLIBS) $(LIBS) $(CRYPTO_LIBS) $(MYSQL_LIBS) -o add
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
country_select: country_select.o ../lib/countries.o
|
|
|
|
$(CC) country_select.o ../lib/countries.o -o country_select
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o create_work add core country_select dependencies
|
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install:
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/tools
|
|
|
|
cp create_work $(INSTALL_DIR)/tools/create_work
|
|
|
|
cp add $(INSTALL_DIR)/tools/add
|
|
|
|
cp country_select $(INSTALL_DIR)/tools/country_select
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/tools
|
2002-06-21 18:31:32 +00:00
|
|
|
|
2002-05-25 07:30:55 +00:00
|
|
|
dependencies: @srcdir@/*.C
|
2002-05-25 07:34:27 +00:00
|
|
|
$(CC) -M @srcdir@/*.C > dependencies
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
include dependencies
|
|
|
|
|