summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.bsdi
blob: 901e210fbb63ca36fb4611ea9c225bd72047687d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AROPT = cr

# bsdi 4.0 and later is ELF
DLSUFFIX = .so
ifeq ($(host_os), bsdi2.0)
DLSUFFIX = .o
endif
ifeq ($(host_os), bsdi2.1)
DLSUFFIX = .o
endif
ifeq ($(findstring bsdi3, $(host_os)), bsdi3)
DLSUFFIX = .o
endif

ifeq ($(DLSUFFIX), .so)
CFLAGS_SL = -fpic
export_dynamic = -export-dynamic
shlib_symbolic = -Wl,-Bsymbolic
else
CFLAGS_SL =
endif

%.so: %.o
	$(CC) -shared -o $@ $<