mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Simplify make files, add full dependencies.
This commit is contained in:
		
							
								
								
									
										50
									
								
								src/backend/libpq/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								src/backend/libpq/Makefile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
#
 | 
			
		||||
# Makefile--
 | 
			
		||||
#    Makefile for libpq subsystem (backend half of libpq interface)
 | 
			
		||||
#
 | 
			
		||||
# IDENTIFICATION
 | 
			
		||||
#    $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.1 1996/10/27 09:47:47 bryanh Exp $
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
SRCDIR = ../..
 | 
			
		||||
include ../../Makefile.global
 | 
			
		||||
 | 
			
		||||
INCLUDE_OPT = -I.. \
 | 
			
		||||
              -I../port/$(PORTNAME) \
 | 
			
		||||
              -I../include \
 | 
			
		||||
              -I../../include
 | 
			
		||||
 | 
			
		||||
CFLAGS+=$(INCLUDE_OPT)
 | 
			
		||||
CFLAGS+= -DPOSTPORT='"$(POSTPORT)"'
 | 
			
		||||
 | 
			
		||||
# kerberos flags
 | 
			
		||||
ifdef KRBVERS
 | 
			
		||||
CFLAGS+= $(KRBFLAGS)
 | 
			
		||||
LDADD+= $(KRBLIBS)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
OBJS = be-dumpdata.o be-fsstubs.o be-pqexec.o \
 | 
			
		||||
       auth.o hba.o pqcomm.o portal.o util.o portalbuf.o pqpacket.o pqsignal.o
 | 
			
		||||
 | 
			
		||||
all: SUBSYS.o
 | 
			
		||||
 | 
			
		||||
SUBSYS.o: $(OBJS)
 | 
			
		||||
	$(LD) -r -o SUBSYS.o $(OBJS)
 | 
			
		||||
 | 
			
		||||
be-dumpdata.o be-pqexec.o: ../fmgr.h
 | 
			
		||||
 | 
			
		||||
../fmgr.h: 
 | 
			
		||||
	$(MAKE) -C .. fmgr.h
 | 
			
		||||
 | 
			
		||||
depend dep:
 | 
			
		||||
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
 | 
			
		||||
 | 
			
		||||
clean: 
 | 
			
		||||
	rm -f SUBSYS.o $(OBJS) 
 | 
			
		||||
 | 
			
		||||
ifeq (depend,$(wildcard depend))
 | 
			
		||||
include depend
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
@@ -1,28 +0,0 @@
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
#
 | 
			
		||||
# Makefile.inc--
 | 
			
		||||
#    Makefile for the (backend side) libpq module
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
# IDENTIFICATION
 | 
			
		||||
#    $Header: /cvsroot/pgsql/src/backend/libpq/Attic/Makefile.inc,v 1.2 1996/10/11 09:47:11 bryanh Exp $
 | 
			
		||||
#
 | 
			
		||||
#-------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# The frontend libpq interfaces to the backend through these files.
 | 
			
		||||
#
 | 
			
		||||
VPATH:= $(VPATH):$(CURDIR)/libpq
 | 
			
		||||
 | 
			
		||||
SRCS_LIBPQ= be-dumpdata.c be-fsstubs.c be-pqexec.c
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# These files are shared with the frontend library.
 | 
			
		||||
#
 | 
			
		||||
SRCS_LIBPQ+= auth.c hba.c pqcomm.c portal.c util.c portalbuf.c \
 | 
			
		||||
             pqpacket.c pqsignal.c
 | 
			
		||||
 | 
			
		||||
HEADERS+= auth.h hba.h be-fsstubs.h libpq-be.h libpq-fs.h libpq.h \
 | 
			
		||||
          pqcomm.h pqsignal.h
 | 
			
		||||
		Reference in New Issue
	
	Block a user