]> granicus.if.org Git - postgresql/blob - src/makefiles/Makefile.unixware
Define integer limits independently from the system definitions.
[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 # Unixware needs threads for everything that uses libpq
17 CFLAGS += $(PTHREAD_CFLAGS)
18
19 DLSUFFIX = .so
20 ifeq ($(GCC), yes)
21 CFLAGS_SL = -fpic
22 else
23 CFLAGS_SL = -K PIC
24 endif
25 ifeq ($(GCC), yes)
26 SO_FLAGS = -shared
27 else
28 SO_FLAGS = -G
29 endif
30
31 # Rule for building a shared library from a single .o file
32 %.so: %.o
33         $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) $(SO_FLAGS) -o $@ $<
34
35 sqlmansect = 5sql