Makefile
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:2k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. #-------------------------------------------------------------------------
  2. #
  3. # Makefile--
  4. #    Makefile for catalog
  5. #
  6. # IDENTIFICATION
  7. #    $Header: /usr/local/cvsroot/pgsql/src/backend/catalog/Makefile,v 1.17 1999/03/27 17:25:09 tgl Exp $
  8. #
  9. #-------------------------------------------------------------------------
  10. SRCDIR = ../..
  11. include ../../Makefile.global
  12. CFLAGS += -I..
  13. OBJS = catalog.o heap.o index.o indexing.o aclchk.o 
  14.        pg_aggregate.o pg_operator.o pg_proc.o pg_type.o
  15. all: SUBSYS.o global1.bki.source local1_template1.bki.source 
  16. global1.description local1_template1.description
  17. SUBSYS.o: $(OBJS)
  18. $(LD) -r -o SUBSYS.o $(OBJS)
  19. GENBKI= ./genbki.sh
  20. GLOBALBKI_SRCS= $(addprefix ../../include/catalog/, 
  21.                   pg_database.h pg_variable.h pg_shadow.h 
  22.                   pg_group.h pg_log.h 
  23.                  )
  24. LOCALBKI_SRCS= $(addprefix ../../include/catalog/, 
  25.                  pg_proc.h pg_type.h pg_attribute.h pg_class.h 
  26.                  pg_inherits.h pg_index.h pg_statistic.h 
  27.                  pg_operator.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h 
  28.                  pg_language.h 
  29.                  pg_aggregate.h pg_ipl.h pg_inheritproc.h 
  30.                  pg_rewrite.h pg_listener.h pg_description.h indexing.h 
  31.                 )
  32. global1.bki.source: $(GENBKI) $(GLOBALBKI_SRCS)
  33. ifneq ($(PORTNAME), win)
  34. sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $@ 2>global1.description
  35. else
  36. $(GENBKI) $(BKIOPTS) $(GLOBALBKI_SRCS) > $@ 2>global1.description
  37. endif
  38. local1_template1.bki.source: $(GENBKI) $(LOCALBKI_SRCS)
  39. ifneq ($(PORTNAME), win)
  40. sh $(SHOPTS) $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@ 2>local1_template1.description
  41. else
  42. $(GENBKI) $(BKIOPTS) $(LOCALBKI_SRCS) > $@ 2>local1_template1.description
  43. endif
  44. depend dep:
  45. $(CC) -MM $(CFLAGS) *.c >depend
  46. clean: 
  47. rm -f SUBSYS.o $(OBJS) global1.bki.source local1_template1.bki.source 
  48. global1.description local1_template1.description
  49. ifeq (depend,$(wildcard depend))
  50. include depend
  51. endif