mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Make libpgport be front-end only and make libpgport_srv be a backend
library that uses palloc, ereport, etc. This simplifies the makefiles for client applications.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile
|
||||
# Makefile for the timezone library
|
||||
|
||||
# IDENTIFICATION
|
||||
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.15 2004/08/08 05:19:44 momjian Exp $
|
||||
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.16 2004/10/04 13:43:59 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -12,13 +12,13 @@ subdir = src/timezone
|
||||
top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)
|
||||
override CPPFLAGS := $(CPPFLAGS)
|
||||
|
||||
# files to build into backend
|
||||
OBJS= localtime.o strftime.o pgtz.o
|
||||
|
||||
# files needed to build zic utility program
|
||||
ZICOBJS= zic.o ialloc.o scheck.o localtime.o dirmod.o
|
||||
ZICOBJS= zic.o ialloc.o scheck.o localtime.o
|
||||
|
||||
# timezone data files
|
||||
TZDATA := africa antarctica asia australasia europe northamerica southamerica \
|
||||
@@ -33,9 +33,6 @@ SUBSYS.o: $(OBJS)
|
||||
zic: $(ZICOBJS)
|
||||
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
|
||||
|
||||
dirmod.c: % : $(top_srcdir)/src/port/%
|
||||
rm -f $@ && $(LN_S) $< .
|
||||
|
||||
install: all installdirs
|
||||
./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
|
||||
|
||||
@@ -43,4 +40,4 @@ installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(datadir)
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS) dirmod.c
|
||||
rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS)
|
||||
|
Reference in New Issue
Block a user