Menu

[r3]: / configure  Maximize  Restore  History

Download this file

29 lines (24 with data), 899 Bytes

#! /bin/sh

echo "
PGHOME=/postgre

all:libs
	gcc -o replication replication.o checknetwork.o readconfig.o makequery.o pqconn.o log.o -L$(PGHOME)/lib  -lpq
	gcc -o tzrepl_install tzrepl_install.o readconfig.o pqconn.o log.o -L$(PGHOME)/lib  -lpq
	gcc -o makeinitlog pbar.o makeinitlog.o readconfig.o  pqconn.o log.o -L$(PGHOME)/lib  -lpq
	gcc -o syncsequence syncsequence.o readconfig.o  pqconn.o log.o -L$(PGHOME)/lib  -lpq

libs:
	gcc -c -I$(PGHOME)/include pqconn.c
	gcc -c -I$(PGHOME)/include replication.c
	gcc -c -I$(PGHOME)/include tzrepl_install.c
	gcc -c -I$(PGHOME)/include makeinitlog.c
	gcc -c -I$(PGHOME)/include makeinitlog.c
	gcc -c -I$(PGHOME)/include syncsequence.c
	gcc -c checknetwork.c
	gcc -c readconfig.c
	gcc -c makequery.c
	gcc -c pbar.c
	gcc -c log.c
	mkdir lib/
	cp *.o $(PREFIX)/lib
	
install:
	echo \"OK ! REPLICATION INSTALED! \"" > Makefile