head	1.37;
access;
symbols
	Version_2_1:1.27
	Version_2:1.16;
locks; strict;


1.37
date	92.08.12.03.38.10;	author mao;	state Exp;
branches;
next	1.36;

1.36
date	92.06.23.18.23.18;	author mer;	state Exp;
branches;
next	1.35;

1.35
date	92.05.21.19.03.42;	author mer;	state Exp;
branches;
next	1.34;

1.34
date	92.02.25.15.32.57;	author clarsen;	state Exp;
branches;
next	1.33;

1.33
date	92.02.24.02.01.34;	author mer;	state Exp;
branches;
next	1.32;

1.32
date	91.05.22.21.38.49;	author kemnitz;	state Exp;
branches;
next	1.31;

1.31
date	91.05.14.14.32.25;	author kemnitz;	state Exp;
branches;
next	1.30;

1.30
date	91.05.13.01.12.49;	author kemnitz;	state Exp;
branches;
next	1.29;

1.29
date	91.05.09.03.24.41;	author kemnitz;	state Exp;
branches;
next	1.28;

1.28
date	91.05.07.21.18.00;	author mao;	state Exp;
branches;
next	1.27;

1.27
date	91.03.07.01.57.22;	author kemnitz;	state Exp;
branches;
next	1.26;

1.26
date	91.02.25.20.16.18;	author kemnitz;	state Exp;
branches;
next	1.25;

1.25
date	91.02.06.15.49.29;	author kemnitz;	state Exp;
branches;
next	1.24;

1.24
date	90.10.23.14.48.37;	author kemnitz;	state Exp;
branches;
next	1.23;

1.23
date	90.10.19.09.05.34;	author goh;	state Exp;
branches;
next	1.22;

1.22
date	90.09.19.14.41.32;	author hong;	state Exp;
branches;
next	1.21;

1.21
date	90.08.26.16.30.14;	author cimarron;	state Exp;
branches;
next	1.20;

1.20
date	90.08.23.15.37.25;	author kemnitz;	state Exp;
branches;
next	1.19;

1.19
date	90.08.22.17.25.32;	author kemnitz;	state Exp;
branches;
next	1.18;

1.18
date	90.08.21.12.46.21;	author cimarron;	state Exp;
branches;
next	1.17;

1.17
date	90.08.17.15.29.45;	author kemnitz;	state Exp;
branches;
next	1.16;

1.16
date	90.07.23.20.30.11;	author kemnitz;	state Version_2;
branches;
next	1.15;

1.15
date	90.07.20.20.26.42;	author mao;	state Exp;
branches;
next	1.14;

1.14
date	90.07.12.18.51.53;	author kemnitz;	state Exp;
branches;
next	1.13;

1.13
date	90.07.12.14.36.53;	author goh;	state Exp;
branches;
next	1.12;

1.12
date	90.07.11.21.20.14;	author kemnitz;	state Exp;
branches;
next	1.11;

1.11
date	90.07.11.20.25.07;	author kemnitz;	state Exp;
branches;
next	1.10;

1.10
date	90.06.18.16.09.08;	author cimarron;	state Exp;
branches;
next	1.9;

1.9
date	90.04.19.17.40.13;	author kemnitz;	state Exp;
branches;
next	1.8;

1.8
date	90.04.19.17.36.19;	author kemnitz;	state Exp;
branches;
next	1.7;

1.7
date	90.04.19.17.31.45;	author kemnitz;	state Exp;
branches;
next	1.6;

1.6
date	89.11.06.17.58.21;	author mao;	state Exp;
branches;
next	1.5;

1.5
date	89.11.06.17.53.54;	author mao;	state Exp;
branches;
next	1.4;

1.4
date	89.10.11.09.48.48;	author mao;	state Exp;
branches;
next	1.3;

1.3
date	89.10.11.08.29.04;	author mao;	state Exp;
branches;
next	1.2;

1.2
date	89.10.10.19.17.03;	author mao;	state Exp;
branches;
next	1.1;

