]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.unixware
Partial fix for contrib vpath breakage.
[postgresql] / src / makefiles / Makefile.unixware
1 AROPT = crs
2 ifeq ($(with_gnu_ld), yes)
3     export_dynamic = -Wl,-E
4 else
5     export_dynamic = -Wl,-Bexport
6 endif
7
8 ifeq ($(ld_R_works), yes)
9 ifeq ($(with_gnu_ld), yes)
10     rpath = -Wl,-rpath,'$(rpathdir)'
11 else
12     rpath = -Wl,-R'$(rpathdir)'
13 endif
14 endif
15
16 DLSUFFIX = .so
17 ifeq ($(GCC), yes)
18 CFLAGS_SL = -fpic
19 else
20 CFLAGS_SL = -K PIC
21 endif
22 ifeq ($(GCC), yes)
23 SO_FLAGS = -shared
24 else
25 SO_FLAGS = -G
26 endif
27
28 %.so: %.o
29         $(CC) $(SO_FLAGS) -o $@ $<
30
31 sqlmansect = 5sql
32
33 # Unixware needs threads for everything that uses libpq
34 CFLAGS += $(PTHREAD_CFLAGS)