2011-01-24 09:44:48 +08:00
|
|
|
# contrib/sepgsql/Makefile
|
|
|
|
|
|
|
|
MODULE_big = sepgsql
|
2011-09-01 20:37:33 +08:00
|
|
|
OBJS = hooks.o selinux.o uavc.o label.o dml.o \
|
2014-07-15 02:07:52 +08:00
|
|
|
database.o schema.o relation.o proc.o $(WIN32RES)
|
2011-02-17 19:39:13 +08:00
|
|
|
DATA_built = sepgsql.sql
|
2014-07-15 02:07:52 +08:00
|
|
|
PGFILEDESC = "sepgsql - SELinux integration"
|
2011-08-25 03:16:17 +08:00
|
|
|
|
2011-09-28 08:07:15 +08:00
|
|
|
# Note: because we don't tell the Makefile there are any regression tests,
|
|
|
|
# we have to clean those result files explicitly
|
|
|
|
EXTRA_CLEAN = -r $(pg_regress_clean_files) tmp/ *.pp sepgsql-regtest.if sepgsql-regtest.fc
|
2011-01-24 09:44:48 +08:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/sepgsql
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
|
|
|
|
2011-08-19 23:57:38 +08:00
|
|
|
SHLIB_LINK += -lselinux
|