1.1
date	89.10.03.15.49.49;	author mao;	state Exp;
branches;
next	;


desc
@makefile for postgres support code
@


1.37
log
@add pagedoc, shmemdoc
@
text
@# ----------------
#	support.mk	- postgres support program makefile
#
# Note:	if $STRIPOBJS is 't' then targets are stripped after compilation.
#	This defaults to 'f' by Make.
#
## $Header: /private/mao/postgres/newconf/RCS/support.mk,v 1.36 1992/06/23 18:23:18 mer Exp mao $
# ----------------

#include "config.mk"
#include "defaults.mk"
#include "FILES/support.mkf"

.SUFFIXES: .c .o .lex .y
DFLAGS= -DPG_STANDALONE

support: pg_uid bkifiles libpq monitor vacuum pg_version pg_id shmemdoc pagedoc

# ----------------
#    libpq.a
# ----------------
libpq: $(OD)/libpq.a

$(OD)/libpq.a: $(LIBPQ)
	@@echo ar rvu libpq.a ...
	@@ar rvu $(OD)/libpq.a $(LIBPQ)
	ranlib $(OD)/libpq.a

# -----------------
#    pg_uid
# -----------------
pg_uid: $(OD)/support/pg_uid 

$(OD)/support/pg_uid: $(PG_UID)
	@@ echo linking pg_uid
	@@ cc -o $(OD)/support/pg_uid $(PG_UID)

# ----------------
#    bkifiles
# ----------------
bkifiles: $(OD)/support/dbdb.bki $(OD)/support/local.bki
	@@echo Removing any old bki files
	@@rm -f $(TREE)/files/global1.bki
	@@rm -f $(TREE)/files/local1_template1.bki

$(OD)/support/dbdb.bki: $(DBDB_SRC)
	@@ echo "creating dbdb.bki" ; \
	cd $(SD)/lib/H/catalog ; \
	TREE=$(TREE);export TREE; \
	OD=`basename $(OD)`;export OD; \
	SD=`basename $(SD)`;export SD; \
	$(GENBKI) $(BKIFLAGS) $(DBDB_SRC) > $(OD)/support/dbdb.bki

$(OD)/support/local.bki: $(LOCAL_SRC)
	@@ echo "creating local.bki" ; \
	cd $(SD)/lib/H/catalog ; \
	TREE=$(TREE);export TREE; \
	OD=`basename $(OD)`;export OD;\
	SD=`basename $(SD)`;export SD; \
	$(GENBKI) $(BKIFLAGS) $(LOCAL_SRC) > $(OD)/support/local.bki

# ----------------
#    rmbkifiles
# ----------------
rmbkifiles:
	@@ echo "removing bki files" ; \
	rm -f $(OD)/support/dbdb.bki $(OD)/support/local.bki

# ----------------
#    pg_version
# ----------------
pg_version: $(OD)/support/pg_version

$(OD)/support/pg_version: $(PG_VERSION)
	@@ echo "linking pg_version"
	@@ $(CC) $(CFLAGS) -o $(OD)/support/pg_version $(PG_VERSION)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/pg_version ; \
		 else true ; fi'


# ----------------
#    pg_id
# ----------------
pg_id: $(OD)/support/pg_id

$(OD)/support/pg_id: $(PG_ID)
	@@ echo "linking pg_id"
	@@ $(CC) $(CFLAGS) -o $(OD)/support/pg_id $(PG_ID)

# ----------------
#    monitor
# ----------------
monitor: $(OD)/support/monitor 

$(OD)/support/monitor: $(OD)/lib/C/simplelists.o $(OD)/libpq.a $(MONITOR)
	@@ echo "linking monitor"
	@@ $(CC) $(CFLAGS) -o $(OD)/support/monitor \
		$(MONITOR) $(OD)/lib/C/simplelists.o $(OD)/libpq.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/monitor ; \
		 else true ; fi'

# ----------------
#    monitor
# ----------------
puremonitor: $(OD)/support/puremonitor 

