#------------------------------------------------------------------------- # # postgres.mk-- # The master postgres makefile for implicit rules, definitions and # variables. Every postgres makefile (except those that include # postgres.subdir.mk only) should include this file. # # Copyright (c) 1994-5, Regents of the University of California # # # IDENTIFICATION # $Header: /cvsroot/pgsql/src/mk/Attic/postgres.mk,v 1.5 1996/10/04 20:20:51 scrappy Exp $ # #------------------------------------------------------------------------- ############################################################################## # # Default first rule (all): # This is here so that people doing "gmake" without arguments will # build the program (PROG), shell script (SHPROG) or library (LIB). To # override this, you could define a rule before including postgres.mk. # (See .dosomething: for an explanation of its presence.) # ifdef PROG all: localobj $(PROG) .dosomething else ifdef SHPROG all: localobj $(SHPROG) .dosomething else ifdef LIB #all: localobj lib$(LIB).a install-headers .dosomething all: localobj lib$(LIB).a else # if you don't define PROG, SHPROG or LIB before including this, use :: for # your all. (this is here so that clean is not the first rule) all:: localobj endif endif endif ############################################################################## # # Flags for programs (ar, yacc, etc.) # YFLAGS= -d RANLIB= touch AROPT= crs #AROPT= cq LINTFLAGS = # # Installation. # # This is the default for all platforms. If your platform uses a different # BSD-style install program, change it in src/mk/port/postgres.mk.$PORTNAME INSTALL= installbsd INSTLOPTS= -c -m 444 INSTL_EXE_OPTS= -c -m 555 INSTL_LIB_OPTS= -c -m 664 ############################################################################## # # Canned command sequences # # making partial objects (if BIGOBJS is defined) define make_partial $(LD) -r -o $(objdir)/$(@F) $(addprefix $(objdir)/,$(notdir $^)) endef # compiling a .c which is generated (and is in $objdir) define cc_inobjdir $(CC) -c $(CFLAGS) $(CPPFLAGS) $(objdir)/$(