Makefile.in
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:3k
源码类别:

SQL Server

开发平台:

Unix_Linux

  1. ##########################################################################
  2. ##               GNU SQL Server  (crash recovery utilities)             ##
  3. ##########################################################################
  4. ##
  5. ## $Id: Makefile.src.engine.rcvutl.in,v 1.245 1997/03/31 03:46:38 kml Exp $
  6. ##
  7. ## This file is a part of GNU SQL Server
  8. ##
  9. ## Copyright (c) 1996, 1997, Free Software Foundation, Inc
  10. ## Developed at Institute of System Programming of Russian Academy of Science
  11. ## This file is written by Michael Kimelman
  12. ##
  13. ## This program is free software; you can redistribute it and/or modify it under
  14. ## the terms of the GNU General Public License as published by the Free
  15. ## Software Foundation; either version 2 of the License, or (at your option)
  16. ## any later version.
  17. ##
  18. ## This program is distributed in the hope that it will be useful, but WITHOUT
  19. ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  20. ## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  21. ## more details.
  22. ##
  23. ## You should have received a copy of the GNU General Public License along with
  24. ## this program; if not, write to the Free Software Foundation, Inc.,
  25. ## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  26. ##
  27. ## Contacts: gss@ispras.ru
  28. ##
  29. srcdir=@srcdir@
  30. VPATH=@srcdir@
  31. include ../../Makefile_h
  32. ##======================================================================##
  33. ##          other setups                                                ##
  34. ##======================================================================##
  35. REPOS=$(SERVDIR)/repository
  36. all: install
  37. install: $(SERVBIN)/rcvsc $(REPOS)/segs # it's just a 'reper' point
  38. $(SERVBIN)/rcvsc $(REPOS)/segs : i-stamp
  39. i-stamp : $(LIBSR_DEP) rcvsc rcvmc
  40. [ -d $(SERVBIN)          ] || mkdir -p $(SERVBIN)
  41. [ -d $(REPOS)/segs       ] || mkdir -p $(REPOS)/segs
  42. [ -d $(REPOS)/ljs        ] || mkdir -p $(REPOS)/ljs
  43. [ -d $(REPOS)/dubsegs    ] || mkdir -p $(REPOS)/dubsegs
  44. [ -d $(SERVDIR)/segs     ] || mkdir -p $(SERVDIR)/segs
  45. [ -d $(SERVDIR)/jrnls    ] || mkdir -p $(SERVDIR)/jrnls
  46. [ -d $(SERVDIR)/jarchive ] || mkdir -p $(SERVDIR)/jarchive
  47. $(CP)  rcvsc $(SERVBIN)
  48. $(CP)  rcvmc $(SERVBIN)
  49. [ ! -f $@ ] || $(RM) $@
  50. echo .>$@
  51. bin: $(LIBSR_DEP) rcvsc rcvmc
  52. SRCS= strgcr.c librcv.c libini.c
  53. SRCM= memcr.c librcv.c libini.c
  54. SRCOBJS=        ${SRCS:.c=.$(O)}
  55. SRCOBJM=        ${SRCM:.c=.$(O)}
  56. rcvsc    : $(SRCOBJS) 
  57. echo --  generating $@
  58. - $(RM) $@ 
  59. $(LD) $(SRCOBJS) $(SRLIBS) -o $@ 
  60. rcvmc    : $(SRCOBJM) 
  61. echo --  generating $@
  62. - $(RM) $@ 
  63. $(LD) $(SRCOBJM) $(SRLIBS) -o $@ 
  64. clean::
  65. - $(RM) rcvsc rcvmc 
  66. headers   : puprcv.h 
  67. strgcr.$(O)  : strgcr.c $(IINC)/strml.h $(IINC)/destrn.h
  68.             puprcv.h $(IINC)/adfstr.h $(IINC)/inpop.h 
  69.             $(IINC)/rnmtp.h $(IINC)/pupsi.h $(IINC)/tptrn.h 
  70.             $(IINC)/pupans.h $(IINC)/fieldtp.h $(IINC)/deftr.h fdclrcv.h 
  71. memcr.$(O)   : memcr.c $(IINC)/strml.h $(IINC)/destrn.h
  72.     $(IINC)/inpop.h puprcv.h fdclrcv.h $(IINC)/totdecl.h
  73. librcv.$(O)  : librcv.c $(IINC)/destrn.h $(IINC)/rnmtp.h 
  74.              $(IINC)/pupsi.h $(IINC)/tptrn.h $(IINC)/pupans.h 
  75.              $(IINC)/fieldtp.h $(IINC)/deftr.h $(IINC)/strml.h 
  76.              $(IINC)/inpop.h puprcv.h fdclrcv.h $(EINC)/admdef.h $(IINC)/totdecl.h
  77. libini.$(O)  : libini.c $(IINC)/strml.h $(IINC)/adfstr.h $(EINC)/admdef.h 
  78.             $(IINC)/totdecl.h
  79. fdclrcv.h : $(IINC)/f1f2decl.h $(IINC)/fdcltrn.h