#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for tcop
#
# IDENTIFICATION
#    $Header: /home/postgres/cvs_root/postgres-r/src/backend/replication/Makefile,v 1.4 2001/08/02 01:43:06 johnsond Exp $
#
#-------------------------------------------------------------------------

SRCDIR= ../..
include ../../Makefile.global

# Ensemble directory
ENS = /home/johnsond/ensemble-1.00
# Spread directory
SPR = /home/johnsond/spread_src-3.16.0
#ENS = /home/kemme/ensemble

CFLAGS+= -I..

# Ensemble Hot Libs include
#CFLAGS+= -I$(ENS)/hot/include -DLINUX

# Spread include for APIs
CFLAGS+= -I$(SPR)

# Transis include files
#CFLAGS+= -I/home/kemme/transis_neu/include

ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif

ifeq ($(CC), gcc)
CFLAGS+= -Wno-error
endif


# Ensemble object files
#OBJS= pg_ensemble_simple.o pg_ensemble_total.o writeset.o replicaManager.o rmgrLib.o
# Spread object files
OBJS= pg_spread.o writeset.o replicaManager.o rmgrLib.o 

all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) -r -o SUBSYS.o $(OBJS)

# The following dependencies are picked up by the make dep, but since 
# not everyone can do make dep, and these are particularly important
# dependencies (because they don't even exist until you make them),
# they are hardcoded here.

#utility.o: ../parse.h ../fmgr.h
#aclchk.o: ../fmgr.h
#fastpath.o: ../fmgr.h
#postgres.o: ../fmgr.h

#../parse.h: 
#	$(MAKE) -C .. parse.h

#../fmgr.h: 
#	$(MAKE) -C .. fmgr.h

#dep depend: ../parse.h ../fmgr.h
#	$(CC) -MM $(CFLAGS) *.c >depend

clean: 
	rm -f SUBSYS.o $(OBJS) 

#ifeq (depend,$(wildcard depend))
#include depend
#endif

