diff options
| -rw-r--r-- | Makefile | 70 | ||||
| -rw-r--r-- | Makefile.Sun | 71 | ||||
| -rw-r--r-- | Makefile.am | 18 | ||||
| -rwxr-xr-x | bootstrap | 2 | ||||
| -rw-r--r-- | configure.ac | 7 |
5 files changed, 27 insertions, 141 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 9de65aa..0000000 --- a/Makefile +++ /dev/null @@ -1,70 +0,0 @@ -# ----- start of system dependent section ----- - -INSTALL = cp -p - -SUNFLAG = # -D_SUN on Solaris machines -IPV6FLAG = # -DIPV6 for IPv6 -DEBUG = # -g -ggdb -CFLAGS = -O ${DEBUG} -Wall ${SUNFLAG} ${IPV6FLAG} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -#LIBS = -lsocket # for Solaris -LIBS = # there is no special lib needed, unless your system put the lib in non-standard place - -# 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} - diff --git a/Makefile.Sun b/Makefile.Sun deleted file mode 100644 index 8fe57da..0000000 --- a/Makefile.Sun +++ /dev/null @@ -1,71 +0,0 @@ -# ----- 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} - diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..879a8bc --- /dev/null +++ b/Makefile.am @@ -0,0 +1,18 @@ +bin_PROGRAMS = multicaster multicatcher rtt rttcatcher trFilelist + +multicaster_SOURCES = src/multicaster.c src/global.c src/setup_socket.c src/set_mcast.c \ + src/parse_synclist.c src/sends.c src/complaints.c src/backup.c src/timing.c \ + src/signal.c src/id_map.c + +multicatcher_SOURCES = src/multicatcher.c src/global.c src/setup_socket.c \ + src/set_catcher_mcast.c src/page_reader.c src/complaint_sender.c \ + src/file_operations.c src/signal.c src/timing.c + +rtt_SOURCES = src/rtt.c src/setup_socket.c src/set_mcast.c \ + src/rttsends.c src/rttcomplaints.c src/timing.c src/signal.c + +rttcatcher_SOURCES = src/rttcatcher.c src/setup_socket.c src/set_catcher_mcast.c \ + src/rttpage_reader.c src/rttcomplaint_sender.c src/rttmissings.c \ + src/signal.c src/timing.c + +trFilelist_SOURCES = src/trFilelist.c diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..5a29d5f --- /dev/null +++ b/bootstrap @@ -0,0 +1,2 @@ +#!/bin/sh +autoreconf -vif diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..f6cf35f --- /dev/null +++ b/configure.ac @@ -0,0 +1,7 @@ +AC_INIT([mrsync], [5.0.0], [guillaume.horel@gmail.com], [http://blog.flameeyes.eu/tag/autotoolsmythbuster]) +AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects]) +AC_CONFIG_HEADER(config.h) +AC_PROG_CC +AC_SUBST([VERSION]) +AC_CONFIG_FILES([src/main.h]) +AC_OUTPUT([Makefile]) |
