boinc/lib/Makefile.in

81 lines
1.6 KiB
Makefile

DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
INSTALL_DIR = $(INSTALL_DIR)
VERSION = 1
CFLAGS = -g -Wall @DEFS@
CC = @CC@ $(CFLAGS) -I ../RSAEuro/source
CLIBS = @LIBS@
PROGS = md5_test shmem_test crypt_prog
# PROGS = md5_test shmem_test msg_test synch_test crypt_prog
OBJS = \
countries.o \
parse.o \
filesys.o \
util.o
MD5_OBJS = \
md5.o \
md5_file.o
CRYPT_OBJS = \
crypt.o
CRYPT_LIBS = \
$(MD5_OBJS) \
../RSAEuro/source/rsaeuro.a
COUNTRY_OBJS = \
countries.o
all: $(PROGS) $(OBJS) $(MD5_OBJS) $(CRYPT_OBJS)
.C.o:
$(CC) -c -o $*.o $<
.c.o:
$(CC) -c -o $*.o $<
libboinc.a: $(OBJS) $(MD5_OBJS)
ar cr libboinc.a $(OBJS) $(MD5_OBJS); ranlib libboinc.a
md5_test: md5_test.o $(MD5_OBJS)
$(CC) md5_test.o $(MD5_OBJS) $(CLIBS) -o md5_test
shmem_test: shmem_test.o shmem.o
$(CC) shmem_test.o shmem.o $(CLIBS) -o shmem_test
msg_test: msg_test.o msg_queue.o
$(CC) msg_test.o msg_queue.o $(CLIBS) -o msg_test
synch_test: synch_test.o synch.o
$(CC) synch_test.o synch.o $(CLIBS) -o synch_test
crypt_prog: crypt_prog.o crypt.o
$(CC) crypt_prog.o crypt.o $(CRYPT_LIBS) $(CLIBS) -o crypt_prog
clean:
rm -f *.o $(PROGS) core dependencies
install: all
-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
dependencies: @srcdir@/*.C
$(CC) -M @srcdir@/*.C > dependencies
include dependencies