Makefile 4.2 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 = /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. PROG=libpcap
  60. RPCAPD_LIBS =
  61. # Standard CFLAGS
  62. FULL_CFLAGS = $(CCOPT) $(INCLS) $(DEFS) $(CFLAGS)
  63. INSTALL = /usr/bin/install -c
  64. INSTALL_PROGRAM = ${INSTALL}
  65. INSTALL_DATA = ${INSTALL} -m 644
  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 = daemon.c \
  73. fileconf.c \
  74. log-stderr.c \
  75. rpcapd.c
  76. OBJ = $(SRC:.c=.o) ../rpcap-protocol.o ../sockutils.o ../fmtutils.o
  77. PUBHDR =
  78. HDR = $(PUBHDR) log.h
  79. TAGFILES = \
  80. $(SRC) $(HDR)
  81. CLEANFILES = $(OBJ) rpcapd
  82. MANADMIN = \
  83. rpcapd.manadmin.in
  84. rpcapd: $(OBJ) ../libpcap.a
  85. $(CC) $(CCOPT) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) ../libpcap.a $(LIBS) $(RPCAPD_LIBS) $(PTHREAD_LIBS)
  86. clean:
  87. rm -f $(CLEANFILES)
  88. distclean: clean
  89. rm -f Makefile config.cache config.log config.status \
  90. config.h stamp-h stamp-h.in
  91. rm -f $(MANADMIN:.in=)
  92. rm -rf autom4te.cache
  93. install: rpcapd
  94. [ -d $(DESTDIR)$(sbindir) ] || \
  95. (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir))
  96. $(INSTALL_PROGRAM) rpcapd $(DESTDIR)$(sbindir)/rpcapd
  97. [ -d $(DESTDIR)$(mandir)/man8 ] || \
  98. (mkdir -p $(DESTDIR)$(mandir)/man8; chmod 755 $(DESTDIR)$(mandir)/man8)
  99. for i in $(MANADMIN); do \
  100. $(INSTALL_DATA) `echo $$i | sed 's/.manadmin.in/.manadmin/'` \
  101. $(DESTDIR)$(mandir)/man8/`echo $$i | sed 's/.manadmin.in/.8/'`; done
  102. uninstall:
  103. rm -f $(DESTDIR)$(sbindir)/rpcapd
  104. for i in $(MANADMIN); do \
  105. rm -f $(DESTDIR)$(mandir)/man8/`echo $$i | sed 's/.manadmin.in/.8/'`; done
  106. tags: $(TAGFILES)
  107. ctags -wtd $(TAGFILES)
  108. depend:
  109. ../$(MKDEP) -c "$(CC)" -m "$(DEPENDENCY_CFLAG)" $(CFLAGS) $(DEFS) $(INCLS) $(SRC)