/freeswan/testing/utils/ikeping/Makefile

https://bitbucket.org/thelearninglabs/uclinux-distro-tll-public · Makefile · 106 lines · 51 code · 37 blank · 18 comment · 0 complexity · d07e03194d717f0d9976c5d1e128e5df MD5 · raw file

  1. # Pluto Makefile
  2. # Copyright (C) 2001 Michael Richardson
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by the
  6. # Free Software Foundation; either version 2 of the License, or (at your
  7. # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. # for more details.
  13. #
  14. # RCSID $Id: Makefile,v 1.5 2002/03/27 23:28:25 mcr Exp $
  15. include ../../../Makefile.inc
  16. FMANDIR=$(MANTREE)/man5
  17. PMANDIR=$(MANTREE)/man8
  18. FREESWANSRCDIR=../../..
  19. FREESWANLIBDIR=${FREESWANSRCDIR}/lib
  20. FREESWANINCLS= -I$(FREESWANLIBDIR) -I${FREESWANSRCDIR}
  21. FREESWANLIB=$(FREESWANLIBDIR)/libfreeswan.a
  22. CFLAGS = -g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast \
  23. -Wcast-qual -Wmissing-declarations -Wwrite-strings
  24. CFLAGS+= -Wstrict-prototypes
  25. CFLAGS+= -Werror
  26. #CFLAGS+= -Wundef
  27. HDRDIRS = $(FREESWANINCLS)
  28. CPPFLAGS = $(HDRDIRS) $(BYTE_ORDER) -DDEBUG
  29. ALLFLAGS = $(CPPFLAGS) $(CFLAGS)
  30. LIBSWHACK =
  31. BINNAMEPING = ikeping
  32. RM = /bin/rm
  33. RMFLAGS = -f
  34. .SUFFIXES:
  35. .SUFFIXES: .c .o
  36. # files for a (source) distribution
  37. OBJSPING = ikeping.o $(FREESWANLIB)
  38. all: $(BINNAMEPING)
  39. install: all
  40. $(INSTALL) $(INSTBINFLAGS) $(BINNAMEPING) $(BINDIR)
  41. $(INSTALL) $(INSTMANFLAGS) ikeping.8 $(PMANDIR)/ipsec_ikeping.8
  42. $(BINNAMEPING): $(OBJSPING)
  43. $(CC) -o $(BINNAMEPING) $(LDFLAGS) $(OBJSPING) $(LIBSPING)
  44. distlist:
  45. @echo $(DIST)
  46. # Exuberant Ctags doesn't work if LC_ALL is set to something other than C
  47. CTAGSFLAGS = -N --format=1 # fishy options required for Exuberant Ctags
  48. tags: $(DISTSRC)
  49. LC_ALL=C ctags $(CTAGSFLAGS) $(DISTSRC)
  50. cleanall: clean
  51. distclean: clean
  52. mostlyclean: clean
  53. realclean: clean
  54. clean:
  55. $(RM) $(RMFLAGS) $(OBJSPING) *.core core *~ a.out ktrace.out
  56. $(RM) $(RMFLAGS) $(BINNAMEPING)
  57. check:
  58. echo no checks in lib right now.
  59. .c.o:
  60. $(CC) $(COPTS) $(ALLFLAGS) -c $<
  61. # These rules are not for production use
  62. $(FREESWANLIB):
  63. cd $(FREESWANLIBDIR) ; $(MAKE)
  64. programs: ikeping
  65. checkprograms: ikeping
  66. check:
  67. ikeping.o: ${FREESWANSRCDIR}/pluto/constants.h
  68. ikeping.o: ${FREESWANSRCDIR}/pluto/packet.h
  69. ikeping.o: ${FREESWANSRCDIR}/lib/freeswan.h