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

Commit7d55b1c

Browse files
committed
There, fixed
1 parentced5b1f commit7d55b1c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

‎src/interfaces/ecpg/lib/Makefile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
SRCDIR= ../../..
2+
include$(SRCDIR)/Makefile.global
3+
4+
PQ_INCLUDE=-I$(SRCDIR)/include -I$(SRCDIR)/interfaces/libpq
5+
6+
SO_MAJOR_VERSION=0
7+
SO_MINOR_VERSION=5
8+
9+
# Shared library stuff
10+
shlib :=
11+
install-shlib-dep :=
12+
ifeq ($(PORTNAME), linux)
13+
ifdef LINUX_ELF
14+
install-shlib-dep := install-shlib
15+
shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
16+
LDFLAGS_SL = -shared
17+
CFLAGS +=$(CFLAGS_SL)
18+
endif
19+
endif
20+
ifeq ($(PORTNAME), bsd)
21+
install-shlib-dep := install-shlib
22+
shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
23+
LDFLAGS_SL = -x -Bshareable -Bforcearchive
24+
CFLAGS +=$(CFLAGS_SL)
25+
endif
26+
ifeq ($(PORTNAME), i386_solaris)
27+
install-shlib-dep := install-shlib
28+
shlib := libecpg.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
29+
LDFLAGS_SL = -G -z text
30+
CFLAGS +=$(CFLAGS_SL)
31+
endif
32+
ifeq ($(PORTNAME), univel)
33+
install-shlib-dep := install-shlib
34+
shlib := libecpg.so.1
35+
LDFLAGS_SL = -G -z text
36+
CFLAGS +=$(CFLAGS_SL)
37+
endif
38+
39+
all: libecpg.a$(shlib)
40+
41+
$(shlib): ecpglib.o typename.o
42+
$(LD)$(LDFLAGS_SL) -o$@ ecpglib.o typename.o
43+
ln -sf$@ libecpg.so
44+
45+
clean:
46+
rm -f*.o*.a core a.out*~$(shlib) libecpg.so
47+
48+
install: libecpg.a
49+
install -m 644 libecpg.a$(DESTDIR)$(LIBDIR)
50+
install -m 644$(shlib)$(DESTDIR)$(LIBDIR)
51+
ln -sf$(shlib)$(DESTDIR)$(LIBDIR)/libecpg.so
52+
53+
uninstall::
54+
rm -f$(DESTDIR)$(LIBDIR)/libecpg.a$(DESTDIR)$(LIBDIR)/$(shlib)
55+
56+
# Rules that do something
57+
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)
58+
59+
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
60+
$(CC) -O2 -g -Wall -I../include$(PQ_INCLUDE) -c ecpglib.c
61+
typename.o : typename.c ../include/ecpgtype.h
62+
$(CC) -g -O2 -Wall -I../include$(PQ_INCLUDE) -c typename.c

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp