Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit951986c

Browse files
committed
Update of contrib stuff from massimo.
1 parent5aaf00f commit951986c

33 files changed

+2516
-547
lines changed

‎contrib/array/Makefile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#-------------------------------------------------------------------------
2+
#
3+
# Makefile--
4+
# Makefile for array iterator functions.
5+
#
6+
#-------------------------------------------------------------------------
7+
8+
PGDIR = ../..
9+
SRCDIR =$(PGDIR)/src
10+
11+
include$(SRCDIR)/Makefile.global
12+
13+
INCLUDE_OPT =-I ./\
14+
-I$(SRCDIR)/\
15+
-I$(SRCDIR)/include\
16+
-I$(SRCDIR)/port/$(PORTNAME)
17+
18+
CFLAGS +=$(INCLUDE_OPT)
19+
20+
ifeq ($(PORTNAME), linux)
21+
ifdef LINUX_ELF
22+
ifeq ($(CC), gcc)
23+
CFLAGS += -fPIC
24+
endif
25+
endif
26+
endif
27+
28+
ifeq ($(PORTNAME), i386_solaris)
29+
CFLAGS+= -fPIC
30+
endif
31+
32+
MODNAME =array_iterator
33+
34+
MODULE =$(MODNAME)$(DLSUFFIX)
35+
36+
all:module sql
37+
38+
module:$(MODULE)
39+
40+
sql:$(MODNAME).sql
41+
42+
install:$(MODULE)
43+
cp -p$(MODULE)$(LIBDIR)
44+
cd$(LIBDIR); strip$(MODULE)
45+
46+
%.sql:%.sql.in
47+
sed"s|MODULE_PATHNAME|$(LIBDIR)/$(MODULE)|"<$<>$@
48+
49+
.SUFFIXES:$(DLSUFFIX)
50+
51+
%$(DLSUFFIX):%.c
52+
cc$(CFLAGS) -shared -o$@$<
53+
54+
dependdep:
55+
$(CC) -MM$(INCLUDE_OPT)*.c>depend
56+
57+
clean:
58+
rm -f$(MODULE)$(MODNAME).sql
59+
60+
ifeq (depend,$(wildcard depend))
61+
include depend
62+
endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp