2000-12-07 14:43:49 -05:00
|
|
|
AROPT = cr
|
2000-10-21 18:36:14 -04:00
|
|
|
|
1999-03-14 11:03:33 -05:00
|
|
|
ifdef ELF_SYSTEM
|
2000-10-07 14:43:23 -04:00
|
|
|
export_dynamic = -Wl,-E
|
2005-12-09 16:19:36 -05:00
|
|
|
rpath = -Wl,-R'$(rpathdir)'
|
1999-03-14 11:03:33 -05:00
|
|
|
endif
|
2000-10-21 18:36:14 -04:00
|
|
|
|
|
|
|
|
DLSUFFIX = .so
|
2004-10-11 19:27:23 -04:00
|
|
|
|
|
|
|
|
ifeq ($(findstring sparc,$(host_cpu)), sparc)
|
|
|
|
|
CFLAGS_SL = -fPIC -DPIC
|
|
|
|
|
else
|
2000-10-21 18:36:14 -04:00
|
|
|
CFLAGS_SL = -fpic -DPIC
|
2004-10-11 19:27:23 -04:00
|
|
|
endif
|
|
|
|
|
|
2000-10-21 18:36:14 -04:00
|
|
|
|
1997-04-12 06:33:10 -04:00
|
|
|
%.so: %.o
|
1999-03-14 11:03:33 -05:00
|
|
|
ifdef ELF_SYSTEM
|
2004-10-11 19:27:23 -04:00
|
|
|
$(CC) -shared -o $@ $<
|
1999-03-14 11:03:33 -05:00
|
|
|
else
|
1999-12-13 17:35:27 -05:00
|
|
|
$(LD) $(LDREL) $(LDOUT) $<.obj -x $<
|
1997-04-12 06:33:10 -04:00
|
|
|
@echo building shared object $@
|
|
|
|
|
@rm -f $@.pic
|
2006-04-19 12:32:08 -04:00
|
|
|
@${AR} cq $@.pic $<.obj
|
1997-04-12 06:33:10 -04:00
|
|
|
${RANLIB} $@.pic
|
|
|
|
|
@rm -f $@
|
2004-10-11 19:27:23 -04:00
|
|
|
$(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
|
1999-03-14 11:03:33 -05:00
|
|
|
endif
|
2001-08-29 15:14:40 -04:00
|
|
|
|
|
|
|
|
sqlmansect = 7
|