Makefile.in 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. EXTRA_NETWORK_LIBS=@EXTRA_NETWORK_LIBS@
  61. # Standard CFLAGS for building test programs
  62. FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
  63. INSTALL = @INSTALL@
  64. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  65. INSTALL_DATA = @INSTALL_DATA@
  66. # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  67. # Also, gcc does not remove the .o before forking 'as', which can be a
  68. # problem if you don't own the file but can write to the directory.
  69. .c.o:
  70. @rm -f $@
  71. $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
  72. SRC = @VALGRINDTEST_SRC@ \
  73. capturetest.c \
  74. can_set_rfmon_test.c \
  75. filtertest.c \
  76. findalldevstest.c \
  77. opentest.c \
  78. reactivatetest.c \
  79. selpolltest.c \
  80. threadsignaltest.c
  81. TESTS = $(SRC:.c=)
  82. TAGFILES = \
  83. $(SRC) $(HDR)
  84. CLEANFILES = $(OBJ) $(TESTS)
  85. all: $(TESTS)
  86. capturetest: $(srcdir)/capturetest.c ../libpcap.a
  87. $(CC) $(FULL_CFLAGS) -I. -L. -o capturetest $(srcdir)/capturetest.c ../libpcap.a $(LIBS)
  88. can_set_rfmon_test: $(srcdir)/can_set_rfmon_test.c ../libpcap.a
  89. $(CC) $(FULL_CFLAGS) -I. -L. -o can_set_rfmon_test $(srcdir)/can_set_rfmon_test.c ../libpcap.a $(LIBS)
  90. filtertest: $(srcdir)/filtertest.c ../libpcap.a
  91. $(CC) $(FULL_CFLAGS) -I. -L. -o filtertest $(srcdir)/filtertest.c ../libpcap.a $(EXTRA_NETWORK_LIBS) $(LIBS)
  92. findalldevstest: $(srcdir)/findalldevstest.c ../libpcap.a
  93. $(CC) $(FULL_CFLAGS) -I. -L. -o findalldevstest $(srcdir)/findalldevstest.c ../libpcap.a $(EXTRA_NETWORK_LIBS) $(LIBS)
  94. opentest: $(srcdir)/opentest.c ../libpcap.a
  95. $(CC) $(FULL_CFLAGS) -I. -L. -o opentest $(srcdir)/opentest.c ../libpcap.a $(LIBS)
  96. reactivatetest: $(srcdir)/reactivatetest.c ../libpcap.a
  97. $(CC) $(FULL_CFLAGS) -I. -L. -o reactivatetest $(srcdir)/reactivatetest.c ../libpcap.a $(LIBS)
  98. selpolltest: $(srcdir)/selpolltest.c ../libpcap.a
  99. $(CC) $(FULL_CFLAGS) -I. -L. -o selpolltest $(srcdir)/selpolltest.c ../libpcap.a $(LIBS)
  100. threadsignaltest: $(srcdir)/threadsignaltest.c ../libpcap.a
  101. $(CC) $(FULL_CFLAGS) -I. -L. -o threadsignaltest $(srcdir)/threadsignaltest.c ../libpcap.a $(LIBS) $(PTHREAD_LIBS)
  102. valgrindtest: $(srcdir)/valgrindtest.c ../libpcap.a
  103. $(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/valgrindtest.c ../libpcap.a $(LIBS)
  104. clean:
  105. rm -f $(CLEANFILES)
  106. rm -rf *.dSYM
  107. distclean: clean
  108. rm -f Makefile config.cache config.log config.status \
  109. config.h stamp-h stamp-h.in
  110. rm -rf autom4te.cache
  111. install:
  112. uninstall:
  113. tags: $(TAGFILES)
  114. ctags -wtd $(TAGFILES)
  115. depend:
  116. ../$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)