Makefile 4.9 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 = /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/GPL/libpcap-1.9.0/release
  24. exec_prefix = ${prefix}
  25. datarootdir = ${prefix}/share
  26. # Pathname of directory to install the configure program
  27. bindir = ${exec_prefix}/bin
  28. # Pathname of directory to install the rpcapd daemon
  29. sbindir = ${exec_prefix}/sbin
  30. # Pathname of directory to install the include files
  31. includedir = ${prefix}/include
  32. # Pathname of directory to install the library
  33. libdir = ${exec_prefix}/lib
  34. # Pathname of directory to install the man pages
  35. mandir = ${datarootdir}/man
  36. # VPATH
  37. srcdir = .
  38. #
  39. # You shouldn't need to edit anything below.
  40. #
  41. LD = /usr/bin/ld
  42. CC = /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc
  43. AR = /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-ar
  44. LN_S = ln -s
  45. MKDEP =
  46. CCOPT = -fvisibility=hidden
  47. INCLS = -I. -I.. -I. -I./.. -I/usr/include/libnl3 -I/usr/local/include
  48. DEFS = -DHAVE_CONFIG_H
  49. ADDLOBJS =
  50. ADDLARCHIVEOBJS =
  51. LIBS = -lnl-genl-3 -lnl-3
  52. PTHREAD_LIBS = -lpthread
  53. CROSSFLAGS=
  54. CFLAGS = -g -O2 ${CROSSFLAGS}
  55. LDFLAGS = ${CROSSFLAGS}
  56. DYEXT = so
  57. V_RPATH_OPT = -Wl,-rpath,
  58. DEPENDENCY_CFLAG =
  59. EXTRA_NETWORK_LIBS=
  60. # Standard CFLAGS for building test programs
  61. FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
  62. INSTALL = /usr/bin/install -c
  63. INSTALL_PROGRAM = ${INSTALL}
  64. INSTALL_DATA = ${INSTALL} -m 644
  65. # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  66. # Also, gcc does not remove the .o before forking 'as', which can be a
  67. # problem if you don't own the file but can write to the directory.
  68. .c.o:
  69. @rm -f $@
  70. $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
  71. SRC = valgrindtest.c \
  72. capturetest.c \
  73. can_set_rfmon_test.c \
  74. filtertest.c \
  75. findalldevstest.c \
  76. opentest.c \
  77. reactivatetest.c \
  78. selpolltest.c \
  79. threadsignaltest.c
  80. TESTS = $(SRC:.c=)
  81. TAGFILES = \
  82. $(SRC) $(HDR)
  83. CLEANFILES = $(OBJ) $(TESTS)
  84. all: $(TESTS)
  85. capturetest: $(srcdir)/capturetest.c ../libpcap.a
  86. $(CC) $(FULL_CFLAGS) -I. -L. -o capturetest $(srcdir)/capturetest.c ../libpcap.a $(LIBS)
  87. can_set_rfmon_test: $(srcdir)/can_set_rfmon_test.c ../libpcap.a
  88. $(CC) $(FULL_CFLAGS) -I. -L. -o can_set_rfmon_test $(srcdir)/can_set_rfmon_test.c ../libpcap.a $(LIBS)
  89. filtertest: $(srcdir)/filtertest.c ../libpcap.a
  90. $(CC) $(FULL_CFLAGS) -I. -L. -o filtertest $(srcdir)/filtertest.c ../libpcap.a $(EXTRA_NETWORK_LIBS) $(LIBS)
  91. findalldevstest: $(srcdir)/findalldevstest.c ../libpcap.a
  92. $(CC) $(FULL_CFLAGS) -I. -L. -o findalldevstest $(srcdir)/findalldevstest.c ../libpcap.a $(EXTRA_NETWORK_LIBS) $(LIBS)
  93. opentest: $(srcdir)/opentest.c ../libpcap.a
  94. $(CC) $(FULL_CFLAGS) -I. -L. -o opentest $(srcdir)/opentest.c ../libpcap.a $(LIBS)
  95. reactivatetest: $(srcdir)/reactivatetest.c ../libpcap.a
  96. $(CC) $(FULL_CFLAGS) -I. -L. -o reactivatetest $(srcdir)/reactivatetest.c ../libpcap.a $(LIBS)
  97. selpolltest: $(srcdir)/selpolltest.c ../libpcap.a
  98. $(CC) $(FULL_CFLAGS) -I. -L. -o selpolltest $(srcdir)/selpolltest.c ../libpcap.a $(LIBS)
  99. threadsignaltest: $(srcdir)/threadsignaltest.c ../libpcap.a
  100. $(CC) $(FULL_CFLAGS) -I. -L. -o threadsignaltest $(srcdir)/threadsignaltest.c ../libpcap.a $(LIBS) $(PTHREAD_LIBS)
  101. valgrindtest: $(srcdir)/valgrindtest.c ../libpcap.a
  102. $(CC) $(FULL_CFLAGS) -I. -L. -o valgrindtest $(srcdir)/valgrindtest.c ../libpcap.a $(LIBS)
  103. clean:
  104. rm -f $(CLEANFILES)
  105. rm -rf *.dSYM
  106. distclean: clean
  107. rm -f Makefile config.cache config.log config.status \
  108. config.h stamp-h stamp-h.in
  109. rm -rf autom4te.cache
  110. install:
  111. uninstall:
  112. tags: $(TAGFILES)
  113. ctags -wtd $(TAGFILES)
  114. depend:
  115. ../$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)