$(OD)/support/puremonitor: $(OD)/lib/C/simplelists.o $(OD)/libpq.a $(MONITOR)
	@@ echo "linking a pure monitor"
	@@ purify $(CC) $(CFLAGS) -o $(OD)/support/monitor \
		$(MONITOR) $(OD)/lib/C/simplelists.o $(OD)/libpq.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/monitor ; \
		 else true ; fi'

# ----------------
#    vacuum
# ----------------
vacuum: $(SD)/scripts/vacuum

$(SD)/scripts/vacuum: $(SD)/scripts/vacuum.sh
	@@ echo "sed'ing vacuum"
	@@ sed -e s%_POSTGRESBIN_%$(POSTGRESBIN)% $(SD)/scripts/vacuum.sh > \
					       $(SD)/scripts/vacuum
	@@ chmod 555 $(SD)/scripts/vacuum

# ----------------
#    shmemdoc
# ----------------
shmemdoc: $(OD)/support/shmemdoc

$(OD)/support/shmemdoc: $(SD)/support/shmemdoc.c
	@@ echo 'compiling shmemdoc'
	@@ $(CC) $(CFLAGS) -o $(OD)/support/shmemdoc $(SD)/support/shmemdoc.c

# ----------------
#    pagedoc
# ----------------
pagedoc: $(OD)/support/pagedoc

$(OD)/support/pagedoc: $(SD)/support/pagedoc.c
	@@ echo 'compiling pagedoc'
	@@ $(CC) $(CFLAGS) -o $(OD)/support/pagedoc $(SD)/support/pagedoc.c

# ----------------
#    xexemon
# ----------------
XLIBS = $(OD)/libXs.a -lXaw -lXmu -lXt -lX11 -lm

xexemon: $(OD)/support/xexemon 

$(OD)/libXs.a: $(OD)/support/Tree.o
	ar ruv $(OD)/libXs.a $(OD)/support/Tree.o
	ranlib $(OD)/libXs.a 

$(OD)/support/xexemon: $(OD)/support/xexemon.o $(OD)/libXs.a
	$(CC) $(CFLAGS) -o $@@ $@@.o  $(XLIBS)
@


1.36
log
@support removal of pg group from pg_user via config file option
@
text
@d7 1
a7 1
## $Header: /private/mer/pg2/newconf/RCS/support.mk,v 1.35 1992/05/21 19:03:42 mer Exp mer $
d17 1
a17 1
support: pg_uid bkifiles libpq monitor vacuum pg_version pg_id
d127 18
@


1.35
log
@add purify targets
@
text
@d7 1
a7 1
## $Header: /u/mer/pg.new/newconf/RCS/support.mk,v 1.34 1992/02/25 15:32:57 clarsen Exp mer $
d17 1
a17 1
support: bkifiles libpq monitor vacuum pg_version pg_id
d29 9
d52 1
a52 1
	$(GENBKI) $(DBDB_SRC) > $(OD)/support/dbdb.bki
d60 1
a60 1
	$(GENBKI) $(LOCAL_SRC) > $(OD)/support/local.bki
@


1.34
log
@async portals.
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.33 92/02/24 02:01:34 mer Exp Locker: clarsen $
d90 13
@


1.33
log
@remove old bkifiles when new ones are made (so install installs them)
@
text
@d7 1
a7 1
## $Header: /users/mer/pg_opt.new/newconf/RCS/support.mk,v 1.32 1991/05/22 21:38:49 kemnitz Exp mer $
d87 1
a87 1
$(OD)/support/monitor: $(OD)/libpq.a $(MONITOR)
d90 1
a90 1
		$(MONITOR) $(OD)/libpq.a $(LIBS)
@


1.32
log
@changed "compiling ..." to "linking ..."
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.31 91/05/14 14:32:25 kemnitz Exp Locker: kemnitz $
d33 3
@


1.31
log
@changed cc to $(CC)
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.30 91/05/13 01:12:49 kemnitz Exp Locker: kemnitz $
d63 1
a63 1
	@@ echo "compiling pg_version"
