2003-10-27 02:42:34 -05:00
|
|
|
AROPT = crs
|
2010-11-23 15:27:50 -05:00
|
|
|
|
2000-10-31 14:55:20 -05:00
|
|
|
DLSUFFIX = .so
|
2004-12-16 22:52:49 -05:00
|
|
|
|
|
|
|
|
ifdef PGXS
|
2010-07-05 14:54:38 -04:00
|
|
|
BE_DLLLIBS = -bundle_loader $(bindir)/postgres
|
2004-12-16 22:52:49 -05:00
|
|
|
else
|
2010-07-05 14:54:38 -04:00
|
|
|
BE_DLLLIBS = -bundle_loader $(top_builddir)/src/backend/postgres
|
2004-12-16 22:52:49 -05:00
|
|
|
endif
|
|
|
|
|
|
2010-07-05 14:54:38 -04:00
|
|
|
# Rule for building a shared library from a single .o file
|
2000-10-31 14:55:20 -05:00
|
|
|
%.so: %.o
|
2010-07-05 19:15:56 -04:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) -o $@ $<
|