home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.lbl.gov / 2014.05.ftp.ee.lbl.gov.tar / ftp.ee.lbl.gov / cf-1.2.3.tar.gz / cf-1.2.3.tar / cf-1.2.3 / Makefile.in < prev    next >
Makefile  |  2010-03-05  |  4KB  |  129 lines

  1. #  Copyright (c) 1991, 1992, 1998, 1999, 2001, 2004, 2009, 2010
  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. # @(#) $Id: Makefile.in 44 2010-03-06 04:08:31Z leres $ (LBL)
  21.  
  22. #
  23. # Various configurable paths (remember to edit Makefile.in, not Makefile)
  24. #
  25.  
  26. # Top level hierarchy
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29. datarootdir = @datarootdir@
  30. # Pathname of directory to install the binary
  31. BINDEST = @bindir@
  32. # Pathname of directory to install the man page
  33. MANDEST = @mandir@
  34.  
  35. # VPATH
  36. srcdir = @srcdir@
  37. VPATH = @srcdir@
  38.  
  39. #
  40. # You shouldn't need to edit anything below here.
  41. #
  42.  
  43. PROG = cf
  44. ALL = ${PROG}
  45. CC = @CC@
  46. CCOPT = @V_CCOPT@
  47. INCLS = @V_INCLS@
  48. DEFS = @DEFS@
  49.  
  50. # Standard CFLAGS
  51. CFLAGS = @CFLAGS@ $(CCOPT) $(DEFS) $(INCLS)
  52.  
  53. # Standard LDFLAGS
  54. LDFLAGS = @LDFLAGS@
  55.  
  56. # Standard LIBS
  57. LIBS = @LIBS@
  58.  
  59. INSTALL = @INSTALL@
  60.  
  61. # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  62. # Also, gcc does not remove the .o before forking 'as', which can be a
  63. # problem if you don't own the file but can write to the directory.
  64. .c.o:
  65.     @rm -f $@
  66.     $(CC) $(CFLAGS) -c $(srcdir)/$*.c
  67.  
  68. GENSRC = version.c
  69. LIBOBJS = @LIBOBJS@
  70. LIBSRCS = $(LIBOBJS:.o=.c)
  71. OBJS = ${PROG}.o version.o $(LIBOBJS)
  72.  
  73. TAGHDR =
  74.  
  75. TAGFILES = ${PROG}.c $(TAGHDR)
  76.  
  77. CLEANFILES = $(ALL) $(GENSRC) $(OBJS) $(LIBOBJS)
  78.  
  79. all: $(ALL)
  80.  
  81. ${PROG}: $(OBJS)
  82.     @rm -f $@
  83.     $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  84.  
  85. version.o: version.c
  86. version.c: $(srcdir)/VERSION
  87.     @rm -f $@
  88.     sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
  89.  
  90. install: ${PROG}
  91.     $(INSTALL) -m 555 -o bin -g bin ${PROG} $(DESTDIR)$(BINDEST)
  92.  
  93. install-man:
  94.     $(INSTALL) -m 444 -o bin -g bin ${PROG}.1 $(DESTDIR)$(MANDEST)/man1
  95.  
  96. clean: force
  97.     rm -f $(CLEANFILES)
  98.  
  99. distclean: force
  100.     rm -rf $(CLEANFILES) Makefile config.cache config.log config.status \
  101.         gnuc.h os-proto.h autom4te.cache
  102.  
  103. tags: $(TAGFILES)
  104.     ctags -wtd $(TAGFILES)
  105.  
  106. dist tar: force
  107.     @cwd=`pwd` ; name=${PROG}-`cat VERSION` ; \
  108.         list="" ; tar="tar chf" ; temp="$$name.tar.gz" ; \
  109.         for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
  110.         echo \
  111.         "rm -f $$name; ln -s . $$name" ; \
  112.          rm -f $$name; ln -s . $$name ; \
  113.         echo \
  114.         "$$tar - [lots of files] | gzip > $$temp" ; \
  115.          $$tar - $$list | gzip > $$temp ; \
  116.         echo \
  117.         "rm -f $$name" ; \
  118.          rm -f $$name
  119.  
  120. sign:
  121.     @name=${PROG}-`cat VERSION`.tar.gz; \
  122.         set -x; \
  123.         rm -f $${name}.asc; \
  124.         gpg --armor --detach-sign $${name}
  125.  
  126. force: /tmp
  127. depend: $(GENSRC) force
  128.     ./mkdep -c $(CC) $(DEFS) $(INCLS) $(GENSRC) $(LIBSRCS)
  129.