Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 68993b6

Browse files
committed
Link in dirmod specially for zic so it works on Win32.
1 parent dc94d4a commit 68993b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/timezone/Makefile

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for the timezone library
55

66
# IDENTIFICATION
7-
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.12 2004/05/28 03:53:33 tgl Exp $
7+
# $PostgreSQL: pgsql/src/timezone/Makefile,v 1.13 2004/08/08 03:57:35 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -13,7 +13,7 @@ top_builddir = ../..
1313
include $(top_builddir)/src/Makefile.global
1414

1515
# files to build into backend
16-
OBJS= localtime.o strftime.o pgtz.o
16+
OBJS= localtime.o strftime.o pgtz.o dirmod.o
1717

1818
# files needed to build zic utility program
1919
ZICOBJS= zic.o ialloc.o scheck.o localtime.o
@@ -31,11 +31,14 @@ SUBSYS.o: $(OBJS)
3131
zic: $(ZICOBJS)
3232
$(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
3333

34+
dirmod.c: % : $(top_srcdir)/src/port/%
35+
rm -f $@ && $(LN_S) $< .
36+
3437
install: all installdirs
3538
./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
3639

3740
installdirs:
3841
$(mkinstalldirs) $(DESTDIR)$(datadir)
3942

4043
clean distclean maintainer-clean:
41-
rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS)
44+
rm -f SUBSYS.o zic $(OBJS) $(ZICOBJS) dirmod.c

0 commit comments

Comments
 (0)