home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / rsync221.zip / Makefile.emx < prev    next >
Makefile  |  1999-03-12  |  2KB  |  77 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for rsync. This is processed by configure to produce the final
  3. # Makefile
  4.  
  5. VERSION = 2.2.1
  6. NAME = rsync-$(VERSION)
  7. DISTDIR = ..
  8. DISTFILE = $(DISTDIR)/$(NAME).zip
  9.  
  10. LIBS=-Zbin-files -lsocket -lsyslog -lsocket
  11. CC=gcc.exe
  12. CFLAGS=-O2 -Zmt -Zexe
  13. #CFLAGS=-g -Zmt -Zexe
  14.  
  15. INSTALLCMD=D:/BATCH2/install.exe -c
  16.  
  17. srcdir=.
  18. SHELL=sh.exe
  19.  
  20.  
  21. .SUFFIXES:
  22. .SUFFIXES: .c .o
  23.  
  24. LIBOBJ=lib/getopt.o lib/fnmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o
  25. ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \
  26.     zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \
  27.     zlib/zutil.o zlib/adler32.o 
  28. OBJS1=rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o
  29. OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o
  30. DAEMON_OBJ = params.o loadparm.o clientserver.o access.o connection.o authenticate.o
  31. OBJS=$(OBJS1) $(OBJS2) $(DAEMON_OBJ) $(LIBOBJ) $(ZLIBOBJ)
  32.  
  33. # note that the -I. is needed to handle config.h when using VPATH
  34. .c.o:
  35. #
  36.     $(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@
  37. #
  38.  
  39. all: rsync
  40.  
  41. man: rsync.1 rsyncd.conf.5
  42.  
  43. rsync: config.h $(OBJS)
  44.     $(CC) $(CFLAGS) $(LDFLAGS) -o rsync $(OBJS) $(LIBS)
  45.  
  46. #rsync.1: rsync.yo
  47. #    yodl2man -o rsync.1 rsync.yo
  48.  
  49. #rsyncd.conf.5: rsyncd.conf.yo
  50. #    yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
  51.  
  52. proto:
  53.     cat *.c | awk -f mkproto.awk > proto.h
  54.  
  55. clean:
  56.     rm -f *~ $(OBJS) rsync *.flc config.h
  57.  
  58. distclean: clean
  59.  
  60. config.h: config.h.emx
  61.     cp $< $@
  62.  
  63. rsync.man: rsync.1
  64.     groff -man $< > $@
  65.  
  66. dist: rsync rsync.man distclean
  67.     rm -f $(DISTFILE)
  68.     zip -D $(DISTFILE) * -x rsync.txt -x rsync.ann -x todo.port
  69.  
  70. # this target is really just for my use. It only works on a limited
  71. # range of machines and is used to produce a list of potentially
  72. # dead (ie. unused) functions in the code. (tridge)
  73. finddead:
  74.     nm *.o */*.o |grep 'U ' | awk '{print $$2}' | sort -u > nmused.txt
  75.     nm *.o */*.o |grep 'T ' | awk '{print $$3}' | sort -u > nmfns.txt
  76.     comm -13 nmused.txt nmfns.txt 
  77.