aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.Sun
blob: 8fe57da5ef08be940f8e5b6239f838a117ac7290 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# ----- start of system dependent section -----

INSTALL  = cp -p 

SUNFLAG  = -D_SUN                                  # -D_SUN on Solaris machines 
IPV6FLAG =                                         # -DIPV6 for IPv6
DEBUG    =                                         # -g -ggdb
CC       = gcc-2.95.3.ren                           # 32-bit compiler
CFLAGS   = -O ${DEBUG} -Wall ${SUNFLAG} ${IPV6FLAG} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
LIBS     = -lsocket  # for Solaris
#LIBS     = /usr/local/mtools/nova/lib/lea.Linux.o   # for monster clusters (32-bit lib)

# The directory to install mrsync and others in.
bindir   = /usr/local/bin

# ----- end of system dependent section -------

CLEANFILES =  *.o *~

PROGS =	multicaster multicatcher rtt rttcatcher trFilelist
SCR   = mrsync.py mrsync_config.py cmdToTarget.py
OBJ1  = multicaster.o multicatcher.o \
	parse_synclist.o sends.o complaints.o \
        complaint_sender.o page_reader.o file_operations.o backup.o \
	set_catcher_mcast.o set_mcast.o

OBJ4  = rtt.o rttsends.o rttcomplaints.o \
        rttcatcher.o rttpage_reader.o rttcomplaint_sender.o rttmissings.o

all:		${PROGS}

install:	${PROGS}
		${INSTALL} ${PROGS} ${SCR} ${bindir}

# common files
signal.o:	signal.h

# multicasting
${OBJ1}:	main.h proto.h

multicaster:	multicaster.o global.o setup_socket.o set_mcast.o \
		parse_synclist.o \
		sends.o complaints.o backup.o \
		timing.o signal.o id_map.o
		${CC} ${CFLAGS} -o $@ $^  ${LIBS}

multicatcher:	multicatcher.o global.o setup_socket.o set_catcher_mcast.o \
		page_reader.o complaint_sender.o \
		file_operations.o signal.o timing.o 
		${CC} ${CFLAGS} -o $@ $^  ${LIBS}

# for rtt and rttcatcher
${OBJ4}:	rttmain.h rttproto.h

rtt:		rtt.o setup_socket.o set_mcast.o \
		rttsends.o rttcomplaints.o timing.o signal.o
		${CC} ${CFLAGS} -o $@ $^  ${LIBS}

rttcatcher:	rttcatcher.o setup_socket.o set_catcher_mcast.o \
		rttpage_reader.o rttcomplaint_sender.o rttmissings.o \
		signal.o timing.o
		${CC} ${CFLAGS} -o $@ $^  ${LIBS}

# misc
trFilelist:	trFilelist.o
		${CC} ${CFLAGS} -o $@ $^  ${LIBS}

# to clean up 
clean:
		rm -f ${PROGS} ${CLEANFILES}