Makefile.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # Copyright (c) 1993, 1994, 1995, 1996
  2. # The Regents of the University of California. All rights reserved.
  3. #
  4. # Redistribution and use in source and binary forms, with or without
  5. # modification, are permitted provided that: (1) source code distributions
  6. # retain the above copyright notice and this paragraph in its entirety, (2)
  7. # distributions including binary code include the above copyright notice and
  8. # this paragraph in its entirety in the documentation or other materials
  9. # provided with the distribution, and (3) all advertising materials mentioning
  10. # features or use of this software display the following acknowledgement:
  11. # ``This product includes software developed by the University of California,
  12. # Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  13. # the University nor the names of its contributors may be used to endorse
  14. # or promote products derived from this software without specific prior
  15. # written permission.
  16. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  17. # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  18. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  19. #
  20. # Various configurable paths (remember to edit Makefile.in, not Makefile)
  21. #
  22. # Top level hierarchy
  23. prefix = @prefix@
  24. exec_prefix = @exec_prefix@
  25. datarootdir = @datarootdir@
  26. # Pathname of directory to install the configure program
  27. bindir = @bindir@
  28. # Pathname of directory to install the rpcapd daemon
  29. sbindir = @sbindir@
  30. # Pathname of directory to install the include files
  31. includedir = @includedir@
  32. # Pathname of directory to install the library
  33. libdir = @libdir@
  34. # Pathname of directory to install the man pages
  35. mandir = @mandir@
  36. # VPATH
  37. srcdir = @srcdir@
  38. VPATH = @srcdir@
  39. #
  40. # You shouldn't need to edit anything below.
  41. #
  42. LD = /usr/bin/ld
  43. CC = @CC@
  44. AR = @AR@
  45. LN_S = @LN_S@
  46. MKDEP = @MKDEP@
  47. CCOPT = @V_CCOPT@
  48. INCLS = -I. -I.. -I@srcdir@ -I@srcdir@/.. @V_INCLS@
  49. DEFS = @DEFS@ @V_DEFS@
  50. ADDLOBJS = @ADDLOBJS@
  51. ADDLARCHIVEOBJS = @ADDLARCHIVEOBJS@
  52. LIBS = @LIBS@
  53. PTHREAD_LIBS = @PTHREAD_LIBS@
  54. CROSSFLAGS=
  55. CFLAGS = @CFLAGS@ ${CROSSFLAGS}
  56. LDFLAGS = @LDFLAGS@ ${CROSSFLAGS}
  57. DYEXT = @DYEXT@
  58. V_RPATH_OPT = @V_RPATH_OPT@
  59. DEPENDENCY_CFLAG = @DEPENDENCY_CFLAG@
  60. PROG=libpcap
  61. RPCAPD_LIBS = @RPCAPD_LIBS@
  62. # Standard CFLAGS
  63. FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
  64. INSTALL = @INSTALL@
  65. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  66. INSTALL_DATA = @INSTALL_DATA@
  67. # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  68. # Also, gcc does not remove the .o before forking 'as', which can be a
  69. # problem if you don't own the file but can write to the directory.
  70. .c.o:
  71. @rm -f $@
  72. $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
  73. SRC = daemon.c \
  74. fileconf.c \
  75. log-stderr.c \
  76. rpcapd.c
  77. OBJ = $(SRC:.c=.o) ../rpcap-protocol.o ../sockutils.o ../fmtutils.o
  78. PUBHDR =
  79. HDR = $(PUBHDR) log.h
  80. TAGFILES = \
  81. $(SRC) $(HDR)
  82. CLEANFILES = $(OBJ) rpcapd
  83. MANADMIN = \
  84. rpcapd.manadmin.in
  85. rpcapd: $(OBJ) ../libpcap.a
  86. $(CC) $(CCOPT) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) ../libpcap.a $(LIBS) $(RPCAPD_LIBS) $(PTHREAD_LIBS)
  87. clean:
  88. rm -f $(CLEANFILES)
  89. distclean: clean
  90. rm -f Makefile config.cache config.log config.status \
  91. config.h stamp-h stamp-h.in
  92. rm -f $(MANADMIN:.in=)
  93. rm -rf autom4te.cache
  94. install: rpcapd
  95. [ -d $(DESTDIR)$(sbindir) ] || \
  96. (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
  97. $(INSTALL_PROGRAM) rpcapd $(DESTDIR)$(sbindir)/rpcapd
  98. [ -d $(DESTDIR)$(mandir)/man@MAN_ADMIN_COMMANDS@ ] || \
  99. (mkdir -p $(DESTDIR)$(mandir)/man@MAN_ADMIN_COMMANDS@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_ADMIN_COMMANDS@)
  100. for i in $(MANADMIN); do \
  101. $(INSTALL_DATA) `echo $$i | sed 's/.manadmin.in/.manadmin/'` \
  102. $(DESTDIR)$(mandir)/man@MAN_ADMIN_COMMANDS@/`echo $$i | sed 's/.manadmin.in/.@MAN_ADMIN_COMMANDS@/'`; done
  103. uninstall:
  104. rm -f $(DESTDIR)$(sbindir)/rpcapd
  105. for i in $(MANADMIN); do \
  106. rm -f $(DESTDIR)$(mandir)/man@MAN_ADMIN_COMMANDS@/`echo $$i | sed 's/.manadmin.in/.@MAN_ADMIN_COMMANDS@/'`; done
  107. tags: $(TAGFILES)
  108. ctags -wtd $(TAGFILES)
  109. depend:
  110. ../$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)