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

SQL Server

开发平台:

Unix_Linux

  1. ##########################################################################
  2. ##                 GNU SQL Compiler  (common support)                   ##
  3. ##########################################################################
  4. ##
  5. ## $Id: Makefile.src.other.in,v 1.248 1997/04/16 09:39:37 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. #                make program                                            #
  34. ##########################################################################
  35. all: client server srcs
  36. client: $(LIBCLI) 
  37. server: $(LIBSER)
  38. srcs: alloca.c ansi2knr.c a2k_p1.c ## get them out from RCS on build stage.
  39. libgss_ser : svr_lib.$(O) vmemory.$(O) sql_decl.$(O) check_tp.$(O) type_lib.$(O) xmem.$(O) sql_type.$(O) @ALLOCA@
  40. echo $? >$@
  41. # sorry for ugly technique
  42. cp  xmem.$(O) sql_decl.$(O) $(LIB)
  43. libgss_cli :  cl_lib.$(O) xmem.$(O) sql_type.$(O) sql_decl.$(O)
  44. echo $? >$@
  45. alloca.$(O)  : alloca.c   ../include/config.h
  46. xmem.$(O)    : xmem.c     $(INC)/xmem.h
  47. vmemory.$(O) : vmemory.c  $(INC)/vmemory.h $(INC)/xmem.h
  48. sql_decl.$(O): sql_decl.c $(INC)/global.h
  49. check_tp.$(O): check_tp.c $(INC)/global.h
  50. type_lib.$(O): type_lib.c $(INC)/global.h $(INC)/type_lib.h $(INC)/inprtyp.h 
  51.                $(INC)/sql.h $(IINC)/totdecl.h $(IINC)/fieldtp.h $(INC)/sql.h
  52. sql_type.$(O): sql_type.c $(INC)/global.h $(INC)/sql.h
  53. svr_lib.$(O) : svr_lib.c  $(INC)/svr_lib.h  $(INC)/global.h $(IINC)/totdecl.h 
  54. cl_lib.$(O)  : cl_lib.c   $(INC)/cl_lib.h $(INC)/sql.h $(LINC)/gsqltrn.h 
  55.                $(INC)/xmem.h $(INC)/errors.h $(INC)/sql_decl.h
  56. a2k:    a2k_p1 ansi2knr
  57. $(CP) ansi2knr $(LIB)/ansi2knr.pass1
  58. $(CP) a2k_p1   $(LIB)/ansi2knr.pass2
  59. ansi2knr : ansi2knr.c ../include/config.h
  60. a2k_p1 : a2k_p1.c
  61. a2k_p1.c : a2k_p1.l
  62. clean::
  63. - rm -f a2k_p1 ansi2knr