OSDN Git Service

Do not use 'ar cq' to build library archives, use 'ar cr' instead.
[pg-rex/syncrep.git] / src / makefiles / Makefile.bsdi
1 AROPT = cr
2
3 # bsdi 4.0 and later is ELF
4 DLSUFFIX = .so
5 ifeq ($(host_os), bsdi2.0)
6 DLSUFFIX = .o
7 endif
8 ifeq ($(host_os), bsdi2.1)
9 DLSUFFIX = .o
10 endif
11 ifeq ($(findstring bsdi3, $(host_os)), bsdi3)
12 DLSUFFIX = .o
13 endif
14
15 ifeq ($(DLSUFFIX), .so)
16 CFLAGS_SL = -fpic
17 export_dynamic = -export-dynamic
18 else
19 CFLAGS_SL =
20 endif
21
22 %.so: %.o
23         $(LD) -shared -o $@ $<