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