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 = $(INSTALL_DIR)
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
2002-08-30 20:56:02 +00:00
|
|
|
CFLAGS = -g -Wall @DEFS@
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
CC = @CC@ $(CFLAGS) -I ../RSAEuro/source
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-09-26 23:12:13 +00:00
|
|
|
CLIBS = @LIBS@
|
|
|
|
|
2003-03-18 20:00:09 +00:00
|
|
|
PROGS = md5_test shmem_test crypt_prog
|
|
|
|
# PROGS = md5_test shmem_test msg_test synch_test crypt_prog
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
OBJS = \
|
|
|
|
countries.o \
|
2002-08-30 20:56:02 +00:00
|
|
|
parse.o \
|
|
|
|
filesys.o \
|
|
|
|
util.o
|
2002-07-05 05:33:40 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
MD5_OBJS = \
|
|
|
|
md5.o \
|
|
|
|
md5_file.o
|
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
CRYPT_OBJS = \
|
|
|
|
crypt.o
|
|
|
|
|
|
|
|
CRYPT_LIBS = \
|
|
|
|
$(MD5_OBJS) \
|
2002-07-02 22:50:16 +00:00
|
|
|
../RSAEuro/source/rsaeuro.a
|
2002-06-14 05:49:34 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
COUNTRY_OBJS = \
|
|
|
|
countries.o
|
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
all: $(PROGS) $(OBJS) $(MD5_OBJS) $(CRYPT_OBJS)
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
.C.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c -o $*.o $<
|
|
|
|
|
2002-08-28 21:50:51 +00:00
|
|
|
libboinc.a: $(OBJS) $(MD5_OBJS)
|
|
|
|
ar cr libboinc.a $(OBJS) $(MD5_OBJS); ranlib libboinc.a
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
md5_test: md5_test.o $(MD5_OBJS)
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) md5_test.o $(MD5_OBJS) $(CLIBS) -o md5_test
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
shmem_test: shmem_test.o shmem.o
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) shmem_test.o shmem.o $(CLIBS) -o shmem_test
|
2002-05-24 04:29:10 +00:00
|
|
|
|
2003-03-13 21:39:12 +00:00
|
|
|
msg_test: msg_test.o msg_queue.o
|
2003-03-13 21:20:33 +00:00
|
|
|
$(CC) msg_test.o msg_queue.o $(CLIBS) -o msg_test
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
synch_test: synch_test.o synch.o
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) synch_test.o synch.o $(CLIBS) -o synch_test
|
2002-05-24 04:29:10 +00:00
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
crypt_prog: crypt_prog.o crypt.o
|
2002-09-26 23:12:13 +00:00
|
|
|
$(CC) crypt_prog.o crypt.o $(CRYPT_LIBS) $(CLIBS) -o crypt_prog
|
2002-06-14 05:49:34 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGS) core dependencies
|
|
|
|
|
2002-06-21 18:31:32 +00:00
|
|
|
install: all
|
2002-07-18 21:29:50 +00:00
|
|
|
-mkdir -p $(INSTALL_DIR)/lib
|
|
|
|
cp md5_test $(INSTALL_DIR)/lib/md5_test
|
|
|
|
cp shmem_test $(INSTALL_DIR)/lib/shmem_test
|
|
|
|
cp synch_test $(INSTALL_DIR)/lib/synch_test
|
|
|
|
cp crypt_prog $(INSTALL_DIR)/lib/crypt_prog
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
$(RM) -r $(INSTALL_DIR)/lib
|
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
|