2002-05-25 07:30:55 +00:00
|
|
|
DEPTH = ..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
VERSION = 1
|
|
|
|
|
|
|
|
CFLAGS = -g
|
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
CC = @CC@ $(CFLAGS) -I ../RSAEuro/source
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
PROGS = md5_test shmem_test synch_test crypt_prog
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-07-05 05:33:40 +00:00
|
|
|
OBJS = \
|
|
|
|
countries.o \
|
|
|
|
parse.o
|
|
|
|
|
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 $<
|
|
|
|
|
|
|
|
md5_test: md5_test.o $(MD5_OBJS)
|
|
|
|
$(CC) md5_test.o $(MD5_OBJS) -o md5_test
|
|
|
|
|
2002-05-24 04:29:10 +00:00
|
|
|
shmem_test: shmem_test.o shmem.o
|
|
|
|
$(CC) shmem_test.o shmem.o -o shmem_test
|
|
|
|
|
|
|
|
synch_test: synch_test.o synch.o
|
|
|
|
$(CC) synch_test.o synch.o -o synch_test
|
|
|
|
|
2002-06-14 05:49:34 +00:00
|
|
|
crypt_prog: crypt_prog.o crypt.o
|
|
|
|
$(CC) crypt_prog.o crypt.o $(CRYPT_LIBS) -o crypt_prog
|
|
|
|
|
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
|
|
|
|
-mkdir -p /usr/local/boinc/lib
|
|
|
|
cp md5_test /usr/local/boinc/lib/md5_test
|
|
|
|
cp shmem_test /usr/local/boinc/lib/shmem_test
|
|
|
|
cp synch_test /usr/local/boinc/lib/synch_test
|
|
|
|
#cp crypt_prog /usr/local/boinc/lib/crypt_prog
|
|
|
|
|
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
|