d76 1
a76 1
	@@ echo "compiling pg_id"
d85 1
a85 1
	@@ echo "compiling monitor"
@


1.30
log
@got rid of "backend".
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.29 91/05/09 03:24:41 kemnitz Exp Locker: kemnitz $
d63 2
a64 1
	$(CC) $(CFLAGS) -o $(OD)/support/pg_version $(PG_VERSION)
d76 2
a77 1
	$(CC) $(CFLAGS) -o $(OD)/support/pg_id $(PG_ID)
d85 2
a86 1
	$(CC) $(CFLAGS) -o $(OD)/support/monitor \
d98 2
a99 1
	sed -e s%_POSTGRESBIN_%$(POSTGRESBIN)% $(SD)/scripts/vacuum.sh > \
d101 1
a101 1
	chmod 555 $(SD)/scripts/vacuum
@


1.29
log
@createdb/destroydb now obsolete - changed the sed'ing of vacuum some.
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.28 91/05/07 21:18:00 mao Exp Locker: kemnitz $
d17 1
a17 1
support: backend bkifiles libpq monitor vacuum pg_version pg_id
a27 12

# ----------------
#    backend
# ----------------
backend: $(OD)/support/backend

$(OD)/support/backend: cinterface $(BACKEND)
	$(CC) $(CFLAGS) -o $(OD)/support/backend \
		$(BACKEND) $(OD)/cinterface.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/backend ; \
		 else true ; fi'
@


1.28
log
@vacuum cleaner is now a one-line shell script
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.27 91/03/07 01:57:22 kemnitz Exp Locker: mao $
d17 1
a17 1
support: backend bkifiles createdb destroydb libpq monitor vacuum pg_version pg_id
a89 12
#    destroydb
# ----------------
destroydb: $(OD)/support/destroydb

$(OD)/support/destroydb: $(OD)/libpq.a $(DESTROYDB)
	$(CC) $(CFLAGS) -o $(OD)/support/destroydb $(DESTROYDB) \
		$(OD)/libpq.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/destroydb ; \
		 else true ; fi'

# ----------------
d104 1
a104 1
vacuum: $(OD)/support/vacuum
d106 4
a109 16
$(OD)/support/vacuum: $(SD)/support/vacuum.sh
	sed -e s%_POSTGRESBIN_%$(POSTGRESBIN)% $(SD)/support/vacuum.sh > \
					       $(OD)/support/vacuum
	chmod 555 $(OD)/support/vacuum

# ----------------
#    createdb
# ----------------
createdb: $(OD)/support/createdb

$(OD)/support/createdb: $(OD)/libpq.a $(CREATEDB)
	$(CC) $(CFLAGS) -o $(OD)/support/createdb \
		$(CREATEDB) $(OD)/libpq.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/createdb ; \
		 else true ; fi'
@


1.27
log
@createdb is now a binary, not a script.
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.26 91/02/25 20:16:18 kemnitz Exp Locker: kemnitz $
d17 1
a17 1
support: backend bkifiles createdb destroydb libpq monitor vacuumd vcontrol pg_version pg_id
d114 1
a114 1
#    vacuumd
d116 1
a116 1
vacuumd: $(OD)/support/vacuumd
d118 4
a121 18
$(OD)/support/vacuumd: cinterface $(VACUUMD)
	$(CC) $(CFLAGS) -o $(OD)/support/vacuumd \
		$(VACUUMD) $(OD)/cinterface.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/vacuumd ; \
		 else true ; fi'

# ----------------
#    vcontrol
# ----------------
vcontrol: $(OD)/support/vcontrol 

$(OD)/support/vcontrol: $(OD)/libpq.a $(VCONTROL)
	$(CC) $(CFLAGS) -o $(OD)/support/vcontrol \
		$(VCONTROL) $(OD)/libpq.a $(LIBS)
	@@ sh -c 'if (test $$STRIPOBJS = "t" ) then \
		    strip $(OD)/support/vcontrol ; \
		 else true ; fi'
