postgresql/contrib/os2client/Makefile
Tom Lane fdd7f59820 Since PORTNAME is no longer used at the level of C code (it's only in
Makefiles now), there's no reason for os2client to maintain its own
copy of c.h just to change #define PORTNAME.  Simplify Makefile
accordingly.  Get rid of horribly-out-of-date modified copy of c.h,
which should never have been in the distribution to start with,
since it's actually a derived file.  Now it's not needed anyway.
2000-03-19 21:59:30 +00:00

87 lines
2.0 KiB
Makefile

#-------------------------------------------------------------------------
#
# Makefile
# Makefile for libpq library
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/contrib/os2client/Attic/Makefile,v 1.2 2000/03/19 21:59:30 tgl Exp $
#
#-------------------------------------------------------------------------
SO_MAJOR_VERSION=1
SO_MINOR_VERSION=1
SRCDIR= ../../src
INTERFACES= $(SRCDIR)/interfaces/libpq
PORTNAME=OS2
CC=gcc
CFLAGS=-I. -I$(SRCDIR)/include
CFLAGS+=-DFRONTEND -DTCPIPV4 -DHAVE_CRYPT_H
CP= copy
AR=ar
AROPT=rc
RANLIB= ar s
LDFLAGS= -L.
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-lobj.o fe-print.o \
dllist.o pqsignal.o pqcomprim.o
EXEOBJS= psql.o stringutils.o
all: libpq.a psql
fe-auth.o: $(INTERFACES)/fe-auth.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-auth.c
fe-connect.o: $(INTERFACES)/fe-connect.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-connect.c
fe-exec.o: $(INTERFACES)/fe-exec.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-exec.c
fe-lobj.o: $(INTERFACES)/fe-lobj.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-lobj.c
fe-misc.o: $(INTERFACES)/fe-misc.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-misc.c
fe-print.o: $(INTERFACES)/fe-print.c
$(CC) $(CFLAGS) -c $(INTERFACES)/fe-print.c
pqsignal.o: $(INTERFACES)/pqsignal.c
$(CC) $(CFLAGS) -c $(INTERFACES)/pqsignal.c
dllist.o: $(SRCDIR)/backend/lib/dllist.c
$(CC) $(CFLAGS) -c $(SRCDIR)/backend/lib/dllist.c
pqcomprim.o: $(SRCDIR)/backend/libpq/pqcomprim.c
$(CC) $(CFLAGS) -c $(SRCDIR)/backend/libpq/pqcomprim.c
libpq.a: $(OBJS)
$(AR) $(AROPT) libpq.a $(OBJS)
$(RANLIB) libpq.a
psql: $(EXEOBJS)
$(CC) -o psql.exe $(EXEOBJS) $(LDFLAGS) -llibpq -lsocket -lufc
psql.o: $(SRCDIR)/bin/psql/psql.c
$(CC) $(CFLAGS) -I$(INTERFACES) -c $(SRCDIR)/bin/psql/psql.c
stringutils.o: $(SRCDIR)/bin/psql/stringutils.c
$(CC) $(CFLAGS) -I$(INTERFACES) -c $(SRCDIR)/bin/psql/stringutils.c
clean:
rm -f libpq.a $(OBJS) $(EXEOBJS) psql.exe dllist.c pqcomprim.c