home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / cvs-1.8.7-src.tgz / tar.out / fsf / cvs / lib / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  3KB  |  169 lines

  1. # Makefile for library files used by GNU CVS.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988-1994 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. # $CVSid: @(#)Makefile.in 1.21 94/09/24 $
  20. srcdir     = @srcdir@
  21. top_srcdir = @top_srcdir@
  22. cvs_srcdir = @top_srcdir@/src
  23. VPATH      = @srcdir@
  24.  
  25. SHELL = /bin/sh
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29.  
  30. SOURCES = \
  31.     argmatch.c \
  32.     dup2.c \
  33.     fnmatch.c \
  34.     ftruncate.c \
  35.     getdate.c \
  36.     getdate.y \
  37.     getline.c \
  38.     getopt.c \
  39.     getopt1.c \
  40.     getwd.c \
  41.     hostname.c \
  42.     md5.c \
  43.     mkdir.c \
  44.     regex.c \
  45.     rename.c \
  46.     savecwd.c \
  47.     sighandle.c \
  48.     strdup.c \
  49.     strstr.c \
  50.     strerror.c \
  51.     strippath.c \
  52.     stripslash.c \
  53.     strtoul.c \
  54.     valloc.c \
  55.     vasprintf.c \
  56.     waitpid.c \
  57.     xgetwd.c \
  58.     yesno.c
  59.  
  60. HEADERS = getline.h getopt.h fnmatch.h regex.h system.h wait.h md5.h savecwd.h
  61.  
  62. OBJECTS = \
  63.     @LIBOBJS@ \
  64.     argmatch.o \
  65.     getline.o \
  66.     getopt.o \
  67.     getopt1.o \
  68.     md5.o \
  69.     savecwd.o \
  70.     sighandle.o \
  71.     strippath.o \
  72.     stripslash.o \
  73.     xgetwd.o \
  74.     yesno.o \
  75.     getdate.o
  76.  
  77. DISTFILES = \
  78.     .cvsignore ChangeLog ChangeLog.fsf Makefile.in \
  79.     ${SOURCES} ${HEADERS}
  80.  
  81. DEFS = @DEFS@
  82. RANLIB = @RANLIB@
  83.  
  84. CC       = @CC@
  85. CFLAGS = -g
  86. CPPFLAGS=
  87. AR    = @AR@
  88. AR_FLAGS = rc
  89.  
  90. YACC = @YACC@
  91.  
  92. .c.o:
  93.     $(CC) $(CPPFLAGS) -I.. -I$(srcdir) -I$(cvs_srcdir) \
  94.               $(DEFS) $(CFLAGS) -c $<
  95.  
  96. all: libcvs.a
  97. .PHONY: all
  98.  
  99. install: all
  100. .PHONY: install
  101.  
  102. installdirs:
  103. .PHONY: installdirs
  104.  
  105. tags: $(DISTFILES)
  106.     ctags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  107.  
  108. TAGS: $(DISTFILES)
  109.     etags `for i in $(DISTFILES); do echo $(srcdir)/$$i; done`
  110.  
  111. ls:
  112.     @echo $(DISTFILES)
  113. .PHONY: ls
  114.  
  115. clean:
  116.     rm -f *.a *.o
  117. .PHONY: clean
  118.  
  119. distclean: clean
  120.     rm -f tags TAGS Makefile
  121. .PHONY: distclean
  122.  
  123. realclean: distclean
  124.     rm -f *.tab.c getdate.c
  125. .PHONY: realclean
  126.  
  127. dist-dir:
  128.     mkdir ${DISTDIR}
  129.     for i in ${DISTFILES}; do \
  130.       ln $(srcdir)/$${i} ${DISTDIR}; \
  131.     done
  132. .PHONY: dist-dir
  133.  
  134. libcvs.a: $(OBJECTS)
  135.     $(AR) $(AR_FLAGS) $@ $(OBJECTS)
  136.     $(RANLIB) $@
  137.  
  138. getdate.c: getdate.y
  139.     @echo expect 10 shift/reduce conflicts
  140.     $(YACC) $(srcdir)/getdate.y
  141.     -@if test -f y.tab.c; then \
  142.        mv y.tab.c getdate.c ;\
  143.     else \
  144.        if test -f getdate.tab.c ; then \
  145.            mv getdate.tab.c getdate.c ; \
  146.        else \
  147.            echo '*** Unable to create getdate.c' ;\
  148.        fi ;\
  149.     fi
  150.  
  151. fnmatch.o: fnmatch.h
  152. getopt1.o: getopt.h
  153. regex.o: regex.h
  154. getwd.o: system.h
  155. md5.o: md5.h
  156.  
  157. xlint:
  158.     @echo xlint does nothing
  159.  
  160. subdir = lib
  161. Makefile: ../config.status Makefile.in
  162.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  163.  
  164. #../config.status: ../configure
  165. #    cd .. ; $(SHELL) config.status --recheck
  166.  
  167. #../configure: ../configure.in
  168. #    cd $(top_srcdir) ; autoconf
  169.