@


1.26
log
@createdb <--> createdb2
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.25 91/02/06 15:49:29 kemnitz Exp Locker: kemnitz $
d17 1
a17 1
support: backend bkifiles createdb createdb2 destroydb libpq monitor vacuumd vcontrol pg_version pg_id
a101 13
#    createdb2
# ----------------
createdb2: $(OD)/support/createdb2

$(OD)/support/createdb2: $(SD)/support/createdb
	@@ sh -c 'if (test -f $(OD)/support/createdb) then  \
		 rm $(OD)/support/createdb ; \
		 fi ; \
		 ln -s $(SD)/support/createdb $(OD)/support/createdb'
$(SD)/support/createdb:
	@@ sh -c '(cd $(SD)/support; co createdb)'

# ----------------
d142 3
a144 3
$(OD)/support/createdb: $(OD)/libpq.a $(CREATEDB2)
	$(CC) $(CFLAGS) -o $(OD)/support/createdb2 \
		$(CREATEDB2) $(OD)/libpq.a $(LIBS)
d146 1
a146 1
		    strip $(OD)/support/createdb2 ; \
@


1.25
log
@Added (temporary) target for createdb2
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.24 90/10/23 14:48:37 kemnitz Exp Locker: kemnitz $
d102 1
a102 1
#    createdb
d104 1
a104 1
createdb: $(OD)/support/createdb
d106 1
a106 1
$(OD)/support/createdb: $(SD)/support/createdb
d151 1
a151 1
#    createdb2
d153 1
a153 1
createdb2: $(OD)/support/createdb2 
d155 1
a155 1
$(OD)/support/createdb2: $(OD)/libpq.a $(CREATEDB2)
@


1.24
log
@Added target for pg_id
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.23 90/10/19 09:05:34 goh Exp Locker: kemnitz $
d17 1
a17 1
support: backend bkifiles createdb destroydb libpq monitor vacuumd vcontrol pg_version pg_id
d148 12
@


1.23
log
@added dependencies for dbdb.bki (on $(DBDB_SRC))
and local.bki (on $LOCAL_SRC) so that
Make bkifiles will work on a non-virgin tree
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.22 90/09/19 14:41:32 hong Exp $
d17 1
a17 1
support: backend bkifiles createdb destroydb libpq monitor vacuumd vcontrol pg_version
d79 9
@


1.22
log
@now "Make createdb" works
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.21 90/08/26 16:30:14 cimarron Exp Locker: hong $
d46 1
a46 1
$(OD)/support/dbdb.bki:
d54 1
a54 1
$(OD)/support/local.bki:
@


1.21
log
@added X visual execution montior stuff
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.20 90/08/23 15:37:25 kemnitz Exp Locker: cimarron $
d17 1
a17 1
support: backend bkifiles destroydb libpq monitor vacuumd vcontrol pg_version
d77 1
a77 1
		    strip $(OD)/support/createdb ; \
d91 13
@


1.20
log
@Added pg_version
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.19 90/08/22 17:25:32 kemnitz Exp Locker: kemnitz $
d127 14
@


1.19
log
@Added stuff for pg_version - got rid of createdb.
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.18 90/08/21 12:46:21 cimarron Exp Locker: kemnitz $
d17 1
a17 1
support: backend bkifiles destroydb libpq monitor vacuumd vcontrol
@


1.18
log
@added -strip flag to Make which sets STRIPOBJS environment variable
which causes the final targets to be stripped after compilation.
@
text
@d7 1
a7 1
## $Header: RCS/support.mk,v 1.17 90/08/17 15:29:45 kemnitz Exp Locker: cimarron $
d17 1
a17 1
support: backend bkifiles createdb destroydb libpq monitor vacuumd vcontrol
d70 1
a70 1
#    createdb
d72 1
a72 1
createdb: $(OD)/support/createdb
d74 2
a75 3
$(OD)/support/createdb: $(OD)/libpq.a $(CREATEDB)
	$(CC) $(CFLAGS) -o $(OD)/support/createdb $(CREATEDB) \
		$(OD)/libpq.a $(LIBS)
@


1.17
log
@Added target for vcontrol.c
@
text
@d1 8
a8 1
# $Header: RCS/support.mk,v 1.16 90/07/23 20:30:11 kemnitz Version_2 Locker: kemnitz $
d37 3
d77 3
d89 3
d101 3
d113 3
d125 3
@


1.16
log
@Moved cinterface.a stuff out of this file.
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.15 90/07/20 20:26:42 mao Exp Locker: kemnitz $
d10 1
a10 1
support: backend bkifiles createdb destroydb libpq monitor vacuumd
d95 8
@


1.15
log
@destroydb is now a libpq app
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.14 90/07/12 18:51:53 kemnitz Exp Locker: mao $
d27 1
a27 1
$(OD)/support/backend: $(OD)/cinterface.a $(BACKEND)
d91 1
a91 1
$(OD)/support/vacuumd: $(OD)/cinterface.a $(VACUUMD)
@


1.14
log
@Fixed pathname problem.
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.13 90/07/12 14:36:53 goh Exp Locker: kemnitz $
d64 1
a64 1
$(OD)/support/createdb: $(OD)/libpq.a $(CREATEDB) $(OD)/cinterface.a
d73 1
a73 1
$(OD)/support/destroydb: $(OD)/libpq.a $(DESTROYDB) $(OD)/cinterface.a
d75 1
a75 1
		$(OD)/cinterface.a $(LIBS)
@


1.13
log
@grr ... moved the default compilation rules back to defaults.mk
_again_
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.12 90/07/11 21:20:14 kemnitz Exp $
d38 1
a38 1
	cd $(TREE)/$(SD)/lib/H/catalog ; \
d40 2
a41 2
	OD= `basename $(OD)`;export OD; \
	SD= `basename $(SD)`;export SD; \
d46 1
a46 1
	cd $(TREE)/$(SD)/lib/H/catalog ; \
@


1.12
log
@Createdb doesn't use cinterface.a anymore - destroydb doesn't use libpq.a
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.11 90/07/11 20:25:07 kemnitz Exp Locker: kemnitz $
d4 1
d8 1
d39 4
a42 2
	TREE=$(TREE);export TREE; OD=$(OD);export OD;SD=$(SD);export SD; \
	$(TREE)/$(GENBKI) $(DBDB_SRC) > $(TREE)/$(OD)/support/dbdb.bki
d47 4
a50 2
	TREE=$(TREE);export TREE; OD=$(OD);export OD;SD=$(SD);export SD; \
	$(TREE)/$(GENBKI) $(LOCAL_SRC) > $(TREE)/$(OD)/support/local.bki
a94 41
# ----------------
#    yacc -> .c -> .o rules
# ----------------
.y.o:
	@@ echo yaccing $(<F) ; \
	cd $(@@D) ; yacc -d $(<F)
	-@@ cd $(@@D) ; \
	if [ -f yacc.sed ] ; then \
		echo "sed'ing y.tab.c" ; \
		sed -f yacc.sed < y.tab.c > $(TREE)/$*.c ; \
		rm -f y.tab.c ; \
	else \
	 	mv y.tab.c $(TREE)/$*.c ; \
	fi
	-@@ cd $(@@D) ; \
	echo "   ... compiling $*.c" ; \
	cc $(CFLAGS) -DPG_STANDALONE -c $(TREE)/$*.c 

# ----------------
#    .c -> .o rules for support/ targets includes -DPG_STANDALONE
# ----------------
.c.o:
	@@ echo compiling $(<F)
	@@ cd $(@@D) ; cc $(CFLAGS) -DPG_STANDALONE -c $(<F) 

# ----------------
#    lex -> .c -> .o rules
# ----------------
.lex.o:
	@@ echo lexing $(<F) ; \
	cd $(@@D) ; lex $(<F)
	-@@ cd $(@@D) ; \
	if [ -f lex.sed ] ; then \
		echo "sed'ing lex.yy.c" ; \
		sed -f lex.sed < lex.yy.c > $(TREE)/$*.c; \
	else \
		mv lex.yy.c $(TREE)/$*.c ; \
	fi
	@@ cd $(@@D) ; \
	echo "   ... compiling $*.c" ; \
	cc $(CFLAGS) -DPG_STANDALONE -c $(TREE)/$*.c
@


1.11
log
@Got rid of cinterface.a from linking the monitor.
@
text
@d1 1
a1 1
# $Header: RCS/support.mk,v 1.10 90/06/18 16:09:08 cimarron Exp Locker: kemnitz $
d60 1
a60 1
		$(OD)/libpq.a $(OD)/cinterface.a $(LIBS)
d69 1
a69 1
		$(OD)/libpq.a $(OD)/cinterface.a $(LIBS)
@


1.10
log
@added the bkifiles target.  Make bkifiles now generates
local.bki and dbdb.bki in the obj/support directory.
@
text
@d1 1
a1 1
# $Header$
d78 1
a78 1
		$(MONITOR) $(OD)/libpq.a $(OD)/cinterface.a $(LIBS)
@


1.9
log
@Fixed yet another annoying bug.
@
text
@d1 2
d8 1
a8 1
support: backend createdb destroydb libpq monitor vacuumd
d10 3
d20 3
d29 27
d62 3
d71 3
d80 3
d89 3
d107 3
d114 3
@


1.8
log
@Added libs to one more item.
@
text
@d33 1
a33 1
monitor: $(OD)/support/monitor $(LIBS)
d39 1
a39 1
vacuumd: $(OD)/support/vacuumd $(LIBS)
@


1.7
log
@Changed hard-coded libraries to use $(LIBS) instead
@
text
@d25 1
a25 1
		$(OD)/libpq.a $(OD)/cinterface.a
@


1.6
log
@libpq was specified twice for destroydb.
@
text
@d19 1
a19 1
		$(BACKEND) $(OD)/cinterface.a -lm -ll -lc
d31 1
a31 1
		$(OD)/libpq.a $(OD)/cinterface.a -lm
d33 1
a33 1
monitor: $(OD)/support/monitor
d37 1
a37 1
		$(MONITOR) $(OD)/libpq.a $(OD)/cinterface.a
d39 1
a39 1
vacuumd: $(OD)/support/vacuumd
d43 1
a43 1
		$(VACUUMD) $(OD)/cinterface.a -lm
@


1.5
log
@includes destroydb, flag changes.
@
text
@d31 1
a31 1
		$(OD)/libpq.a $(OD)/libpq.a $(OD)/cinterface.a -lm
@


1.4
log
@get cinterface right
@
text
@d6 1
a6 1
support: backend createdb libpq monitor vacuumd
d27 6
d58 1
a58 1
	cc $(CFLAGS) -c $(TREE)/$*.c 
d62 1
a62 2
	@@ cd $(@@D) ; cc $(CFLAGS) -DPOSTMASTER \
	-DPOSTMASTERLOG -DPG_STANDALONE -DVACUUMDLOG -c $(<F) 
d76 1
a76 1
	cc $(CFLAGS) -c $(TREE)/$*.c
@


1.3
log
@don't make vacuumd right now.
@
text
@d6 1
a6 2
support: backend createdb libpq monitor
# add vacuumd later
@


1.2
log
@working on sun version
@
text
@d6 2
a7 1
support: backend createdb libpq monitor vacuumd
@


1.1
log
@Initial revision
@
text
@d45 1
a45 1
		sed -f yacc.sed < y.tab.c > $*.c ; \
d48 1
a48 1
	 	mv y.tab.c $*.c ; \
d52 1
a52 1
	cc $(CFLAGS) -c $*.c 
d65 1
a65 1
		sed -f lex.sed < lex.yy.c > $*.c; \
d67 1
a67 1
		mv lex.yy.c $*.c ; \
d71 1
a71 1
	cc $(CFLAGS) -c $*.c
@
